Well, I am looking for a way to integrate a UNIX command (rsh) into the function exec() from PHP but unfortunatly this command is not executed or at least a way to execute an external command (like rsh in Unix)... anyone have ideas ??? (by the way it is the same error with passthru, etc..)
Thank in advance for your help !
Code example :
$cmd ="ls -al";
$list = "rsh -l ems 10.1.1.1 \"exec ksh -c '. .profile;$cmd'\" > /tmp/list.txt";
exec($list);
$fp = fopen ("/tmp/list.txt","r");
echo "$fp";