Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: Convert Shell script to Perl

by eyepopslikeamosquito (Chancellor)
on Oct 10, 2011 at 19:28 UTC ( #930697=note: print w/replies, xml ) Need Help??


in reply to Re^4: Convert Shell script to Perl
in thread Convert Shell script to Perl

But I should be able to find these env variables in the command window

No. That's a FAQ, both a Unix FAQ and a Perl one (see perlfaq8). See also: export environment variable from a perl program.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930697]
help
Chatterbox?
[erix]: when I capture test-ouput with test.pl 2>&1 > test.out why do I still get output on the screen? (I had not expected that)
[erix]: Hi Corion
[erix]: ( postgres has adopted TAP tests + perl for testing, and I'm playing around with that )
[Corion]: erix: Maybe the program re-opens STDERR or something like that? Also, I think you need to redirect first and then do the 2>&1 thing, but I never know and have to Google that
[huck]: erix some things also write to the raw console/tty/pty rather than stdout/stderr
[Discipulus]: see this useful site
[erix]: hm. ok. Either might be the case here. I guess I need to try out more

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-03-23 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (284 votes). Check out past polls.