how can i run unix command in fortran program?

Status
Not open for further replies.

confi999

Junior Member level 3
Joined
Dec 12, 2005
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,503
fortran program to run command on shell

I was told it is possible to use unix commands in fortran code. Can anyone guide me how shall I do that.

My work requires (a) running fortran code which will produce a data file .. (b) then some unix commands will select certain portions of the data and do some processing .... (c) finally fortran will do further processing on the processed data obtained from unix commands

Is it possible to do all 3 steps in fortran program - particularly step (b) in fortran? I donot want to write a shell script etc. (it will cost me some time/ effort to learn and do it properly) but feel more comfortable/ confident working in fortran.

any advice will be highly appreciated . thank you
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…