What proc is "-:0" ?

I am running openSUSE 12.1 x86_64 and was looking at what was running
with htop and saw the process owned by root using the command “-:0”
without the quotation marks. Does anybody know what this is. I did a
quick search on Google but did not find what I was looking for.

Thank you,

Eric

I would guess the X server. It modifies its first argument to be of the form -host:displaynumber. When host is contacted via a Unix socket rather than TCP/IP, then host is blank, so you get -:0.

On 11/27/2011 07:52 AM, Eric wrote:
> using the command “-:0” without the quotation marks.

could you take a screen shot of that, post it to paste.opensuse.org, and
fling the URL back to here please…

i ask, because i don’t have a running 12.1 to peek at…
my 11.4 shows an xorg process launched with a command line switch of “:0”

the entire line in htop is:


/usr/bin/xorg -br :0 vt7 -nolisten tcp - auth
/var/lib/xdm/authdir/authfiles/A:0-cTarec

could that be what you are seeing, but with an extra dash, as in ‘-:0’


DD http://tinyurl.com/DD-Caveat
openSUSE®, the “German Engineered Automobiles” of operating systems!

Here’s what I am currently seeing:


% ps -ef | grep -- "-:0"
root      1626  1344  0 Nov26 ?        00:00:00 -:0         
rickert  10134  4920  0 07:28 pts/4    00:00:00 grep -- -:0

% ps -fp 1626
UID        PID  PPID  C STIME TTY          TIME CMD
root      1626  1344  0 Nov26 ?        00:00:00 -:0

% ps -fp 1344   ### check parent process
UID        PID  PPID  C STIME TTY          TIME CMD
root      1344     1  0 Nov26 ?        00:00:00 /usr/bin/kdm

% ps -lp 1626   ### this should show what is actually running
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
5 S     0  1626  1344  0  80   0 - 20847 rt_sig ?        00:00:00 kdm

Similar commands might help you narrow down what is happening on your system.

On 11/27/2011 02:36 PM, nrickert wrote:
>
> % ps -lp 1626 ### this should show what is actually running

VERY cool, thanks…

but, tell me where that % comes from and what it means, please

i can guess it is the opposite of # and maybe the same as or similar
to $, but i have to wonder how i missed that fact…or is it something
‘new’?


DD
openSUSE®, the “German Engineered Automobiles” of operating systems!

DenverD wrote:

> On 11/27/2011 02:36 PM, nrickert wrote:
>>
>> % ps -lp 1626 ### this should show what is actually running
>
> VERY cool, thanks…
>
> but, tell me where that % comes from and what it means, please
>
> i can guess it is the opposite of # and maybe the same as or similar
> to $, but i have to wonder how i missed that fact…or is it something
> ‘new’?
>

Definitely not new - it’s the default prompt from the C-shell (csh).
Haven’t seen it in years - all my csh use went to tcsh (and thence to bash).

Sniff. Seeing ‘%’ prompts makes me nostalgic for ADM-3As and VT-100s.

On 11/27/2011 04:16 PM, George Baltz wrote:
> Definitely not new - it’s the default prompt from the C-shell (csh).

ah! thanks…

i read about such but being a wimpy noob, it was just reading–having
only had the pleasure of bash in my slow transition from OS/2 beginning
about 1997/8, or so.


DD
openSUSE®, the “German Engineered Automobiles” of operating systems!

That’s just what I put in my prompt, instead of the path. I know where I am, so I don’t need that to be there.

Well, an xterm is a bit like a vt100. And the whole point of a desktop environment, is that you can open a bunch of xterms :stuck_out_tongue:

On 11/27/2011 06:16 PM, nrickert wrote:
> the whole point of a desktop environment, is that you can open a bunch of xterms :stuck_out_tongue:

+1+1+1+1+1+1


DD

> That’s just what I put in my prompt, instead of the path.

ah, thanks… (you wiggled .bashrc, now i understand.)


DD

On 11/27/2011 06:36 AM, nrickert wrote:
>
> Here’s what I am currently seeing:
>
> Code:
> --------------------
>
> % ps -ef | grep – “-:0”
> root 1626 1344 0 Nov26 ? 00:00:00 -:0
> rickert 10134 4920 0 07:28 pts/4 00:00:00 grep – -:0
>
> % ps -fp 1626
> UID PID PPID C STIME TTY TIME CMD
> root 1626 1344 0 Nov26 ? 00:00:00 -:0
>
> % ps -fp 1344 ### check parent process
> UID PID PPID C STIME TTY TIME CMD
> root 1344 1 0 Nov26 ? 00:00:00 /usr/bin/kdm
>
> % ps -lp 1626 ### this should show what is actually running
> F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
> 5 S 0 1626 1344 0 80 0 - 20847 rt_sig ? 00:00:00 kdm
>
> --------------------
>
>
> Similar commands might help you narrow down what is happening on your
> system.
>
>
Thank you, I have similar results as you do.

Code:

> ps -ef | grep – “-:0”
root 2645 2417 0 Nov27 ? 00:00:00 -:0
eric 4583 2992 0 00:31 pts/2 00:00:00 grep --color=auto – -:0

> ps -fp 2645
UID PID PPID C STIME TTY TIME CMD
root 2645 2417 0 Nov27 ? 00:00:00 -:0

>ps -lp 1625
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
5 S 0 2645 2417 0 80 0 - 19808 rt_sig ? 00:00:00 kdm

I will have to remember those commands when I want to know what is
controlling a process.

Thank you,

Eric

On 11/27/2011 06:36 AM, nrickert wrote:
>
> Here’s what I am currently seeing:
>
> Code:
> --------------------
>
> % ps -ef | grep – “-:0”
> root 1626 1344 0 Nov26 ? 00:00:00 -:0
> rickert 10134 4920 0 07:28 pts/4 00:00:00 grep – -:0
>
> % ps -fp 1626
> UID PID PPID C STIME TTY TIME CMD
> root 1626 1344 0 Nov26 ? 00:00:00 -:0
>
> % ps -fp 1344 ### check parent process
> UID PID PPID C STIME TTY TIME CMD
> root 1344 1 0 Nov26 ? 00:00:00 /usr/bin/kdm
>
> % ps -lp 1626 ### this should show what is actually running
> F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
> 5 S 0 1626 1344 0 80 0 - 20847 rt_sig ? 00:00:00 kdm
>
> --------------------
>
>
> Similar commands might help you narrow down what is happening on your
> system.
>
>
Thank you, I have similar results as you do.

Code:

> ps -ef | grep – “-:0”
root 2645 2417 0 Nov27 ? 00:00:00 -:0
eric 4583 2992 0 00:31 pts/2 00:00:00 grep --color=auto – -:0

> ps -fp 2645
UID PID PPID C STIME TTY TIME CMD
root 2645 2417 0 Nov27 ? 00:00:00 -:0

>ps -lp 1625
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
5 S 0 2645 2417 0 80 0 - 19808 rt_sig ? 00:00:00 kdm

I will have to remember those commands when I want to know what is
controlling a process.

Thank you,

Eric