<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>&gt; Something like System(“cd /home/$user/$web_root &amp;&amp; ls), does an ls on <br>&gt; /home/$user rather than /home/$user/$web_root.&nbsp;&nbsp;The system() function <br>&gt; returns 0, I get the same thing if I try system(cd /home/$user &amp;&amp; cd <br>&gt; $web_root &amp;&amp; ls).<br></div></div><br>Test script:<br><br>$user="terry";<br>$web_root="Desktop";<br><br>$result = system("cd /home/$user/$web_root &amp;&amp; ls");<br><br>print "$result";<br><br>... worked as expected; it listed the contents of /home/terry/Desktop<br><br><div>&nbsp;</div>Terry McIntyre &lt;terrymcintyre@yahoo.com&gt;<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>