Quantcast
Channel: Fortran
Viewing all articles
Browse latest Browse all 3108

Simple Way to Get Shell Command Output

$
0
0

Hi, for the "SYSTEM" intrinsic only return the exit code of a shell command but not the output from it, so is there any approach to get the output within fortran code ? Such as, the current date string returned by shell command "%DATE%" ? I have tried to echo the date string to txt file and then read it, but it's really bothered, are there any simpler ways ?

 


Viewing all articles
Browse latest Browse all 3108

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>