Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Isn't that what the -x flag in pgrep is used for? Commented Jan 29, 2018 at 6:56
  • For a script started as ./redshift, the complete command line is just redshift. pgrep -x redshift will match that. Commented Jan 29, 2018 at 7:04
  • psgrep -x find matching for the whole line; while ./redshift and bash -x redshift are one same thing in some logical way, they are two different things in term of psgrep -x. Commented Jan 29, 2018 at 7:35
  • 2
    Of course it will, that makes sense now. The check script is called redshift and the program in /usr/bin is called redshift. Probably a bad idea to do in general.. Commented Jan 29, 2018 at 7:39