Re: [PHP] Re: run remote shell script

2005-08-18 Thread Roger Thomas
Thanks Matthew. You and Richard have been very helpful. I should be able to carry on. Thank you again. -- Roger Quoting Matthew Weier O'Phinney <[EMAIL PROTECTED]>: > First off, Roger, Thomas, not sure which is your given name -- > please > use a mail or news agent that will wrap your lines wit

Re: [PHP] Re: run remote shell script

2005-08-18 Thread Matthew Weier O'Phinney
First off, Roger, Thomas, not sure which is your given name -- please use a mail or news agent that will wrap your lines with linebreaks at 72 characters. Some of us are on text-based clients, and it's difficult to read your posts when they extend beyond the screen boundaries... ;-) * Roger Thomas

Re: [PHP] Re: run remote shell script

2005-08-18 Thread Roger Thomas
Thanks for your great explaination. I really appreciate that. I will try out the things that you have outlined and will be back if I land into trouble :) -- Roger Quoting Richard Lynch <[EMAIL PROTECTED]>: > On Thu, August 18, 2005 12:22 am, Roger Thomas wrote: > > Quoting Richard Lynch <[EMAIL

Re: [PHP] Re: run remote shell script

2005-08-18 Thread Richard Lynch
On Thu, August 18, 2005 12:22 am, Roger Thomas wrote: > Quoting Richard Lynch <[EMAIL PROTECTED]>: > >> If 'www' can do it in a shell, then PHP, running as 'www' can >> usually do do it > > www is a Limux system user on both svrA and svrB. > On svrA, Apache runs as user nobody. I mean, this is the

Re: [PHP] Re: run remote shell script

2005-08-18 Thread Roger Thomas
Quoting Richard Lynch <[EMAIL PROTECTED]>: > If 'www' can do it in a shell, then PHP, running as 'www' can usually do do it www is a Limux system user on both svrA and svrB. On svrA, Apache runs as user nobody. I mean, this is the httpd user, where we defined it in httpd.conf: User nobody Group

Re: [PHP] Re: run remote shell script

2005-08-17 Thread Richard Lynch
On Wed, August 17, 2005 9:50 pm, Roger Thomas wrote: > OK. I am able to setup remote key authentication between svrA and > svrB. From svrA I can login to svrB with something like > [EMAIL PROTECTED] www]$ ssh [EMAIL PROTECTED] > > and I can also execute a shell script like > [EMAIL PROTECTED] www]$

Re: [PHP] Re: run remote shell script

2005-08-17 Thread Roger Thomas
OK. I am able to setup remote key authentication between svrA and svrB. From svrA I can login to svrB with something like [EMAIL PROTECTED] www]$ ssh [EMAIL PROTECTED] and I can also execute a shell script like [EMAIL PROTECTED] www]$ ssh [EMAIL PROTECTED] /tmp/test.sh On svrA I have a PHP scrip

[PHP] Re: run remote shell script

2005-08-17 Thread Matthew Weier O'Phinney
* Roger Thomas <[EMAIL PROTECTED]>: > My PHP script is in svrA. How do I run a shell script in svrB? > svrB does not have PHP and Apache :( > Is this at all possible? Please advise. Use ssh. You will have to setup remote key authentication from svrA to svrB (so that a password will not be needed),