Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: find the shell inside a perl script

by ikegami (Patriarch)
on Jun 22, 2006 at 15:55 UTC ( #556927=note: print w/replies, xml ) Need Help??


in reply to find the shell inside a perl script

`echo \$0` should always return sh. Backticks, system and exec use sh (on platforms with that shell).

You want $ENV{SHELL} on unix OSs and $ENV{COMSPEC} in DOS/Windows.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2022-05-20 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (75 votes). Check out past polls.

    Notices?