We have several "csh" batch scripts using "#!/bin/csh -v". It work fine, before Centos 5.5. After cenos 5.5, it will NOT execute and only list history. Anyone know why? Thanks.
On 26/01/11 08:48, mcclnx mcc wrote:> We have several "csh" batch scripts using "#!/bin/csh -v". It work fine, before Centos 5.5. After cenos 5.5, it will NOT execute and only list history.Any particular error message that is generated?
mcclnx mcc wrote:> We have several "csh" batch scripts using "#!/bin/csh -v". It work fine, > before Centos 5.5. After cenos 5.5, it will NOT execute and only list > history. > > Anyone know why?Check the tsch logs. Try some tests - I forget what we used here, but they broke tcsh's globbing about a year and a half ago, then fixed it; just saw where there was another fix a month or so ago. Or yum downgrade tcsh, till they fix it. mark
mcclnx mcc <mcclnx at ...> writes:> > We have several "csh" batch scripts using "#!/bin/csh -v". It work fine,before Centos 5.5. After cenos> 5.5, it will NOT execute and only list history. > > Anyone know why? > > Thanks. >Actually, the script is executed: [dave at fraud ~/bin]# ./ctest.csh echo "this is a test." this is a test. ls /tmp gconfd-dave keyring-ws5CGg mapping-dave plugtmp virtual-dave.9xelPs gconfd-root keyring-WsDO9L mapping-root plugtmp-1 virtual-dave.d8jgGP chmod -R g+rx,o+rx Nelson/ cd cd Nelson/Chap02/ cd /share/dave/cng258/ The history is listed for some reason after the script (in the above example starting with the chmod). This appears to have been fixed with tcsh 6.17.00. The version of tcsh on CentOS is 6.14.00. Cheers, Dave