Subject: Re: [htdig] Redirection of Htdig output -- 3.20b2
From: Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Date: Fri Nov 17 2000 - 09:43:54 PST
According to Sphboc@aol.com:
> 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: <grdetil@scrc.umanitoba.ca> 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 htdig-unsubscribe@htdig.org You will receive a message to confirm this. List archives: <http://www.htdig.org/mail/menu.html> FAQ: <http://www.htdig.org/FAQ.html>
This archive was generated by hypermail 2b28 : Fri Nov 17 2000 - 09:51:41 PST