- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Is it possible, using only fortran, to capture stdout from a call system() invocation?
best,
Is it possible, using only fortran, to capture stdout from a call system() invocation?
best,
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - rreis
whithout capturing it to a file and reading it later, off course...
Yes, that would be useful and I've needed this capability. Unfortunately I know of no way to do this from just Fortran - other than the redirection of output to a file which is then opened and read.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
whithout capturing it to a file and reading it later, off course...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - rreis
whithout capturing it to a file and reading it later, off course...
Yes, that would be useful and I've needed this capability. Unfortunately I know of no way to do this from just Fortran - other than the redirection of output to a file which is then opened and read.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Ronald Green (Intel)
Yes, that would be useful and I've needed this capability. Unfortunately I know of no way to do this from just Fortran - other than the redirection of output to a file which is then opened and read.
call system ('uname -snm>>file.log') to run only to see this happns to stdout but not in other file.
i had to have a short encounter with c to do this....thanks to both of you.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page