I've been playing with a bash script to use Nadav Harel's sendsms using input redirected from a file. For some reason it doesn't work. I get the error message: Usage: /home/solomon/bin/sendsms [-lh] [-u 1/2/3] phonenum sender message
I looked at the program and saw that this message means an incorrect number of argyments. I then tried adding some debugging info to Nadav's script and I see that the program is not getting any paramaters from the input file. Typing the same paramaters from the command line works fine. In short, the following works: sendsms me "shlomo" "this is a test message" And the following doesn't work: sendsms < /tmtp/tmp-sms where /tmp/tmp-sms is: me "shlomo" "this is a test message" Any ideas what I may be doing wrong? BTW, I also tried piping instead of redirection with the same results. TIA -- Shlomo Solomon http://come.to/shlomo.solomon Sent by KMail 1.6.1 (KDE 3.2) on LINUX Mandrake 10.0 ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
