06-22-2012
Every process you create inherits a copy of your environment variables, and anything they create gets copies too.
I hadn't expected that would matter to a system service, though! I thought such things usually clear the environment then set a strict one of their own.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok, So I've been lazy over the past 3 years with the SCO server I maintain, as it just primarily hosts my private networked proprietary software, until now.
We have dedicated net access, in which the SCO server is not setup for and not going to be setup to connect to the internet by any direct... (8 Replies)
Discussion started by: ftn96
8 Replies
2. Shell Programming and Scripting
Hi
I have a question, what is the purpose of this command and what will it do
"refresh -s inetd"
Thanks in Advance
Swaraj (3 Replies)
Discussion started by: kswaraj
3 Replies
3. HP-UX
--------------------------------------------------------------------------------
Hi All ,
I have a client an server among which i want to make the server an inetd process.
I have enries in etc/services and etc/inetd.conf
The enries looks like below
etc/services
servername 5551/tcp... (4 Replies)
Discussion started by: binums
4 Replies
4. IP Networking
Hi , I need help, today I restarted the server, when the machine was up, it had been to writte in the file osmlog that :
"inetd: talk/udp: bind: Address already in use"
This message appears in ten minutes every time. Why ?
Thanks. (6 Replies)
Discussion started by: By_Jam
6 Replies
5. Solaris
Dear guys,
Pls help me this case. I telnet normally to Solaris. After restarting it manually, I can only console, cannot telnet from my latop although I can ping it. I checked
/etc/default/login
/usr/sbin/in.telnetd
/etc/inet/inetd.conf
All these files are the same.
I don't see telnet... (2 Replies)
Discussion started by: wipi
2 Replies
6. Solaris
Hi All,
When i am trying to restart the inetd daemon it throughing error.
Please find the message and tell me what i need to do ?
Apr 7 22:57:37 HYDOHS01 inetd: ISTATE not in environment
Apr 7 22:57:41 HYDOHS01 inetd: stop: No such file or directory
Apr 7 22:58:01 HYDOHS01 inetd: ... (5 Replies)
Discussion started by: lbreddy
5 Replies
7. Shell Programming and Scripting
hello all, i am trying to find a better to do what i am doing right now...
i have a file called sidlist...which has my database_name and password to the respective database
so something like below.. file is called sidlist and entry is below...
test, abc123
kes12, abcd12
pss, abcd1234... (5 Replies)
Discussion started by: abdul.irfan2
5 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am using mv command for moving file mv /tmp/test /tmp/test_bkp but I am getting
change from notrun to 0 failed: Could not find command 'mv'
I am using mv command in puppet language, so generally we use like below
command => "/usr/bin/awk '/search/ { print $1}' /tmp/test
... (1 Reply)
Discussion started by: stew
1 Replies
set(1F) FMLI Commands set(1F)
NAME
set, unset - set and unset local or global environment variables
SYNOPSIS
set [ -l variable [ =value]] ...
set [ -e variable [ =value]] ...
set [ -ffile variable [ =value]...] ...
unset -l variable...
unset -f file variable...
DESCRIPTION
The set command sets variable in the environment, or adds variable=value to file. If variable is not equated it to a value, set expects the
value to be on stdin. The unset command removes variable. Note that the FMLI predefined, read-only variables (such as ARG1), may not be set
or unset.
Note that at least one of the above options must be used for each variable being set or unset. If you set a variable with the -ffilename
option, you must thereafter include filename in references to that variable. For example, ${(file)VARIABLE}.
FMLI inherits the UNIX environment when invoked.
OPTIONS
-l Sets or unsets the specified variable in the local environment. Variables set with -l will not be inherited by processes invoked
from FMLI.
-e Sets the specified variable in the UNIX environment. Variables set with -e will be inherited by any processes started from FMLI.
Note that these variables cannot be unset.
-ffile Sets or unsets the specified variable in the global environment. The argument file is the name, or pathname, of a file containing
lines of the form variable=value. file will be created if it does not already exist. Note that no space intervenes between -f and
file.
EXAMPLES
Example 1: A sample output of set command.
Storing a selection made in a menu:
name=Selection 2
action=`set -l SELECTION=2`close
NOTES
Variables set to be available to the UNIX environment (those set using the -e option) can only be set for the current fmli process and the
processes it calls.
When using the -f option, unless file is unique to the process, other users of FMLI on the same machine will be able to expand these vari-
ables, depending on the read/write permissions on file.
A variable set in one frame may be referenced or unset in any other frame. This includes local variables.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
env(1), sh(1), attributes(5)
SunOS 5.10 5 Jul 1990 set(1F)