in reply to Re^3: capturing stderr of echo piped to a file
in thread capturing stderr of echo piped to a file
~/stuff > perl foobar.pl Normal STDOUT Going to STDERR ~/stuff > echo 'Just a starting point > ' >JGBtest.txt ~/stuff > cat JGBtest.txt Just a starting point ~/stuff > perl foobar.pl >>JGBtest.txt 2>&1 ~/stuff > cat JGBtest.txt Just a starting point Going to STDERR Normal STDOUT ~/stuff > cat foobar.pl #!/usr/bin/perl use warnings; use strict; print "Normal STDOUT\n"; warn "Going to STDERR\n"; exit; __END__ ~/stuff >
You must always remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: capturing stderr of echo piped to a file
by Crackers2 (Parson) on Oct 29, 2014 at 20:13 UTC | |
by boftx (Deacon) on Oct 29, 2014 at 23:21 UTC | |
by Crackers2 (Parson) on Oct 30, 2014 at 18:31 UTC |
In Section
Seekers of Perl Wisdom