Home » Developer & Programmer » Forms » Set/Export Unix Variables through forms
icon5.gif  Set/Export Unix Variables through forms [message #110723] Wed, 09 March 2005 17:55 Go to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
There is a forms built-in called TOOL_ENV.GETVAR which gets Unix environment variables.

Is there a way to Set or Export Unix environment variables which will PERSIST longer than a standard Host command variable. That is, I have an environment variable DEBUG which I set to 0 (zero) with a DEBUG=0 command before starting my Unix/Linux oracle command. My application looks at this environment variable to see whether I want lines written to a text file. I can turn it on or off BEFORE I start the session, but I want to be able to change its value WHILE the session is running. A 'host' command starts a new session and does not update the variable in the current session.

Any ideas?
Re: Set/Export Unix Variables through forms [message #111101 is a reply to message #110723] Sun, 13 March 2005 18:51 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Anyone got any idea?
Re: Set/Export Unix Variables through forms [message #111156 is a reply to message #111101] Mon, 14 March 2005 06:12 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Use :GLOBAL.variable_name.

Check out the docs for more info concerning global variables.

MHE
Re: Set/Export Unix Variables through forms [message #111222 is a reply to message #110723] Mon, 14 March 2005 17:07 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
C scripts can't read globals.
Re: Set/Export Unix Variables through forms [message #111254 is a reply to message #110723] Tue, 15 March 2005 01:18 Go to previous messageGo to next message
Frank
Messages: 7901
Registered: March 2000
Senior Member
Create a file debug and alter the contents from 0 to 1. If you use utl_file, you can modify files on the server.

hth
Re: Set/Export Unix Variables through forms [message #113123 is a reply to message #111254] Thu, 31 March 2005 01:27 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Found that 'C' has a 'setvar' facility. We used it.
Previous Topic: Running Oracle 6i Forms On Web
Next Topic: Sending Mail Except SMTP protocol
Goto Forum:
  


Current Time: Thu Sep 19 16:18:37 CDT 2024