![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Launching an external command from Perl in Linuxby wruehl (Acolyte) |
on May 05, 2009 at 15:48 UTC ( #761969=perlquestion: print w/replies, xml ) | Need Help?? |
wruehl has asked for the wisdom of the Perl Monks concerning the following question:
I am attempting to call a function from within a perl script that will contact a monitoring program. I am getting compilation errors on this line of code. $testmessage = system(/usr/bin/postemsg -S tecserver -r(harmless) -m "(This is a test message)" hostname=(Trapeze) notify_action=email alias_notify=(pbkhk) (Event_Message_Class) (SOURCE)); I am getting the following as output:
Is there any way to format the system call so that Perl just passes that call to the outside shell? Should I be using something other than system() to call the postemsg command? Thanks,
-Bill
Back to
Seekers of Perl Wisdom
|
|