Tiny Core Base > TCB Talk

What does "pidof jwm >/dev/null" in "pidof jwm >/dev/null && jwm -restart" do?

(1/1)

bigpcman:
TC2.0rc4 - In jwm_restart, what does "pidof jwm >/dev/null" in "pidof jwm >/dev/null" && jwm -restart" do?

curaga:
It checks if a process named jwm exists

bigpcman:

--- Quote from: curaga on June 03, 2009, 04:41:27 PM ---It checks if a process named jwm exists

--- End quote ---

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

Navigation

[0] Message Index

Go to full version