Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
1. Takes web form information and saves form.txt to a temp directory on the Linux server. The temp dir has to be unique - /temp/5367657653123/form.txt
2. Run a command like - runme a.out text.out out.bin
3. The created out.bin needs then to be made available for download by the user from a webpage or emailed to him.
Sounds simple but I haven't got a clue where to start with this. Any help appreciated.
Firstly, if I'm understanding you correctly, you need to insert code in the form's POST handling.
You can gather the HTTP POST variables there, and format them into a text file (or an XML file if you want to be fancy) and save it to any dir you have write access to. You can easily generate a random temp filename (google for that or look at http://search.cpan.org/~jhi/perl-5.8.0/lib/File/Temp.pm.
I don't understand what you want to do from there on from your description.
Perhaps you could elucidate.
Last edited by bogeyman; 12 February 2007, 16:13.
Reason: bbs code fecks up URLs
You've come right out the other side of the forest of irony and ended up in the desert of wrong.
Firstly, if I'm understanding you correctly, you need to insert code in the form's POST handling.
You can gather the HTTP POST variables there, and format them into a text file (or an XML file if you want to be fancy) and save it to any dir you have write access to. You can easily generate a random temp filename (google for that).
I don't understand what you want to do from there on from your description.
Perhaps you could elucidate.
There is a custom executable on the box which creates a file called out.bin to go the user, this is a software registration exercise. after form.txt gets written to the temp directory the command is run with 3 arguments (which are files), and the output file made available to the user to download or have it emailed to him.
There is a custom executable on the box which creates a file called out.bin to go the user, this is a software registration exercise. after form.txt gets written to the temp directory the command is run with 3 arguments (which are files), and the output file made available to the user to download or have it emailed to him.
So what does the 'out.bin' creator executable need in the way of input?
A text file with form data - but in what exact format?
You've come right out the other side of the forest of irony and ended up in the desert of wrong.
Comment