CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Running linux command within a fortran code (https://www.cfd-online.com/Forums/main/14935-running-linux-command-within-fortran-code.html)

Quarkz March 16, 2008 03:40

Running linux command within a fortran code
 
Hi,

within my fortan code, I need to execute some linux commands like "rm" or "ren". How can I do that?

Thanks alot!

cfd_newbie March 16, 2008 14:31

Re: Running linux command within a fortran code
 
It will work if you use a line of code like this:

.... call system("ls") .....


Quarkz March 16, 2008 20:58

Re: Running linux command within a fortran code
 
Hey tks! It worked!


All times are GMT -4. The time now is 20:56.