[kwlug-disc] Script question

Insurance Squared Inc. gcooke at insurancesquared.com
Mon Mar 9 15:28:01 EDT 2009


I've got a web based php script I run on my webserver.  It accepts, via 
a standard input form, a few variables and an input file.  Then it 
crunches some numbers and sends the results as a file via email.  I have 
a number of files I want to parse through this script and I want to do 
it locally.  How do I effectively POST a file (I could probably change 
the script to accept GET as well, though I expect it doesn't make a 
difference) via a line in a shell script?  I know how to do it with the 
other variables, I just do this:

http://192.168.0.1/myscript.php?var1=val1&var2=val2

I want to repeat that numerous times as a shell script, with the file 
upload attached somehow.

Help? :)  I don't even know what to Google.



More information about the kwlug-disc_kwlug.org mailing list