in reply to Neverwinter Nights Server Restart

Instead of using pidof and having a root requirement, why not just parse the output of a
ps aux | grep nwserver
(the pid is in the second column of the output, the options to ps may be different on your linux flavor) but that may help a bit.
-Jason

Replies are listed 'Best First'.
Re: Re: Neverwinter Nights Server Restart
by gav^ (Curate) on Jul 15, 2002 at 21:37 UTC
    Or you could look at Proc::ProcessTable which makes this easy (and a bit more portable)...

    gav^

Re: Re: Neverwinter Nights Server Restart
by MrCromeDome (Deacon) on Jul 15, 2002 at 22:01 UTC
    Excellent suggestion. ++insensate. I hate having root requirements for something like this, and it seems I missed one of the more obvious ways to avoid it this time ;) Thanks for pointing it out to me.

    MrCromeDome