P
paul_0403
I have a perl program that opens a log file and than prints to it,
that part works well
ie
if (! open (LOG, ">>$logfile"))
{
print STDERR "Cannot open logfile $logfile $!\n";
exit 1;
}
print LOG "Hello world\n";
I want to do something like this and it is not working. Note I want
to redirect the output of the kill command to the same logfile, is
this
possible? If so, what am I missing. Note: at this point LOG is still
open.
system("kill -USR1 \"$1\" > LOG 2>\&1");
Thanks
that part works well
ie
if (! open (LOG, ">>$logfile"))
{
print STDERR "Cannot open logfile $logfile $!\n";
exit 1;
}
print LOG "Hello world\n";
I want to do something like this and it is not working. Note I want
to redirect the output of the kill command to the same logfile, is
this
possible? If so, what am I missing. Note: at this point LOG is still
open.
system("kill -USR1 \"$1\" > LOG 2>\&1");
Thanks