RE: [PHP] PID needed to hammer squid

2004-08-27 Thread Thijs Lensselink
To get the pid id: ?php exec(cat [path to pid file], $pid); echo $pid[0]; ? raditha dissanayake wrote: Mário Gamito wrote: Hi, I need to kill (squid) -D pidof (squid) -D gives an error :( man pidof we have nowed moved to off topic territory. -- Raditha Dissanayake.

RE: [PHP] PID needed to hammer squid

2004-08-25 Thread Jay Blanchard
[snip] I need to restart squid from PHP, but my squi doesn't stop because a lot of stupid errors. So, i need to kill it and then start it again. [EMAIL PROTECTED] init.d]# ps aux | grep squid root 9281 0.0 0.3 6124 1792 ?S16:04 0:00 squid -D squid 9283 0.0 1.0 8392

Re: [PHP] PID needed to hammer squid

2004-08-25 Thread raditha dissanayake
Mário Gamito wrote: Hi, I need to restart squid from PHP, but my squi doesn't stop because a lot of stupid errors. So, i need to kill it and then start it again. killing a process owned by another user is a tough ask. The squid docs say you shouldn't run it as root and it also advice against

Re: [PHP] PID needed to hammer squid

2004-08-25 Thread Mário Gamito
Hi, I need to kill (squid) -D pidof (squid) -D gives an error :( Regards, Mário Gamito raditha dissanayake wrote: Mário Gamito wrote: Hi, I need to restart squid from PHP, but my squi doesn't stop because a lot of stupid errors. So, i need to kill it and then start it again. killing a process

Re: [PHP] PID needed to hammer squid

2004-08-25 Thread raditha dissanayake
Mário Gamito wrote: Hi, I need to kill (squid) -D pidof (squid) -D gives an error :( man pidof we have nowed moved to off topic territory. -- Raditha Dissanayake. http://www.radinks.com/sftp/ |