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

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

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

Postby sohaib » Thu Sep 12, 2019 5:45 am

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
sohaib
 
Posts: 57
Joined: Wed Feb 23, 2011 3:59 pm

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

Postby williamconley » Fri Sep 13, 2019 12:13 pm

This feels like an ubuntu question. Completely unrelated to Vicidial.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

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

Postby sohaib » Fri Sep 13, 2019 1:17 pm

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.
sohaib
 
Posts: 57
Joined: Wed Feb 23, 2011 3:59 pm

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

Postby williamconley » Fri Sep 13, 2019 1:21 pm

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).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

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

Postby sohaib » Fri Sep 13, 2019 1:34 pm

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
sohaib
 
Posts: 57
Joined: Wed Feb 23, 2011 3:59 pm

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

Postby williamconley » Fri Sep 13, 2019 1:43 pm

There are Ubuntu forums, just like this Vicidial forum.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 102 guests