how do you watch for an incoming file
Kenneth Woods on wsl
ken at wsl.UUCP
Fri Dec 8 10:24:34 AEST 1989
----- News saved at 7 Dec 89 23:20:43 GMT
>In article <5506 at hplabsb.HP.COM>, quan at hplabsb.HP.COM (Suu Quan) writes:
>> How do I write a C-program or shell script that will watch for
>> the presence of a new file in a certain directory.
If you use the C-shell you could try the following command
set mail = ( 10 /usr/mail/$LOGNAME certain_directory )
csh will then send you the message
"New mail in certain_directory"
whenever a file is added or removed from that directory.
You can use ls -t or whatever to find the actual name of the file.
Newsgroups: comp.unix.questions,hp.unix
Subject: Re: how do you watch for an incoming file
Summary:
Expires:
References: <5506 at hplabsb.HP.COM> <1989Nov29.042955.8217 at virtech.uucp>
Sender:
Reply-To: ken at wsl.ie (Kenneth Woods on wsl)
Followup-To:
Distribution:
Organization: Workhorse Systems, Dublin, Ireland
Keywords:
>In article <5506 at hplabsb.HP.COM>, quan at hplabsb.HP.COM (Suu Quan) writes:
>> How do I write a C-program or shell script that will watch for
>> the presence of a new file in a certain directory.
If you use the C-shell you could try the following command
set mail = ( 10 /usr/mail/$LOGNAME certain_directory )
csh will then send you the message
"New mail in certain_directory"
whenever a file is added or removed from that directory.
You can use ls -t or whatever to find the actual name of the file.
More information about the Comp.unix.questions
mailing list