Hello everyone
I'm having big trouble constructing a script that can send a sms message using an appliance. I can't figure out how to construct a custom script that calls an url with the phone number and message as variables. I need the following command called, with the variables filled out. I would really appreciate if anyone could give me some hints on how to achieve this :-) This code works, if I call it in a simple shell script: --- FROMADDR=Nagios PHONENUMBER=$1 MESSAGE_TEXT=$2 REMOTEURL=http://192.168.9.236/source/send_sms.php curl -F "from=$FROMADDR" -F "nphone=$PHONENUMBER" -F "testo=$MESSAGE_TEXT" -F "send=send" -F "nc=" $REMOTEURL --- It would be really nice, if some shell/perl guru could give me a hint or two :-) Kind regards Jacob
_______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users
