I do not have superuser access on this Linux server. The provided script has run fine for a superuser.
I broke out two simple snippets from link_grib.csh, one involving foreach, and the other involving symbolic link and illustrates the output I am seeing, please see my questions below.
1) Test1.csh
- Code: Select all
#!/bin/csh
echo ${1}
foreach f ( ${1}* )
endOutput:
[frank@simunec1 20130604_mini]$ ls ./FNL.dat
./FNL.dat
[frank@simunec1 20130604_mini]$ test1.csh ./FNL.dat
./FNL.dat
foreach: No match. Question: Why would foreach return no match here?
2) Test2.csh
- Code: Select all
#!/bin/csh
ln -sf ./FNL.dat GRIBFILE.AAA
Output:
[frank@simunec1 20130604_mini]$ test2.csh
[frank@simunec1 20130604_mini]$ ls GRIBFILE.AAA
ls: cannot access GRIBFILE.AAA: No such file or directory
// but running the same command outside of .csh script, everything is fine
[frank@simunec1 20130604_mini]$ ln -sf ./FNL.dat GRIBFILE.AAA
[frank@simunec1 20130604_mini]$ ls GRIBFILE.AAA
GRIBFILE.AAA
Question: Why does running the same command outside of .csh script works.
Thanks.