由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Help -- How to output error messages to a file for scripts called by system calls???
相关主题
简单的perl问题请问如何恢复正常的IO?
想实现一个简单的script language,用perl好做么?[转载] Re: emacs 还是比较麻烦
为什么从txt文件里拷贝script到front page 里面时空格都变成了%20 ?Greasemonkey script for mitbbs (转载)
Help with a simple c-shell script.关于perl和linux shell script的书最经典有哪些? (转载)
怎么把string变为一个variable的名字 ?要不要学习 scripting languages such as Python?
python os.system( ) doesn't come backwindows scripts
shell scripting 中的 $status 有什么特定含义吗?谢谢。怎么才能在Unix里连续跑10个c写的程序
菜鸟请教个hadoop streaming job 的问题 (转载)AWS deployment 用 Asgard 或者script?
相关话题的讨论汇总
话题: error话题: file话题: fortran话题: output话题: calls
进入Programming版参与讨论
1 (共1页)
y******n
发帖数: 3
1
This might be a very simple question for most of the people here.I am using
Perl.I have to use system calls to run another fortran script. I am running
this fortran script on thousands of different input files. For some files,
the script doesn't work and output an error message. I need to get these
error messages. But I don't know how to do this. Please help!!!!
If I run this fortran script independently, the error message will be
through the standard output. But using the system calls, I don't
e******r
发帖数: 220
2
how about change standard out from "stdout" to "FILE". Here "FILE" is
some file handler? Like,
select FILE;
print "....";
Then the print result would be in that file.


using
running
where

【在 y******n 的大作中提到】
: This might be a very simple question for most of the people here.I am using
: Perl.I have to use system calls to run another fortran script. I am running
: this fortran script on thousands of different input files. For some files,
: the script doesn't work and output an error message. I need to get these
: error messages. But I don't know how to do this. Please help!!!!
: If I run this fortran script independently, the error message will be
: through the standard output. But using the system calls, I don't

y******n
发帖数: 3
3
Thanks a lot!
But this is not my problem. It is a error message generate by a fortran
excutable. I don't have the source code (even if I do, I don't know fortran)
. It is automatically printed to the stardard out. I am just wondering
whether I can somehow re-pipe it to some file.

is

【在 e******r 的大作中提到】
: how about change standard out from "stdout" to "FILE". Here "FILE" is
: some file handler? Like,
: select FILE;
: print "....";
: Then the print result would be in that file.
:
:
: using
: running
: where

t****t
发帖数: 6806
4
$result=`your_fortran_program`;
note it's backtick, not single quote.

using
running
where

【在 y******n 的大作中提到】
: This might be a very simple question for most of the people here.I am using
: Perl.I have to use system calls to run another fortran script. I am running
: this fortran script on thousands of different input files. For some files,
: the script doesn't work and output an error message. I need to get these
: error messages. But I don't know how to do this. Please help!!!!
: If I run this fortran script independently, the error message will be
: through the standard output. But using the system calls, I don't

1 (共1页)
进入Programming版参与讨论
相关主题
AWS deployment 用 Asgard 或者script?怎么把string变为一个variable的名字 ?
error of opening a file located in a remote server from pyt (转载)python os.system( ) doesn't come back
用python生成傻shell脚本如何?shell scripting 中的 $status 有什么特定含义吗?谢谢。
把python当成通用script来学,哪些module需要熟练?菜鸟请教个hadoop streaming job 的问题 (转载)
简单的perl问题请问如何恢复正常的IO?
想实现一个简单的script language,用perl好做么?[转载] Re: emacs 还是比较麻烦
为什么从txt文件里拷贝script到front page 里面时空格都变成了%20 ?Greasemonkey script for mitbbs (转载)
Help with a simple c-shell script.关于perl和linux shell script的书最经典有哪些? (转载)
相关话题的讨论汇总
话题: error话题: file话题: fortran话题: output话题: calls