Search Results

Search: Posts Made By: LukasB
8,088
Posted By Corona688
Your code isn't that bad actually, there's just a...
Your code isn't that bad actually, there's just a few things to learn which will help simplify what you do. Remember you can use 'exit' to make the script quit at any time, which helps avoid n+1...
8,088
Posted By Corona688
read PID < /tmp/php.pid echo "Killing $PID" ...
read PID < /tmp/php.pid
echo "Killing $PID"
kill "$PID" || echo "Couldn't kill PID" You should run this script under the same user that ran the PHP script (presumably apache), because the system...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 05:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy