From: ichi@ihug.co.nz
To: Daniel Peter Cavanagh <nofsk@vtown.com.au>
Cc: linux-newbie@vger.kernel.org
Subject: Re: bash script problem
Date: Tue, 10 Dec 2002 16:55:34 +0000 [thread overview]
Message-ID: <3DF61C86.51C4AD34@ihug.co.nz> (raw)
In-Reply-To: 3DF54C86.7070908@vtown.com.au
Daniel Peter Cavanagh wrote:
>
> I'd like to write a script that will run a command,
> and if successful run another command otherwise echo
> a message.
How about this:
------------------------------------
fetchmail -su nofsk pop.vtown.com.au
case $? in 0) pine;;
*) echo failed fetch;;
esac
------------------------------------
Cheers,
Steven
-
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 prev parent reply other threads:[~2002-12-10 16:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-10 2:08 bash script problem Daniel Peter Cavanagh
2002-12-10 16:55 ` ichi [this message]
2002-12-10 21:19 ` Chuck Gelm
2002-12-10 17:07 ` Brian Jackson
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=3DF61C86.51C4AD34@ihug.co.nz \
--to=ichi@ihug.co.nz \
--cc=linux-newbie@vger.kernel.org \
--cc=nofsk@vtown.com.au \
/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