阅读背景:

C Shell:如何使用非命令行参数执行程序?

来源:互联网 

My $SHELL is tcsh. I want to run a c shell script that will call a program many times with some arguments changed each time. The program I need to call is in Fortran. I do not want to edit it. The program only takes arguments once it is executed, but not on the command line. Upon calling the program in the script, the program takes control (this is where I am stuck currently, I can never get out because the script will not execute anything until after the program process stops); at this point I need to pass it some variables, then after several iterations I will need to ctrl-c out of the program and continue with the script. My $SHELL is tcsh. I want to run a c shell scri




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: