Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

bash shell issues

Hello,

I am trying to run CCSM3.0 in a linux cluster that only seems to use bash scripts. I am trying to convert the $CASE.$MACH.run script from tcsh to bash syntax, but am having some trouble. I realize this is unsupported, but I am wondering has anybody done this successfully that could help me out?

More specifically, I have converted the foreach ... end loop to a for ... do ... done loop, but I get the error "syntax error near unexpected token 'done' ". Also, large parts of the code appear to be commented out that are between the characters /* and */ . This seems to me to be normal syntax to specify filenames, but apparently in my run script it indicates areas of code to be commented out.

Thanks,
Cathy
 
Top