From: "Tim Fletcher" <tfletcher@netfactoriel.com>
To: "Linux-Newbie@Vger. Kernel. Org" <linux-newbie@vger.kernel.org>
Subject: Is a process running ?
Date: Mon, 28 Jul 2003 11:20:19 +0200 [thread overview]
Message-ID: <NGBBLGNMLJPKEPIFPKLHKEEFGAAA.tfletcher@netfactoriel.com> (raw)
Hi all,
i would like to write a simple shell script that checks for the existence of a certain programme, in this case python2.1. if the
programme is active, do nothing, if not, start it.
i did think of doing a ps -A |grep python2.1, but then i have no idea how to intergrate that in the shell script.
any ideas would be very welcome
Thanks & HAND
Tim
-
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
next reply other threads:[~2003-07-28 9:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-28 9:20 Tim Fletcher [this message]
2003-07-28 13:14 ` Is a process running ? John T. Williams
2003-07-28 11:02 ` Tim Fletcher
2003-07-28 16:32 ` Kees Cook
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=NGBBLGNMLJPKEPIFPKLHKEEFGAAA.tfletcher@netfactoriel.com \
--to=tfletcher@netfactoriel.com \
--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