New Reply

Fortran alternative to Matlab 'system' command

 
Share Thread Thread Tools
Jun8-12, 03:50 AM   #1
 

Fortran alternative to Matlab 'system' command


Hi,

I have been trying to run a linux executable (written in fortran77) into my another code (also in fortran77). In Matlab, I did it with "system('./<filename>')". But I am not able to do it in fortran script as './' is not simply working for me.

I will really appreciate if anyone could tell me what alternative command I can use to execute an executable file into fortran code. A quick response will be extremely helpful and highly appreacited.

Thanks in advance.

mushi
 
PhysOrg.com
PhysOrg
engineering news on PhysOrg.com

>> Researchers use light projector and single-pixel detectors to create 3-D images
>> GPS solution provides 3-minute tsunami alerts
>> Single-pixel power: Scientists make 3-D images without a camera
Jun9-12, 04:50 AM   #2
 
Recognitions:
Homework Helper Homework Help
Quote by mushi View Post
I have been trying to run a linux executable (written in fortran77) into my another code (also in fortran77). In Matlab, I did it with "system('./<filename>')". But I am not able to do it in fortran script as './' is not simply working for me.
The command (if there is one in your Fortran) may not be "system()" but I have no idea of other possibilities. The "./" prefix is nothing to do with the language; it's a shortcut in Unix that says the executable is located in the current directory. So if the executable is not located in what the op sys will see as the current directory, you should specify the full pathname instead, e.g., '/mnt/hd1/usr/mushi/bin/filename'.
 
Jun11-12, 03:24 PM   #3
 
Scroll down this

http://www.sdsc.edu/~tkaiser/f90.html

to see real random number generator Fortran programs written in Fortran 77 and Fortran 90.
 
New Reply

Tags
fortran 77, matlab 'system'
Thread Tools


Similar Threads for: Fortran alternative to Matlab 'system' command
Thread Forum Replies
Open command on Fortran Programming & Comp Sci 7
Is there any command in Fortran that is similar to eval in MATLAB? Engineering, Comp Sci, & Technology Homework 1
Fortran DO command Programming & Comp Sci 4
MATLAB save command and transpose command Math & Science Software 4