[PHP] Overriding string concatenation '.'

2003-11-12 Thread tirumal b
Hello All This is where i encounter the problem $hostin="122.122.122.122"; $l=system('ssh '.$hostin.' ls'); echo $l; The above one does not work at all but if i hardcode $l=system('ssh 122.122.122.122 ls'); The ip addr is just an example Thank you Tirumal __

[PHP] overriding string concatenation '.'

2003-11-12 Thread tirumal b
Hello All I have an ip addr in a variable. I use 'ssh'.$ipaddr.'command' in a php file The dots in ipaddr variable are considered to be string concatenations. can it take the literal meaning in this case. Please let me know Thank you Tirumal __ Do you Yahoo!? P

[PHP] Can sudo be used for apache

2003-11-11 Thread tirumal b
hello All, Can i use sudo to assign certain privileges for the apache account as the webserver is running on that account. Will it be possible. Thank you Tirumal __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/wh

[PHP] Re: ssh within PHP

2003-11-11 Thread tirumal b
Hello All, Its enough if i have the apache privileges. Can i login to apache user and to remote computer apache user with public key authentication and run some command there. thank you > On Tue, 2003-11-11 at 01:34, tirumal b wrote: > > Hello All > > > > I have written

[PHP] ssh command in php script

2003-11-10 Thread tirumal b
Hello All I have written the following command in PHP script echo `ssh `. 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 t

[PHP] can button onclick executed a bash script

2003-11-10 Thread tirumal b
Hello All, A button tag's onclick event can execute a function of javascript but can it do the same with bash script function. I have two buttons. Each button will call its own function.could anyone tell how to write Thank you __ Do you Yahoo!? Protect your ident

[PHP] SSH in PHP script

2003-11-10 Thread tirumal b
Hello I have written the following command in PHP script echo `ssh `. 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 p

Re: [PHP] System() works on /usr/sbin commands

2003-07-30 Thread tirumal b
hello, yes the /usr/sbin commands require root permissions but is there any way to run these commands using system() through suid or something.please let me know Thank you __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://s

[PHP] System() works on /usr/sbin commands

2003-07-30 Thread tirumal b
hello, i was using system function to invoke useradd command but it doesn't work. well it works for all the commands but not those in /usr/sbin. why is it so. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.ya