public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Kees Cook <kees@oNsOdSPAMl.org>
To: linux-newbie@vger.kernel.org
Subject: Re: Is a process running ?
Date: Mon, 28 Jul 2003 09:32:29 -0700	[thread overview]
Message-ID: <bg3j6t$4ob$1@build.pdx.osdl.net> (raw)
In-Reply-To: 000701c3550a$41308a80$ed64a8c0@descartes

John T. Williams wrote:
> ps -A | grep -e "[ /]python2.1\>" 1> /dev/null 2> /dev/null

A quick short-cut for the last part:

ps -A | grep -e "[ /]python2.1\>" >/dev/null 2>&1

"1" (stdout) is used by default, and then 2>&1 takes "2" (stderr) and 
sends (>) it to the same location (&) as "1".

-- 
Kees

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

      parent reply	other threads:[~2003-07-28 16:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-28  9:20 Is a process running ? Tim Fletcher
2003-07-28 13:14 ` John T. Williams
2003-07-28 11:02   ` Tim Fletcher
2003-07-28 16:32   ` Kees Cook [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='bg3j6t$4ob$1@build.pdx.osdl.net' \
    --to=kees@onsodspaml.org \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox