<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:10pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Matthew T. Engel wrote:<br>> Something like System(“cd /home/$user/$web_root && ls), does an ls on <br>> /home/$user rather than /home/$user/$web_root. The system() function <br>> returns 0, I get the same thing if I try system(cd /home/$user && cd <br>> $web_root && ls).<br></div></div><br>Test script:<br><br>$user="terry";<br>$web_root="Desktop";<br><br>$result = system("cd /home/$user/$web_root && ls");<br><br>print "$result";<br><br>... worked as expected; it listed the contents of /home/terry/Desktop<br><br><div> </div>Terry McIntyre <terrymcintyre@yahoo.com><br>They mean to govern well; but they mean to govern. They promise to be kind
masters; but they mean to be masters. -- Daniel Webster<div style="font-family: times new roman,new york,times,serif; font-size: 10pt;"><br><br></div></div><br>
<hr size=1>Yahoo! oneSearch: Finally, <a href="http://us.rd.yahoo.com/evt=48252/*http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC"> mobile search
that gives answers</a>, not web links.
</body></html>