Re: locate PID & Kill
| From: | Curlys | Date: | Mon, 09 Aug 2004 11:00:22 +0000 |
| Subject: | Re: locate PID & Kill | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193186@lists.php.net to get a copy of this message | ||
it doesn't work , when it is running , errors r bellow
sh: line 1: kill: r: invalid signal specification
plz help
----- Original Message -----
From: "Matthew Runo" <matthew@quabbo.com>
To: "Curlys" <curlybraces@dialogsl.net>
Cc: "PHP" <php-general@lists.php.net>
Sent: Monday, August 09, 2004 12:38 PM
Subject: Re: [PHP] locate PID & Kill
> You could do something like this..
>
> $cmd = "kill -r HUP /var/run/abc.pl.pid";
> exec($cmd);
>
> That should kill it and then restart it. You'll need to change
> /var/run/abc.pl.pid to fit into your system, but the idea of that line
> is to allow the script to get the proper PID, even if it's not what you
> expect.
>
> I'm not sure if you'd be able to restart it with a given PID.
>
> Matthew Runo
> http://www.quabbo.com
> Quabbo Internet Services
> The only host with the Zend Performance Suite!
>
> On Aug 8, 2004, at 11:25 PM, Curlys wrote:
>
> > pe -ef
> >
> > * 19282 pts/3 00:00:00 abc.pl
> >
> > my perl script is abc.pl. It's PID is 19282
> >
> > Can somebody help me to do the php scripting to........
> >
> > 1.Locate that PID
> > 2.kill the script
> > 3.start that script with the same PID .
> >
> > plz help , i'm highly appreciate ur help
> >
> > thank u
> > curlys
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>