Re: Redirecting Output

2002-12-20 Thread Sugumar
Thanks for your responses. Regards, Sugumar Bob Showalter wrote: -Original Message- From: Sugumar [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 2:47 PM To: [EMAIL PROTECTED] Subject: Redirecting Output Hi, I'm trying this command from my perl program system ( "perldoc

RE: Redirecting Output

2002-12-20 Thread Bob Showalter
> -Original Message- > From: Sugumar [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 19, 2002 2:47 PM > To: [EMAIL PROTECTED] > Subject: Redirecting Output > > > Hi, > > I'm trying this command from my perl program system ( > "perldoc perldsc > > tmp.txt"). I don't see the output

Re: Redirecting Output

2002-12-20 Thread Rob Dixon
I don't know too much about redirecting output in Unix, but whatever will work on the command line should work in system(). Within perl, you can achieve the same effect with: open TMP, "> tmp.txt"; print TMP foreach `perldoc perldsc`; close TMP; HTH, Rob "Sugumar" <[EMAIL PROTECTED

Re: Redirecting Output

2002-12-19 Thread Mark Goland
this should do itperhaps someone can come up with a one liner ->cut use IPC::Open3; $CMD=join " ",@{ARGV[0..$#ARGV-1]}; #build up command open3( local $TMP , \*RDRFH,local $TMP ,"$CMD"); #run it open WR_FH, "> $ARGV[$#ARGV]" || die "could creat $ARGV[$#ARGV]: $!"; print WR_FH while ;

Re: Redirecting output

2002-09-20 Thread david
Jason Frisvold wrote: > Is there a way to redirect all the output (anything printed by the > program itself and any error output) back into the program so the > program can handle it? > > I'd like to be able to redirect it to itself so if there are any errors > or unexpected output during a cron

RE: Redirecting output

2002-09-20 Thread Bob Showalter
> -Original Message- > From: Jason Frisvold [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 20, 2002 11:52 AM > To: [EMAIL PROTECTED] > Subject: Redirecting output > > > Is there a way to redirect all the output (anything printed by the > program itself and any error output) back in