That's wrong. If /tmp/tmp-sms contains multiple lines then sendsms
would be invoked separatly for each one of them.

Beside that, when you use xargs to read a file then "cat" is redundand,
you can just do:

xargs sendsms < /tmp/tmp-sms

(but my previous point still holds - multiple lines will cause multiple
invocations of sendsms)

Cheers,

--Amos

Yosef Meller wrote:
Oron Peled wrote:

Now if you really insist that the file would contain:
  me "Shlomo" "this is a test message"

Than you can do some shell judo:
  eval sendsms "`cat /tmp/tmp-sms`"


Or simply:

cat /tmp/tmp-sms | xargs sendsms



=================================================================
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]



Reply via email to