Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: How do I test if my Perl script was run using a login vs a non-login shell

by aaron_baugher (Curate)
on May 23, 2012 at 12:46 UTC ( [id://972028]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How do I test if my Perl script was run using a login vs a non-login shell
in thread How do I test if my Perl script was run using a login vs a non-login shell

You can find out what environment variables are set for your shell in different cases by making your shell:

#!/usr/bin/perl print "$_: $ENV{$_}\n" for keys %ENV;

Aaron B.
Available for small or large Perl jobs; see my home node.

  • Comment on Re^3: How do I test if my Perl script was run using a login vs a non-login shell
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://972028]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-24 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found