For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > July 2004 > Re: How to retreive a command's output, monitor execution time and









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: How to retreive a command's output, monitor execution time and
Joe Smith

2004-07-16, 8:56 pm

david wrote:

> writing a script where in an executable (.exe) is triggered from within the code


Are you talking about a script being used as a CGI?

> my $proc2 = Proc::Background->new("$command $arg1 >> result.csv");
> Though the
> above 2 statements ran successfully, the file result.csv is not created
> atall.


The file might be created in a different directory. In CGI programming,
the current directory may not be what you expect; you should use absolute
pathnames or do an explicit chdir().
-Joe
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com