05-01-2006
289,
2
Join Date: Aug 2005
Last Activity: 6 April 2020, 3:02 PM EDT
Posts: 289
Thanks Given: 1
Thanked 2 Times in 2 Posts
0: Event not found. in tcsh
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?