Hello all
I have this simple script that checking if file exist
but when Im running it im getting error
here is the script :
#!/usr/bin/tcsh -fx
set mod_test = "mod_test"
if (-e $mod_hsf) then
echo "File Here !!"
else
echo "File Not Here !!"
endif
And here is the error ..
set mod_test = "mod_test"
if ( -d mod_hsf ) then
0: Event not found.
what im doing wrong here ?
and if im here another question , why every time im running the script it running the .cshrc file
how can I avoid it?