Hey folks. I don't know an ounce of perl, and my c is pretty weak, but I need to write a couple of cgis. So, my idea was that I could have a simple cgi that would call a shell script (something I can do!
) and then redirect to a webpage, say, mypage.html. I understand that I could use something like this (with perl) for the former:
@output = `/bin/sh /home/matt/scripts/script.sh`;
or
system("/bin/sh /home/matt/scripts/script.sh");
Now, script.sh is going to generate mypage.html, so I'd like the cgi to there. Is there a good and simple way to do this?
Any help would be greatly appreciated!
Thanks,
Justin