[LUGOS] Kako izvesti test za prisotnost programa
Anze
anze at volja.net
Wed Jun 1 10:29:07 CEST 2005
Lahko poskusis se kaksno varianto z `locate program` in grepanjem izhoda.
LP!
Anze
> if [ `which program` ]; then
> echo "program obstaja"
> fi
>
> # to naceloma dela, a sem ze naletel na cel kup variant za ukaz 'which' in
> # potem taksen test in z njim tudi skripta ni zelo prenosljiva
>
> Se kaksna ideja?
>
> Lep pozdrav / With regards,
> Gregor Gorjanc
>
> ----------------------------------------------------------------------
> University of Ljubljana
> Biotechnical Faculty URI: http://www.bfro.uni-lj.si/MR/ggorjan
> Zootechnical Department mail: gregor.gorjanc <at> bfro.uni-lj.si
> Groblje 3 tel: +386 (0)1 72 17 861
> SI-1230 Domzale fax: +386 (0)1 72 17 888
> Slovenia, Europe
> ----------------------------------------------------------------------
> "One must learn by doing the thing; for though you think you know it,
> you have no certainty until you try." Sophocles ~ 450 B.C.
> ----------------------------------------------------------------------
>
>
>
> _______________________________________________
> lugos-list mailing list
> lugos-list at lugos.si
> http://liste2.lugos.si/cgi-bin/mailman/listinfo/lugos-list
More information about the lugos-list
mailing list