CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Running linux command within a fortran code

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2008, 04:40
Default Running linux command within a fortran code
  #1
Quarkz
Guest
 
Posts: n/a
Hi,

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

Thanks alot!
  Reply With Quote

Old   March 16, 2008, 15:31
Default Re: Running linux command within a fortran code
  #2
cfd_newbie
Guest
 
Posts: n/a
It will work if you use a line of code like this:

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

  Reply With Quote

Old   March 16, 2008, 21:58
Default Re: Running linux command within a fortran code
  #3
Quarkz
Guest
 
Posts: n/a
Hey tks! It worked!
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
fortran code problem ztdep Main CFD Forum 5 September 8, 2009 05:22
Return code 1 in linux Sae. kil CFX 0 November 14, 2008 12:21
Gambit error when running under Linux 10.0 Ralf Schmidt FLUENT 0 July 19, 2006 10:00
Help on fortran code for FD 4th order Miguel Main CFD Forum 0 November 14, 2005 11:58
seeking fortran code for LEE ahmed m.abdulla Main CFD Forum 0 January 14, 1999 12:16


All times are GMT -4. The time now is 09:46.