D
dmedhora
Hi all,
I have a perl program in which I use Expect to log in to another
computer
and run a command. My mail perl program takes a few arguments on the
command line. Most the of the output on screen is from the Expect
module.
I also take in values from the stdin
How can I redirect the output on screen into a logfile ? Something like
tee
But from within the perl program itself ?
So that whatever output is obtained on stdout/err is also redirected to
a logfile?
Thanks
I have a perl program in which I use Expect to log in to another
computer
and run a command. My mail perl program takes a few arguments on the
command line. Most the of the output on screen is from the Expect
module.
I also take in values from the stdin
How can I redirect the output on screen into a logfile ? Something like
tee
But from within the perl program itself ?
So that whatever output is obtained on stdout/err is also redirected to
a logfile?
Thanks