Re: bash script fails conditional test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




Tim Dunphy <bluethundr@xxxxxxxxx> a écrit :

Hey all,

Hi,

-e checks file existence. As you don’t have a file named 26979 in your pwd, test fails logically. If you want to know if variable is set, you can use -z $pid. You could also try -d /proc/$pid.

HTH,
Laurent.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos





[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux