in reply to Re: Perl won't Open() when called from Java
in thread Perl won't Open() when called from Java
I was able to fix this but can't understand why. I replaced:
my $syslog_file = "tail -n 0 -f /var/log/messages | "; print STDOUT "some debug line: $syslog_file\n"; open(FH,"syslog_file") print STDOUT "didn't reach before\n";
with:
my $syslog_file = "tail -n 0 -f /var/log/messages | "; print STDERR "some debug line: $syslog_file\n"; open(FH,"syslog_file") print STDERR "reaches now\n";
Why would changing to STDERR make a difference?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl won't Open() when called from Java
by Anonymous Monk on Feb 23, 2012 at 19:35 UTC | |
by Marshall (Canon) on Feb 23, 2012 at 19:56 UTC | |
by ikegami (Patriarch) on Feb 23, 2012 at 20:22 UTC | |
by Marshall (Canon) on Feb 24, 2012 at 08:29 UTC |