ns that might
> be available. rsh,
> rexec, rpc and ssh are defined best in Unix
> references, but many are also
> available if your php server is windows based.
>
> good luck,
>
> Warren Vail
>
>
> -Original Message-
> From: Nathan Taylor [mailto:[EMAIL
Hi Brad,
Thanks for your help,
I'm trying to run this code to know which user is
running my webserver. I think it is the nobody
#!/usr/local/bin/php -q
";
#$output=passthru("rsh rubella ls >
/tmp/salididta.txt",$vari);
$output=system("who am I",$vari);
echo "salida".$vari;
printf("\n%s\n",$ou
AIL PROTECTED]
Sent: Tuesday, December 09, 2003 3:48 PM
To: [EMAIL PROTECTED]; Ivone Uribe
Subject: Re: [PHP] run a command on a remote host
When you say remote host do you mean the server executing the script or the
person accessing it?
If you mean the latter, it is not possible.
- Or
Don't forget that this will be executed as the user that the webserver
is running as. Hopefully that's not root in this case. Check out the
docs for rsh, you can specify the username with the -l option. I
don't know if that will accomplish what you want. Also, what do you mean
by "nothing happen
When you say remote host do you mean the server executing the script or the person
accessing it?
If you mean the latter, it is not possible.
- Original Message -
From: Ivone Uribe
To: [EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 5:44 PM
Subject: [PHP] run a command on
How can I run a command on a remote host wiht php?
I'm trying this line but nothing happen.
passthru("rsh rubella
/export/dat0/users/augur-se/bin/.upnotify -s
1045073262-82425_net2.nextelinternational.com -u
http://wap.peru.com -a -y D--- -i Location -n");
I try exec and system, too
But if I run
6 matches
Mail list logo