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 *