For Programmers: Free Programming Magazines  


Home > Archive > Tcl > December 2004 > environnement in linux deamons or cgi procs









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 environnement in linux deamons or cgi procs
METRONOME / BASIC

2004-12-28, 9:12 am

When a tcl script is used as a CGI scrip (linux) , the env array is not
initialized

Tcl deamons launced at rc.local level don't have the same environnment
tclsh doesn't seem to have the same encoding than tclsh launched from the
linux shell

how to overcome these problems

Patrick



Arjen Markus

2004-12-28, 9:12 am

METRONOME / BASIC wrote:
>
> When a tcl script is used as a CGI scrip (linux) , the env array is not
> initialized
>
> Tcl deamons launced at rc.local level don't have the same environnment
> tclsh doesn't seem to have the same encoding than tclsh launched from the
> linux shell
>
> how to overcome these problems
>
> Patrick


Some information about this problem can be found on the Wiki:
<http://wiki.tcl.tk/1382> for instance.

It is due to the way the environment variables are inherited from the
parent process. If you want more control over this, make sure you
set the variables via an .tclrc file or the like.

Regards,

Arjen
Sponsored Links







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

Copyright 2008 codecomments.com