Re: rsh shell command hangs and does not return

2009-02-11 Thread Chas. Owens
On Wed, Feb 11, 2009 at 09:31, Rob Dixon wrote: snip > This is one of the reasons why I deplore command-line Perl - because the > format > depends enormously on the command shell being used. The example was for a Unix > shell, but with Windows command prompt only double-quotes will suffice to > d

Re: rsh shell command hangs and does not return

2009-02-11 Thread Rob Dixon
Bob McConnell wrote: > From: Rob Dixon >> Chas. Owens wrote: >>> >>> perl -MIPC::Open2 -le 'print ok' >> >> That will be >> >> perl -MIPC::Open2 -le 'print "ok"' >> > > Fascinating. I have been trying out Camelbox > on a new system with WinXP Pro SP2. > When

RE: rsh shell command hangs and does not return

2009-02-11 Thread Bob McConnell
From: Rob Dixon > Chas. Owens wrote: >> >> perl -MIPC::Open2 -le 'print ok' > > That will be > > perl -MIPC::Open2 -le 'print "ok"' > Fascinating. I have been trying out Camelbox on a new system with WinXP Pro SP2. When I paste that line into a console wi

Re: rsh shell command hangs and does not return

2009-02-10 Thread Chas. Owens
On Tue, Feb 10, 2009 at 21:16, Chas. Owens wrote: > > > On Feb 10, 2009, at 19:51, Rob Dixon wrote: > >> Chas. Owens wrote: >>> >>> perl -MIPC::Open2 -le 'print ok' >> >> That will be >> >> perl -MIPC::Open2 -le 'print "ok"' >> >> Rob > > While that will work, it isn't necessary. The strict prag

Re: rsh shell command hangs and does not return

2009-02-10 Thread Chas. Owens
On Feb 10, 2009, at 19:51, Rob Dixon wrote: Chas. Owens wrote: perl -MIPC::Open2 -le 'print ok' That will be perl -MIPC::Open2 -le 'print "ok"' Rob While that will work, it isn't necessary. The strict pragma is not in force, so the bareword ok is the same as the string "ok" (since

Re: rsh shell command hangs and does not return

2009-02-10 Thread Rob Dixon
Chas. Owens wrote: > > perl -MIPC::Open2 -le 'print ok' That will be perl -MIPC::Open2 -le 'print "ok"' Rob -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: rsh shell command hangs and does not return

2009-02-10 Thread Chas. Owens
On Tue, Feb 10, 2009 at 05:40, Ice Man wrote: snip > A bit of a quagmire here. Seems open2 /open3 are not available to me > at work. > A little frustrated here. Are there any other alternatives? snip IPC::Open2 and IPC::Open3 are part of Core Perl and have been since the first version of Perl 5

Re: rsh shell command hangs and does not return

2009-02-10 Thread Ice Man
On Feb 7, 9:40 am, wjharris...@optonline.net (Ice Man) wrote: > On Feb 7, 7:17 am, chas.ow...@gmail.com (Chas. Owens) wrote: > > > > > On Fri, Feb 6, 2009 at 14:31, Ice Man wrote: > > > Ok . so I have to start a program which is written in java. > > > > #!/local/bin/perl > > > > my $command =

Re: rsh shell command hangs and does not return

2009-02-08 Thread Ice Man
On Feb 7, 7:17 am, chas.ow...@gmail.com (Chas. Owens) wrote: > On Fri, Feb 6, 2009 at 14:31, Ice Man wrote: > > Ok . so I have to start a program which is written in java. > > > #!/local/bin/perl > > > my $command = "/aa/bb/c/executable \&"; > > my $ret = 0; > > > $ret = `$command`; > > > exit

Re: rsh shell command hangs and does not return

2009-02-07 Thread Chas. Owens
On Sat, Feb 7, 2009 at 07:17, Chas. Owens wrote: > On Fri, Feb 6, 2009 at 14:31, Ice Man wrote: >> Ok . so I have to start a program which is written in java. >> >> #!/local/bin/perl >> >> my $command = "/aa/bb/c/executable \&"; >> my $ret = 0; >> >> $ret = `$command`; >> >> exit $ret; >> >>

Re: rsh shell command hangs and does not return

2009-02-07 Thread Chas. Owens
On Fri, Feb 6, 2009 at 14:31, Ice Man wrote: > Ok . so I have to start a program which is written in java. > > #!/local/bin/perl > > my $command = "/aa/bb/c/executable \&"; > my $ret = 0; > > $ret = `$command`; > > exit $ret; > > The normal behavior of this executable is to list some informati