yhi Posted May 9, 2015 Share Posted May 9, 2015 when ever i login to my cpanel i saw this CPU usage0 , memory usage , process 0 i want to know how to add process ?? how to use it ? can i program it to do a talk in my absence ? Quote Link to comment https://forums.phpfreaks.com/topic/296164-how-to-add-process-in-server/ Share on other sites More sharing options...
requinix Posted May 9, 2015 Share Posted May 9, 2015 Those figures only show anything if there is a PHP process running at the very same second you get to that page. For a low-traffic site that may be a rare occurrence. Create a script with something like a sleep(100) so it runs for a long time, go to it in your browser, and reload the CPanel page. Quote Link to comment https://forums.phpfreaks.com/topic/296164-how-to-add-process-in-server/#findComment-1511249 Share on other sites More sharing options...
yhi Posted May 9, 2015 Author Share Posted May 9, 2015 ok thxx & is theie is any way to program my website to do some task in my absence ? i mean do something 24*7 Quote Link to comment https://forums.phpfreaks.com/topic/296164-how-to-add-process-in-server/#findComment-1511270 Share on other sites More sharing options...
requinix Posted May 9, 2015 Share Posted May 9, 2015 (edited) Yes, in general (depends if your hosting allows it), but there are very few reasons why you should ever do that. What do you need it to do? Edited May 9, 2015 by requinix Quote Link to comment https://forums.phpfreaks.com/topic/296164-how-to-add-process-in-server/#findComment-1511274 Share on other sites More sharing options...
QuickOldCar Posted May 9, 2015 Share Posted May 9, 2015 Can make a cron job to run scripts a timely manner to either check something or perform a task, can also include or write code right into your scripts some actions to take upon certain conditions, even exec a shell script. Since you have cpanel https://documentation.cpanel.net/display/ALD/Cron+Jobs Quote Link to comment https://forums.phpfreaks.com/topic/296164-how-to-add-process-in-server/#findComment-1511278 Share on other sites More sharing options...
yhi Posted May 10, 2015 Author Share Posted May 10, 2015 Yes, in general (depends if your hosting allows it), but there are very few reasons why you should ever do that. What do you need it to do? Can make a cron job to run scripts a timely manner to either check something or perform a task, can also include or write code right into your scripts some actions to take upon certain conditions, even exec a shell script. Since you have cpanel https://documentation.cpanel.net/display/ALD/Cron+Jobs yes i want to perform some check , also i want to run some scripts adter a certain time (on daily basis) if i do that manually it will take too much time & its also possible to program a script to run a .sh script in my linux server automatically ? thxx quickold car Quote Link to comment https://forums.phpfreaks.com/topic/296164-how-to-add-process-in-server/#findComment-1511299 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.