You want to use cron on Linux for applications that need to run at specific
scheduled times or intervals.
So you could write a script that looked something like this to do a one-shot
ftp and then have cron run this script every x minutes:
#!/bin/sh
test -f /trigger/file && ftp <</ftp/command/file
Probably adding some sanity checks to make sure the ftp completed successfully
would be a good idea. ;-)
- Mark B.
Tony Gil wrote:
> I'm currently FTP'ing data from the HP-3000 to a Linux FTP server.
>
> I'm trying to run a script which will act like a "sleeper" job to be run on
> the Linux server. This "job" will check for file(s) present in a special
> folder.
>
> If a file is not present, the job goes (back) to sleep for x minutes. If a
> file is present, the necessary ftp commands would be invoked.
--
[log in to unmask]
Remainder of .sig suppressed to conserve expensive California electrons...
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *