WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: What does "pidof jwm >/dev/null" in "pidof jwm >/dev/null && jwm -restart" do?  (Read 3061 times)

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
TC2.0rc4 - In jwm_restart, what does "pidof jwm >/dev/null" in "pidof jwm >/dev/null" && jwm -restart" do?
big pc man

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
It checks if a process named jwm exists
The only barriers that can stop you are the ones you create yourself.

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
It checks if a process named jwm exists

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