CFD Online Discussion Forums

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

Quarkz March 16, 2008 04: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 15: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 21:58

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


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