Re: Tcl script fails on some platforms
- From: Robert Heller <heller@xxxxxxxxxxxx>
- Date: Tue, 31 Jul 2007 21:56:06 +0200
At Tue, 31 Jul 2007 10:19:06 -0700 hrp1000@xxxxxxxxx wrote:
Okay, I think I've got at least a partial answer to this problem.
The interface between my Tcl script and the Fortran/C program is via
TCP/IP sockets. If I force the IP address of the server side (in Tcl)
to be localhost or 127.0.0.1, I get this error and can see that
$::session has not been set (or is set to somethiing that doesn't
print on the screen).
If I just let the Tcl socket stuff use the real IP address of the
machine, I don't get the problem.
Now I have to see if my user (in a different time zone) can tell me
more about his machine...
Sounds like it is machine that lacks an EtherNet connection...
If the Fortran/C program is in fact running on the local machine, then
the interface code needs to be able to work over the loopback device
(localhost or 127.0.0.1) -- in fact it should prefer to use the
loopback, since that is more secure -- it avoids running a 'public'
service that could be hacked into.
You might want to have a really close look at the code where the sockets
are set up and see why using the loopback device causes problems.
--
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
heller@xxxxxxxxxxxx -- Contract Programming: C/C++, Tcl/Tk
.
- Follow-Ups:
- Re: Tcl script fails on some platforms
- From: hrp1000
- Re: Tcl script fails on some platforms
- References:
- Tcl script fails on some platforms
- From: hrp1000
- Re: Tcl script fails on some platforms
- From: Mark Janssen
- Re: Tcl script fails on some platforms
- From: Bryan Oakley
- Re: Tcl script fails on some platforms
- From: hrp1000
- Re: Tcl script fails on some platforms
- From: Cameron Laird
- Re: Tcl script fails on some platforms
- From: Gerald W. Lester
- Re: Tcl script fails on some platforms
- From: hrp1000
- Tcl script fails on some platforms
- Prev by Date: Re: resizing JPEGs --- SOLVED
- Next by Date: Re: Tcl script fails on some platforms
- Previous by thread: Re: Tcl script fails on some platforms
- Next by thread: Re: Tcl script fails on some platforms
- Index(es):
Relevant Pages
|