Re: can't run mailx as PERL system command

2007-11-28 Thread Jenda Krynicky
From: Elliot Holden <[EMAIL PROTECTED]> > ok this is problem going to be real easy for one of you PERL gurus but It's either Perl (the language) or perl (the interpreter), there is no such thing as PERL. > my little brain just can't figure it out. From the command line (Solaris > 9) I can do

Re: can't run mailx as PERL system command

2007-11-27 Thread Celejar
On Tue, 27 Nov 2007 19:43:55 -0500 Elliot Holden <[EMAIL PROTECTED]> wrote: > But in PERL the below code does not work: > > system("echo my little test | mailx -s \"Test Message\" > [EMAIL PROTECTED]"); > > even if I just do: > > system("mailx [EMAIL PROTECTED]"); You need to escape the '@' i

Re: can't run mailx as PERL system command

2007-11-27 Thread Tom Phoenix
On 11/27/07, Elliot Holden <[EMAIL PROTECTED]> wrote: > system("echo my little test | mailx -s \"Test Message\" > [EMAIL PROTECTED]"); What is that command? This code should show it to you: print "The command is: echo my little test | "; print "mailx -s \"Test Message\" "; print "[EMAIL PR

can't run mailx as PERL system command

2007-11-27 Thread Elliot Holden
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 PROTECTED] But in PERL the below code does not work: system("echo my lit

Re: Problem with the Perl System command

2003-10-06 Thread John W. Krahn
Chinku Simon wrote: > > Hi, Hello, > I am facing an issue with the perl system command > > The relevant lines of code are the following: > > chdir "$util"; > my @args = ("ldapmodify", "-D \"cn=$bdn\"", "-w $bp", &quo

Problem with the Perl System command

2003-10-06 Thread Chinku Simon
Hi, I am facing an issue with the perl system command The relevant lines of code are the following: chdir "$util"; my @args = ("ldapmodify", "-D \"cn=$bdn\"", "-w $bp", "-h $svr", "-f \"$ldif\"", "-c", &q

Re: Perl "system" command

2002-01-23 Thread Kevin Kirwan
"Jenda Krynicky" <[EMAIL PROTECTED]> wrote in message 3C4DB27B.15762.1FE92DCC@localhost">news:3C4DB27B.15762.1FE92DCC@localhost... > From: "Kevin Kirwan" <[EMAIL PROTECTED]> > > > Guys, > > I've got a newbie question: I'm writing a Perl program to get some > > system information about

Re: Perl "system" command

2002-01-22 Thread Jenda Krynicky
From: "Kevin Kirwan" <[EMAIL PROTECTED]> > Guys, > I've got a newbie question: I'm writing a Perl program to get some > system information about particular users. The command(s): > $command=q(/usr/bin/last vtran|head -1|awk '{print $4,$5}'); > $Last=system "$command"; print $La

Re: Perl "system" command

2002-01-22 Thread Jeff 'japhy' Pinyan
On Jan 22, Kevin Kirwan said: >$command=q(/usr/bin/last vtran|head -1|awk '{print $4,$5}'); >$Last=system "$command"; >print $Last; > >This returns the fields that I want, except I also get the return code (0), No. This prints the fields you want when you call system(), and returns the error co

Perl "system" command

2002-01-22 Thread Kevin Kirwan
Guys, I've got a newbie question: I'm writing a Perl program to get some system information about particular users. The command(s): $command=q(/usr/bin/last vtran|head -1|awk '{print $4,$5}'); $Last=system "$command"; print $Last; This returns the fields that I want, except I also get the return