Jul 30, 2002 #1 kiano Technical User Nov 21, 2001 19 GB I need to create a script using CU and AT commands - I am struggling passing the AT commands to the script - any help would be appreciated. Script would read as follows.... cu -m -l /dev/tty1 at&f at&c at&m at&w ~. Help!
I need to create a script using CU and AT commands - I am struggling passing the AT commands to the script - any help would be appreciated. Script would read as follows.... cu -m -l /dev/tty1 at&f at&c at&m at&w ~. Help!
Jul 30, 2002 #2 DSMARWAY Technical User Jun 25, 2002 640 GB try this , see if it works function reset_modem { { { echo "at&f" echo "at&c" echo "at&m" echo "at&w" echo "~." } | cu -ml /dev/tty1 } reset_modem see how it goes Upvote 0 Downvote
try this , see if it works function reset_modem { { { echo "at&f" echo "at&c" echo "at&m" echo "at&w" echo "~." } | cu -ml /dev/tty1 } reset_modem see how it goes
Jul 31, 2002 Thread starter #3 kiano Technical User Nov 21, 2001 19 GB Thanks for the advice - the script now runs but simply echos the command to the screen rather than delivering them to the modem - any advice... Upvote 0 Downvote
Thanks for the advice - the script now runs but simply echos the command to the screen rather than delivering them to the modem - any advice...
Jul 31, 2002 #4 DSMARWAY Technical User Jun 25, 2002 640 GB forgot to add \r after each echo i.e echo "at&f\r" basically carriage return and put a sleep 5 after your last echo The other thing is post your function or your piece of code the above has an extra { ( your probably aware of this } Upvote 0 Downvote
forgot to add \r after each echo i.e echo "at&f\r" basically carriage return and put a sleep 5 after your last echo The other thing is post your function or your piece of code the above has an extra { ( your probably aware of this }