[CentOS] bash script fails conditional test

Stephen Harris lists at spuddy.org
Sun Apr 19 17:20:56 UTC 2015


On Sun, Apr 19, 2015 at 01:15:36PM -0400, Tim Dunphy wrote:
> if [[ -e $pid ]]

"-e" means "if file exists".  You should use "-n"

-- 

rgds
Stephen



More information about the CentOS mailing list