How delete file from fortran code?

后端 未结 5 1473
有刺的猬
有刺的猬 2021-02-14 00:21

I need to delete a file from a Fortran code. I am on ubuntu 12.04, x86_64. I don\'t understand why the procedure described below does not work. Please

5条回答
  •  佛祖请我去吃肉
    2021-02-14 01:11

    source is a shell builtin that loads another script in the current process (as opposed to running it in a subprocess).

    You have no need of source when invoking a script from Fortran, as you found out. Both del.sh and bash del.sh worked, and either of those represent the way you should be doing it.

提交回复
热议问题