Test for root.

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Matt Alexander
Dátum:  
Tárgy: Test for root.
On Thu, 6 Sep 2001, Carl Parrish wrote:

> Is it because it's testing the "word" whoami instead of the output? if
> show how do I make it exe the output first?


Using the backticks executes the command in a subshell, and then returns
the resulting output. So the line you have should work fine. Maybe you
have a problem somewhere else in your script. You could send us your
script so we can take a look, if you want.
~M