[Linux-programlama] Re: Kabukta if kontrolü

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Veli (vakcakaya@yahoo.com)
Date: Sun 13 Feb 2005 - 11:45:54 EET


Tekrar merhaba,
tamam sorun çözüldü.
ikinci koşul ifadesindeki == 'i = yapmak gerekiyormuş.
İfadenin yeni hali

if [ $mem_sonuc -eq 0 -a $cpu_sonuc -eq 0 -a $zaman
-ge $deg_d -a \( $deg_p = "ALL" -o $deg_p = $prg \) ]

İlginize teşekkürler...

--- Volkan YAZICI <yazicivo@ttnet.net.tr> wrote:

> Merhaba,
>
> bir de ÅŸunu dener misiniz:
>
> [ $deg_d == "ALL" -o $deg_d == "$prg"]
>
> yerine
>
> \( $deg_d == "ALL" -o $deg_d == "$prg" \)
>
> ya da
>
> [[ \
> $mem_sonuc -eq 0 && \
> $cpu_sonuc -eq 0 && \
> $zaman -ge $deg_d && \
> \( \
> $deg_d == "ALL" || \
> $deg_d == "$prg" \
> \) \
> ]]
>
> iyi çalışmalar.
>
> On Sun, Feb 13, 2005 at 12:46:22AM -0800, Veli
> Akçakaya wrote:
> > geli?tirmeye ?al??t???m kabuk program?nda bir
> yerde
> > tak?ld?m. ??yle bir ko?ul ifadem olacak.
> >
> > if [ $mem_sonuc -eq 0 -a $cpu_sonuc -eq 0 -a
> $zaman
> > -ge $deg_d -a [ $deg_d == "ALL" -o $deg_d ==
> "$prg"] ]
> > _______________________________________________
> Linux-programlama mailing list
> Linux-programlama@liste.linux.org.tr
>
http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>

                
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.