[pso] Problema cu fisierul de test pe linux

Dome pso@cursuri.cs.pub.ro
Tue, 18 May 2004 16:23:27 -0700 (PDT)


--0-1525037965-1084922607=:21707
Content-Type: text/plain; charset=us-ascii

Cand rulez functia de mai jos, imaginea de linux(cea de pe site) pe care fac tema, nu recunoaste comanda 'stat' ca fiind valida.
Imi puteti spune unde este problema? Multumesc
 
function check_file
{
    rights=`stat /mnt/tmp/$1 | grep Access | grep Uid | cut -f2 -d'(' | cut -f1 -d'/'`
    uid=`stat /mnt/tmp//$1  | grep Access | grep Uid | cut -f3 -d'(' | cut -f1 -d'/'` 
    gid=`stat /mnt/tmp/$1  | grep Access | grep Uid | cut -f4 -d'(' | cut -f1 -d'/'`
    size=`ls -d -l --block-size=1 /mnt/tmp/$1  | expand | tr -s ' ' | cut -f5 -d' '`


		
---------------------------------
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
--0-1525037965-1084922607=:21707
Content-Type: text/html; charset=us-ascii

<DIV>Cand rulez&nbsp;functia de mai jos, imaginea de linux(cea de pe site) pe care fac tema, nu recunoaste comanda 'stat' ca fiind valida.</DIV>
<DIV>Imi puteti spune unde este problema? Multumesc</DIV>
<DIV>&nbsp;</DIV>
<DIV>function check_file<BR>{<BR>&nbsp;&nbsp;&nbsp; rights=`stat /mnt/tmp/$1 | grep Access | grep Uid | cut -f2 -d'(' | cut -f1 -d'/'`<BR>&nbsp;&nbsp;&nbsp; uid=`stat /mnt/tmp//$1&nbsp; | grep Access | grep Uid | cut -f3 -d'(' | cut -f1 -d'/'` <BR>&nbsp;&nbsp;&nbsp; gid=`stat /mnt/tmp/$1&nbsp; | grep Access | grep Uid | cut -f4 -d'(' | cut -f1 -d'/'`<BR>&nbsp;&nbsp;&nbsp; size=`ls -d -l --block-size=1 /mnt/tmp/$1&nbsp; | expand | tr -s ' ' | cut -f5 -d' '`<BR></DIV><p>
		<hr size=1><font face=arial size=-1>Do you Yahoo!?<br><a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=24311/*http://promo.yahoo.com/sbc/">SBC Yahoo!</a> - Internet access at a great low price.
--0-1525037965-1084922607=:21707--