Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Neverwinter Nights Server Restart

by insensate (Hermit)
on Jul 15, 2002 at 21:31 UTC ( [id://181925]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2024-04-16 14:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found