According to [EMAIL PROTECTED]:
> Following line of Perl code is intended to run htdig, and send STDOUT to
>     /htdig3.2b2/autoshop-online._htdig.log;
>   
> system 
> "/htdig3.2b2/bin/htdig","-svic","/htdig3.2b2/sngl/conf/autoshop-online.conf","
> 
> >",
> "/htdig3.2b2/autoshop-online._htdig.log";
> 
> The execution of Htdig produces valid content in STDOUT, but it goes to 
> STDOUT itself (as opposed to the specified file).  Best I can tell, from 
> review of Perl (5.005_03) documentation, syntax of above command is valid.

While I'm no Perl expert, I've never seen "system" used in this way.  I think

  system("/htdig3.2b2/bin/htdig -svic /htdig3.2b2/sngl/conf/autoshop-online.conf > 
/htdig3.2b2/autoshop-online._htdig.log");

will do what you want.  The string just gets passed to the shell for
parsing, as far as I know, so you use standard sh/ksh/bash syntax in
the string.  Perhaps in the syntax you used, the ">" got passed literally
as argument 3 to the htdig program.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.
List archives:  <http://www.htdig.org/mail/menu.html>
FAQ:            <http://www.htdig.org/FAQ.html>

Reply via email to