in reply to Re: how to get the current folder name where the program is running?
in thread how to get the current folder name where the program is running?
From perlvar....
$0 Contains the name of the program being executed. On some oper- ating systems assigning to `$0' modifies the argument area that the ps program sees. This is more useful as a way of indicat- ing the current program state than it is for hiding the program you're running. (Mnemonic: same as sh and ksh.)
Update: Ug.. as tachyon showed, it doesn't always work. Try /procfs, it should tell you what file you are currently running.. though windows and osx doesn't have that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: how to get the current folder name where the program is running?
by tachyon (Chancellor) on Dec 13, 2003 at 14:00 UTC | |
by exussum0 (Vicar) on Dec 13, 2003 at 16:41 UTC |