Submitting a file to a form on unix via cron
Posted on 2004-08-26
I have a windows web server and a unix db server, separated by a firewall. I am looking to use a web form to copy 2 files hourly from the unix server to the windows server via an automated cron job.
The unix server has netscape and lynx, but lynx does not appear to work. Perl is available, as is java. I HAVE NO ROOT PRIVILEGES ON THIS BOX AND CANNOT GET ANY NEW SOFTWARE ADDED TO IT. (I really need wget, but I doubt it is available for AIX on RISC anyway)
What I need is a perl script, or another way to automate a form submission that includes files. I cannot use FTP because 1) it is blocked at the firewall and 2) I need to process the files on the web server to append them to an Access db.
Does anyone know how to simulate submitting files via a form with a single URL call?
my web page only outputs: <SCRIPT>window.close()</script> to the client.
My form is simple:
<form name=dbupload enctype="multipart/form-data" action="index.php" METHOD="POST">
Dump: <INPUT TYPE=file NAME=dbdump><br>
Tracks: <INPUT TYPE=file NAME=dbtracks><br>
<INPUT TYPE=submit value="Upload Files"><br>