Hello,
I need to write a script to send mail to a user.
My plan is to use:
system(mailx -s "Script $f returned $sub" me@me.com < body);
for some reason I get a whole bunch of errors:
Bareword found where operator expected at testpl.pl line 22, near ""Script $f Returned with RC = $1" awolff"
(Missing operator before awolff?)
Is my syntax incorrect? Or is running mailx via system() not possible?
Thank You!!
I need to write a script to send mail to a user.
My plan is to use:
system(mailx -s "Script $f returned $sub" me@me.com < body);
for some reason I get a whole bunch of errors:
Bareword found where operator expected at testpl.pl line 22, near ""Script $f Returned with RC = $1" awolff"
(Missing operator before awolff?)
Is my syntax incorrect? Or is running mailx via system() not possible?
Thank You!!