hi,
I'm a newbie in the PHP world but I need an urgent help for coding it.
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... 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";
😕