can't run mailx as PERL system command
- From: eh@xxxxxxxxxxxxxxxx (Elliot Holden)
- Date: Tue, 27 Nov 2007 19:43:55 -0500
ok this is problem going to be real easy for one of you PERL gurus but my little brain just can't figure it out. From the command line (Solaris 9) I can do this fine:
echo my little test | mailx -s "Test Message" email@xxxxxxxxxxxx
But in PERL the below code does not work:
system("echo my little test | mailx -s \"Test Message\" email@xxxxxxxxxxxx");
even if I just do:
system("mailx email@xxxxxxxxxxxx");
it does not send the email
Now I know that mailx works perfectly fine from the command line. I am also able to do other system commands from PERL perfectly fine. Also I know that many of you gurus might suggest I do it a different way because of security issues or what not but I would really like to find out why this particular system command is not working from PERL.
Sincerely
Elliot
.
- Follow-Ups:
- Re: can't run mailx as PERL system command
- From: Jenda Krynicky
- Re: can't run mailx as PERL system command
- From: Celejar
- Re: can't run mailx as PERL system command
- From: Tom Phoenix
- Re: can't run mailx as PERL system command
- Prev by Date: Re: Trouble with Email::MIME modules
- Next by Date: Re: can't run mailx as PERL system command
- Previous by thread: about ( .)
- Next by thread: Re: can't run mailx as PERL system command
- Index(es):
Relevant Pages
|
|