From: Sascha Lucas <sascha.lucas@rus.uni-stuttgart.de>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] OT: bash scripting: implement uninterruptable sleep
Date: Tue, 28 Mar 2006 10:13:32 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.0603281004080.30414@tragbb.ehf.hav-fghggtneg.qr> (raw)
Hi List,
I have a shell script and want a uninterruptable sleep. /usr/bin/sleep
itself seems to have its own signal handlers. How is it possible to sleep
uninterruptable?
#!/bin/bash
trap "echo 'Ctrl+C should not work'" INT
for foo in 1 2 3; do
echo $foo
sleep 10
done
## end of script
TIA,
Sascha.
--
gentoo-user@gentoo.org mailing list
next reply other threads:[~2006-03-28 8:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-28 8:13 Sascha Lucas [this message]
2006-03-28 21:41 ` [gentoo-user] OT: bash scripting: implement uninterruptable sleep Richard Fish
2006-03-31 9:06 ` Sascha Lucas
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=Pine.LNX.4.64.0603281004080.30414@tragbb.ehf.hav-fghggtneg.qr \
--to=sascha.lucas@rus.uni-stuttgart.de \
--cc=gentoo-user@lists.gentoo.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