J
Joe Van Dyk
I'm trying to redirect stdout and stderr of a program to a log file.
So, I'm doing something like:
$stdout.sync =3D true
$stderr.sync =3D true
$stdout.reopen File.open(some_log_file, "w")
$stderr.reopen File.open(some_log_file, "w")
exec 'program'
Standard out and error are being redirected to the log file, but they
are being buffered.
Any ideas on why that might be?
Thanks,
Joe
So, I'm doing something like:
$stdout.sync =3D true
$stderr.sync =3D true
$stdout.reopen File.open(some_log_file, "w")
$stderr.reopen File.open(some_log_file, "w")
exec 'program'
Standard out and error are being redirected to the log file, but they
are being buffered.
Any ideas on why that might be?
Thanks,
Joe