HP3000-L Archives

December 2001, 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:
Michael L Gueterman <[log in to unmask]>
Reply To:
Michael L Gueterman <[log in to unmask]>
Date:
Sat, 29 Dec 2001 07:36:28 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (54 lines)
Neil,

  If you end up using Samba, you might be able to use the 'magic script'
functionality.  From the docs:

"This parameter specifies the name of a file which, if opened, will be
executed by the server when the file is closed.  This allows a UNIX script
to be sent to the Samba host and executed on behalf of the connected user.

Scripts executed in this way will be deleted upon completion, permissions
permitting."

Regards,
Michael L Gueterman
Easy Does It Technologies LLC
http://www.editcorp.com
voice: 888.858.EDIT or 573.368.5478
fax:   573.368.5479
--

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]]On
Behalf Of Neil Harvey
Sent: Saturday, December 29, 2001 7:17 AM
To: [log in to unmask]
Subject: [HP3000-L] Trigger action when file arrives


I know this has probably been asked and answered before, but I couldn't
locate anything in the archives. I did reread the thread on triggering an
extract on an HP3000 from an HP9000 and transferring the file back to the
HP9000 for processing.

I'd like something to happen on an HP3000 (a command to run) when a file
arrives in a directory. The command would take care of file
deletion/renaming etc.

I can obviously write some brute force CI script, but was wondering if there
was a more elegant (and resource lean) way of handling the "directory watch"
process on the HP3000.

I'm currently using Sendmail to receive the info in an email message and
fire off a command, but I'd like to change to Samba (or FTP), because I
don't want the 10 second delay introduced by email on both sides.

I notice that 'finfo("file","exists")' doesn't like wildcards.

Regards

Neil

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2