HP3000-L Archives

May 2002, Week 3

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 Wonsil <[log in to unmask]>
Reply To:
Date:
Wed, 15 May 2002 14:30:36 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
Friedrich asks:
> I need to FTP a file to an HP9000 (from HP3000) - no problem.
> After the successful transfer I want to AUTOMATICALLY start
a program,
> which processess the file - ANY IDEAS HO TO DO THIS?

You could poll for a trigger file or you could do something like this:

Generate a unique filename
Transfer it to the HP9000
Use wget to send an http request* to kick off a CGI script that starts your
processing.  The html request would send the unique name of the file.
Process your file.

* For some (not all) security/reliability, you could also send a checksum
and the 9000 would performs the same checksum to make sure the file is
complete and known.

If you have Perl & Apache on your 9000, you can run a CGI script to upload a
file (and subsequently process it).  There are many http upload scripts out
there, but here is a Perl5 example:
http://cgi-lib.berkeley.edu/ex/perl5/fup.cgi.txt
and here is how to set up the form (or format your wget request):
http://cgi-lib.berkeley.edu/ex/perl5/fup.html

HTH,

Mark Wonsil

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

ATOM RSS1 RSS2