tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ Release of rc-1.6

Bullet proof way to find return codes ▻

Named Pipes - possibly

In article <375A99DC.2B00@yahoo.com>,
Gary Hurdman  <gary_hurdman@yahoo.com> wrote:
>          One of these scripts runs an ftp process in the background.
>When this has finished a file will eventually appear in a given
>directory.  I want to copy that file to another directory [...]

The standard way to do this is to get the FTP client to transfer the
file using a temporary name, then, when the transfer is complete, rename
it to the final name.  This guarantees that, if the final name exists,
it is complete.

>If anybody knows of a good resource for named pipes

They're fairly straightforward.  Start with the mknod(1) man page, and
remember that they're also known as FIFOs.

Tim.
--
Tim Goodwin   | `I can't believe that someone is releasing
University of | something called "Unix" without something
Leicester, UK | called "/bin/sh".' -- Randal L. Schwartz

Original headers:

From: tjg@ltpcg.star.le.ac.uk (Tim J Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: Named Pipes - possibly
Date: 7 Jun 1999 12:23:37 +0100
Organization: University of Leicester, UK
Message-ID: <7jga3p$t5b$1@ltpcg.star.le.ac.uk>
References: <375A99DC.2B00@yahoo.com>

△ comp.unix.shell △

◅ Release of rc-1.6

Bullet proof way to find return codes ▻