Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: bigpcman on June 03, 2009, 01:33:27 PM

Title: What does "pidof jwm >/dev/null" in "pidof jwm >/dev/null && jwm -restart" do?
Post by: bigpcman on June 03, 2009, 01:33:27 PM
TC2.0rc4 - In jwm_restart, what does "pidof jwm >/dev/null" in "pidof jwm >/dev/null" && jwm -restart" do?
Title: Re: What does "pidof jwm >/dev/null" in "pidof jwm >/dev/null && jwm -restart" do?
Post by: curaga on June 03, 2009, 01:41:27 PM
It checks if a process named jwm exists
Title: Re: What does "pidof jwm >/dev/null" in "pidof jwm >/dev/null && jwm -restart" do?
Post by: bigpcman on June 03, 2009, 02:09:06 PM
It checks if a process named jwm exists

I had forgotten the obvious - && will execute the second command if the first one succeeds.