[LUGOS] bash shell skripta
Jure Koren
idiots at gmail.com
Sun Dec 26 11:09:39 CET 2004
On Sun, 26 Dec 2004 09:54:18 +0100, Boštjan Jerko
<bostjan.jerko at mf.uni-lj.si> wrote:
> Popravljeno. Še vedno pa javi:
> ./tor_test.sh: line 4: [tor: command not found
> Če pa dam [ $ret=="tor" ]; ... (torej s presledki) javi:
> ./tor_test.sh: line 4: [: too many arguments
Jaz bi to naredu takole:
if [ -n "`ps -u bostjan | grep tor | gawk '{print $4}'`" ]; then
# ok
else
# pozeni
fi
A bo uredu?
More information about the lugos-list
mailing list