HP3000-L Archives

April 2002, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Mon, 29 Apr 2002 17:47:32 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
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 *

ATOM RSS1 RSS2