I want to get list of running processes for current user to assure if “file.php” is still running or not?
I’m using cPanel and web server is Litespeed.
I want to get list of running processes for current user to assure if “file.php” is still running or not?
I’m using cPanel and web server is Litespeed.
4
Answers
Here is what you need:
ps faux | grep -i file.php
First of You need to Just write
top
in command prompt.Then you can see all the list of service running as of now.Go to you php code and use exec function to run this command.
show tasks, redirect errors to NUL (hide errors)
Will give you something like this
No you can filter/search with regex for your file.