server variables in bash scripting
are they any server variables in bash/SSH scripting as is in PHP or Perl, for example in PHP:
$_SERVER['DOCUMENT_ROOT'] or $_SERVER['HTTP_HOST'] I'm trying to retrieve the absolute path of an .SH script I'm running thank you |
is what i'm asking that stupid?
|
the running script is $0
man bash ;) |
Quote:
|
try which $0
|
All times are GMT -5. The time now is 01:42 PM. |