Dne 27.5.2013 11:10, Radek Krejča napsal(a):
> #!/bin/sh
>
> while :
> do
> souburek=`ps -axw | grep souburek | grep -v grep | awk '{ print $9 }'`
> if [ -z $souburek ]; then
> echo "Nejde"
> /bin/sleep 10
> fi
> done
>

Jestli to dobre chapu, usnuti na 10 s by melo probehnout vzdycky
a nezavisle na podmince. Zkusil bych to drobne pozmenit:

#!/bin/sh

while :
do
{ 
  souburek=`ps -axw | grep souburek | grep -v grep | awk '{ print $9 }'`
  if [ -z $souburek ]; then
    echo "Nejde"
  fi
  /bin/sleep 10
}
done


-- 
FreeBSD mailing list ([email protected])
http://www.freebsd.cz/listserv/listinfo/users-l

Odpovedet emailem