From: Florian von Savigny <florian265@uboot.com>
Subject: Re: modifying movemail
Date: 20 Jun 2004 12:13:13 +0200 [thread overview]
Message-ID: <m3u0x6zgee.fsf@uboot.com> (raw)
In-Reply-To: 87oene6b0p.fsf@thalassa.informatimago.com
Pascal Bourguignon <spam@thalassa.informatimago.com> writes:
> My script won't work 100% of the time. It may work correctly 80% or
> never or anything betweek 0% and 100%.
I'll give it a try, hoping it works with my (simple)
setup. Regrettably, the news server seems to have discarded the
beginnings of this thread, and I have failed to save away your
script. Trying to re-write it from memory, I arrived at:
#!/bin/sh
echo $$ > "$1".lock
while [ -ne `cat "$1".lock` $$ ]
do
while [ -x "$1".lock ]
do
sleep 5
done
done
mv "$1" "$2"
rm "$1".lock
Was that correct? I am not sure, because that way I don't see how the
condition in the first "while" should ever become false (perhaps when
the echo in the first line fails?).
--
Florian v. Savigny
If you are going to reply in private, please be patient, as I only
check for mail something like once a week. - Si vous allez répondre
personellement, patientez s.v.p., car je ne lis les courriels
qu'environ une fois par semaine.
next prev parent reply other threads:[~2004-06-20 10:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-19 10:27 modifying movemail Florian von Savigny
2004-06-19 17:39 ` Pascal Bourguignon
2004-06-19 21:54 ` Florian von Savigny
2004-06-19 22:10 ` Pascal Bourguignon
2004-06-19 22:45 ` Florian von Savigny
2004-06-20 5:32 ` Pascal Bourguignon
2004-06-19 22:28 ` Florian von Savigny
2004-06-20 5:42 ` Pascal Bourguignon
2004-06-20 10:13 ` Florian von Savigny [this message]
2004-06-20 10:46 ` poor man's movemail Florian von Savigny
2004-06-21 13:26 ` modifying movemail Thien-Thi Nguyen
2004-07-01 10:17 ` Kai Grossjohann
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3u0x6zgee.fsf@uboot.com \
--to=florian265@uboot.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).