ps -A in script not showing full output
Hello everyone, i have a problem with ps, and pgrep when used in a script. with the -A option it does not print all processes and pgrep on a known running process returns nothing. So I made a script with nothing but "ps -A" and the shebang and it does show all of them. Also, ps -A on the command line is showing all processes. I am running this script as root and it is owned by root.
edit: I have ps -A in a function called in a case and if I put ps -A outside the function and case it shows all. how is where it's at changing it's output
Last edited by throughthegreens; 02-25-2010 at 03:45 AM.
|