Re: Passing arguments on Windows (XP)
- From: Arjen Markus <arjen.markus@xxxxxxxxxx>
- Date: Thu, 30 Aug 2007 05:32:32 -0700
On 30 aug, 14:23, tclco...@xxxxxxxxxxxxxxxxxxxx wrote:
Hi,
I'm trying to put a Tk front-end onto a program I've been given
which reads from stdin.
Looking at the manual, it seems that I could do this with exec,
getting the prgram to read from a socket and writing the arguments to
that socket. However, I'm on Windows, and the manual says that reading/
writing from/to a socket doesn't work on Windows.
Is there a mechanism that DOES work, other then writing a
temporary file, which I can see would work, but seems inelegant.
TIA
Alan
Yes, there is:
exec yourprogram << $value
where $value is the value of a variable filled with the
input for the program.
BTW sockets work just as they are supposed to.
You may find http://wiki.tcl.tk/3359 of some interest
as well (more general than just Fortran programs :))
Regards,
Arjen
.
- Follow-Ups:
- Re: Passing arguments on Windows (XP)
- From: Gerald W. Lester
- Re: Passing arguments on Windows (XP)
- References:
- Passing arguments on Windows (XP)
- From: tclcoder
- Passing arguments on Windows (XP)
- Prev by Date: Passing arguments on Windows (XP)
- Next by Date: Re: "Scale": additional limits for variable values?
- Previous by thread: Passing arguments on Windows (XP)
- Next by thread: Re: Passing arguments on Windows (XP)
- Index(es):
Relevant Pages
|