Hi
can anyone please explain what the below code does?
i mean $fide_stopfile = ?
when $FIDE_SCR = '/fs/dir1/dir2/common/scr' and also little confused with if clause too. what it check?
$fide_stopfile = "$ENV{FIDE_SCR}/../tmp/STOP"; if ( -e $fide_stopfile > 0 ) { print "\n STOP JOB Received \n" ; exit 1; }
it wil just check if the file is present or not..
if it's present , print and exit with status "1".
which file it check ?
whats the use of double dot in this context?
".." in directory path means "go one level up".
-e is a file test in perl checks if the file exists or not. It returns 1 if file exists, and undefined value if it doesn't exist. So to do this if ( -e filename > 0 ) is an over-kill (IMHO) More subtly, this is same as if ( -e filename )
if ( -e filename > 0 )
if ( -e filename )