Page 1 of 1

Result of /bin/ps -o "%p %a" --no-headers -A not showing

PostPosted: Thu Sep 12, 2019 5:45 am
by sohaib
Hi,

I am using ubuntu 12 and asterisk 11.22, my server was running perfectly fine since last 8 months, suddenly I noticed that my Screens are not showing 7, it shows 5 and 4 screens. I troubleshooted the scripts and I found that /bin/ps -o "%p %a" --no-headers -A this command is not showing result as per requirement.
When i run /bin/ps -o "%p %a" --no-headers -A command on shell it shows below result.

Code: Select all
root@ccc:~# /bin/ps -o "%p %a" --no-headers -A
  PID TTY          TIME CMD
23000 pts/7    00:00:00 bash
23224 pts/7    00:00:00 ps
23227 pts/7    00:00:00 ps
root@ccc:~#


I am not sure how it changed it's result, I run the same command on another machine it shows list of process. Can some one quide me that what this command actualy means? and why it is not showing the desire result. I rebooted the system serveral times. but no success.

Sohaib Khan

Ubuntu 12.04
Asterisk 11.22.0
VERSION: 2.14-669a
BUILD: 180411-1647
© 2018 ViciDial Group

Re: Result of /bin/ps -o "%p %a" --no-headers -A not showing

PostPosted: Fri Sep 13, 2019 12:13 pm
by williamconley
This feels like an ubuntu question. Completely unrelated to Vicidial.

Re: Result of /bin/ps -o "%p %a" --no-headers -A not showing

PostPosted: Fri Sep 13, 2019 1:17 pm
by sohaib
I understand that, but this command is being used in vicidial script, so i thought i can get best explanation about this command here.
If you can just explain me what that command actually means so i can troubleshoot it further.

Re: Result of /bin/ps -o "%p %a" --no-headers -A not showing

PostPosted: Fri Sep 13, 2019 1:21 pm
by williamconley
You already executed it in another server. It returns a list of running processes. If it fails to do so, and this is not an OpenSuSE install, the likelihood of someone here knowing why is fairly slim.

I've never seen that command fail, even on an ubuntu 12.04 server (and we have several).

Re: Result of /bin/ps -o "%p %a" --no-headers -A not showing

PostPosted: Fri Sep 13, 2019 1:34 pm
by sohaib
I also have another working setup on ubuntu 12.04, even it was also working absolutely fine, but i dont know how it start malfunctioning this command.
However, i have found another work around for that, but St ll trying to figure out why this command is failing

Re: Result of /bin/ps -o "%p %a" --no-headers -A not showing

PostPosted: Fri Sep 13, 2019 1:43 pm
by williamconley
There are Ubuntu forums, just like this Vicidial forum.