nickbunyan
Member
I have a couple of complicated and sadly necessary Bash scripts which run on my host server.
What I want to do is use a form plugin to trigger one of these scripts, capture the output, and store the relevant data in one of my lists...
It is very likely - knowing my general incompetence - that there may be a a better way of achieving this using the Fabrik framework (php/Ajax/JS ???) so I am looking for advice please.
For reasons that are too complicated to go into, I am stuck with the Bash scripts. When they run they return an exit code and if sucessful, a filename. I want to process the bash script, report the error status if any, and store the filename in my list along with the rest of the form data.
It appears that the php plugin would do this but I can't get it to work even with a simple 'ls -l' bash script...
Any offers of a skeleton setup which works greatly appreciated. I have wasted a day bashing [sic] myself up and cannot get the plugin to do what I want. If I can get a Hello World version working, I can probably figure out the rest.
HELP please...
What I want to do is use a form plugin to trigger one of these scripts, capture the output, and store the relevant data in one of my lists...
It is very likely - knowing my general incompetence - that there may be a a better way of achieving this using the Fabrik framework (php/Ajax/JS ???) so I am looking for advice please.
For reasons that are too complicated to go into, I am stuck with the Bash scripts. When they run they return an exit code and if sucessful, a filename. I want to process the bash script, report the error status if any, and store the filename in my list along with the rest of the form data.
It appears that the php plugin would do this but I can't get it to work even with a simple 'ls -l' bash script...
Any offers of a skeleton setup which works greatly appreciated. I have wasted a day bashing [sic] myself up and cannot get the plugin to do what I want. If I can get a Hello World version working, I can probably figure out the rest.
HELP please...