2007. 02. 27, kedd keltezéssel 13.17-kor h ezt írta:
> Hi 
> 
> I have been using the shell_exec command to perform several server queries 
> quite succesfully i.e. analysing files systems by gettin ginformation 
> returned by df -kP (shell_exec('df -kP')).  do any of you guts know if it is 
> possible to target a command like this on another server? 
> 
> So from server A where I am running a web app, needs to run the 
> shell_exec('df -kP') on server B, which also has php installed, so that i can 
> display the results in my web app on server A.  Hope that makes sense!
> 
> Also, how would i fopen a file such as /proc/cpuinfo on Server B from Server 
> A.
> 
> Any help greatly appreciated
> 
> Regards
> 
> Ade

maybe you need ssh2_exec

http://hu.php.net/manual/hu/function.ssh2-exec.php

hope that helps
Zoltán Németh

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to