Re: [PHP] ssh command in php script
From: Robert Cummings (robert_at_interjinn.com)
Date: 11/11/03
- Next message: Robert Cummings: "Re: [PHP] ssh command in php script"
- Previous message: Tirumal B: "ssh command in php script"
- In reply to: Tirumal B: "ssh command in php script"
- Next in thread: Robert Cummings: "Re: [PHP] ssh command in php script"
- Reply: Robert Cummings: "Re: [PHP] ssh command in php script"
- Reply: Warren Vail: "RE: [PHP] ssh command in php script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: tirumal b <tirumal_b@yahoo.com> Date: 11 Nov 2003 01:37:54 -0500
On Tue, 2003-11-11 at 01:34, tirumal b wrote:
> Hello All
>
> I have written the following command in PHP script
> echo `ssh <ipaddr> <command>`. I have the remote ip
> addr as trusted, dont ask for the password at all.
> when the execute the php file from the browser it does
> not go to the remote ip at all though this command
> works fine in a normal bash script. what is the
> problem. Thanks in advance.
Shell commands run from the browser inherit the browser's user -- this
is usually httpd or apache.
Cheers,
Rob.
-- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'
- Next message: Robert Cummings: "Re: [PHP] ssh command in php script"
- Previous message: Tirumal B: "ssh command in php script"
- In reply to: Tirumal B: "ssh command in php script"
- Next in thread: Robert Cummings: "Re: [PHP] ssh command in php script"
- Reply: Robert Cummings: "Re: [PHP] ssh command in php script"
- Reply: Warren Vail: "RE: [PHP] ssh command in php script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]