Re: [users@httpd] Trying to run expect from web page

2013-10-11 Thread Chuck Lidderdale
Guess I didn't explain my problem clearly enough. I'm unable to execute a an expect script via a web page. The page executes but the line with expect acts as if it's commented out or as if httpd.conf is missing something that allows expect to run. I've tried (via page.php):

Re: [users@httpd] Trying to run expect from web page

2013-10-10 Thread John Doe
From: Chuck Lidderdale chu...@blackforest-co.com I'm going on vacation and want to check in to my server.  I've written a knock-3-times.php webpage with the idea of then running an expect script to: telnet modem, echo iptables nat -s $IP etc.  which would allow me get in to my server.

[users@httpd] Trying to run expect from web page

2013-10-09 Thread Chuck Lidderdale
I'm going on vacation and want to check in to my server. I've written a knock-3-times.php webpage with the idea of then running an expect script to: telnet modem, echo iptables nat -s $IP etc. which would allow me get in to my server. The expect script runs just fine but in the page: exec

Re: [users@httpd] Trying to run expect from web page

2013-10-09 Thread Yehuda Katz
You might have better luck with this on a PHP forum/list. You would also need to provide more information. For example: where are you running the knock-3-times vs. the expect script; can you share more of the source (not here, since this is not a PHP list); what works or does not work - not

Re: [users@httpd] Trying to run expect from web page

2013-10-09 Thread Colin 't Hart
This all sounds very insecure to me, especially if you're going to share details on its implementation online. I'd use VPN, failing that SSH. Cheers, Colin On Thursday, 10 October 2013, Yehuda Katz wrote: You might have better luck with this on a PHP forum/list. You would also need to