<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:filepro-list-request@lists.celestial.com">filepro-list-request@lists.celestial.com</a> wrote:
<blockquote cite="mid20060510174316.64FE05461B@diablo.celestial.com"
type="cite">
<pre wrap="">Date: Wed, 10 May 2006 09:07:00 -0500
From: "Rick Mitchell" <a class="moz-txt-link-rfc2396E"
href="mailto:rick.mitchell@sirque.net"><rick.mitchell@sirque.net></a>
Subject: Fw: filepro / enviroment variables / putenv
To: <a class="moz-txt-link-rfc2396E"
href="mailto:filepro-list@lists.celestial.com"><filepro-list@lists.celestial.com></a>
Message-ID: <a class="moz-txt-link-rfc2396E"
href="mailto:005301c6743b$01abb300$1404a8c0@bbswork.com"><005301c6743b$01abb300$1404a8c0@bbswork.com></a>
Content-Type: text/plain; charset="iso-8859-1"
I read in March of 2005 the exchange between Ken , JP, and Brian concerning putenv commands.
I have used getenv to get the username from my novell server with no problems for years.
I realise there is and enviorment variable in my XP machines called username but that is the local pc's username, now the network id.
I would like to have a login processing that asks the person for their name and passes it to the environment variable on the pc. I am successful in passing it and reading it in the same table, but once I exit that filepro dclerk session the variable seems to be lost.
login
1:
:input aa "Enter your name"
2:
:putenv "DOOFUS",aa
3:
:exit
Once this is run doofus does not appear to the next table which does
logout
1:
:aa=getenv("doofus")
2:
:show"@aa="<aa
3:
:exit
I don't seem to get the variable in the second process. If this is correct I can do other things like pass a paramter to the login to do a lookup to a table and always check that, or even pass the username before starting filepro.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <a class="moz-txt-link-freetext"
href="http://lists.celestial.com/pipermail/filepro-list/attachments/20060510/d2a393b7/attachment-0001.html">http://lists.celestial.com/pipermail/filepro-list/attachments/20060510/d2a393b7/attachment-0001.html</a>
------------------------------
Message: 8
Date: Wed, 10 May 2006 13:41:41 -0400
From: Kenneth Brody <a class="moz-txt-link-rfc2396E"
href="mailto:kenbrody@bestweb.net"><kenbrody@bestweb.net></a>
Subject: Re: Fw: filepro / enviroment variables / putenv
To: Rick Mitchell <a class="moz-txt-link-rfc2396E"
href="mailto:rick.mitchell@sirque.net"><rick.mitchell@sirque.net></a>
Cc: <a class="moz-txt-link-abbreviated"
href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>
Message-ID: <a class="moz-txt-link-rfc2396E"
href="mailto:20060510134141.j6w0okos8kok4koo@webmail.spamcop.net"><20060510134141.j6w0okos8kok4koo@webmail.spamcop.net></a>
Content-Type: text/plain; charset="ISO-8859-1"
Quoting Rick Mitchell (Wed, 10 May 2006 09:07:00 -0500):
[...]
</pre>
<blockquote type="cite">
<pre wrap=""><span class="moz-txt-citetags">> </span> :input aa "Enter your name"
<span class="moz-txt-citetags">> </span> :putenv "DOOFUS",aa
<span class="moz-txt-citetags">> </span> :exit
</pre>
</blockquote>
<!---->[...]
Each process has its own environment. This environment can be
inherited by that process' children, but it cannot change the
parent process' environment.
In other words, whatever program started the filePro program with
the above processing will not have its environment changed, so
any other program started by it will not have the new variable,
either.
--
KenBrody at BestWeb dot net spamtrap: <a class="moz-txt-link-rfc2396E"
href="mailto:g8ymh8uf001@sneakemail.com"><g8ymh8uf001@sneakemail.com></a>
<a class="moz-txt-link-freetext" href="http://www.hvcomputer.com">http://www.hvcomputer.com</a>
<a class="moz-txt-link-freetext" href="http://www.fileProPlus.com">http://www.fileProPlus.com</a></blockquote>
<br>
Rick,<br>
<br>
I've done this with Netware, but you have to set the environement
variable using Netware's SET command during the Netware login. I did
it by modifying the server login script which is run before individual
script gets run. Any DOS window opened up will then have this
environment in it.<br>
<br>
Boaz<br>
</body>
</html>