08-31-2008
You're welcome!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I just want to know ow I can set permanent pathes or whatever using setenv command. I'm using c shell .
regards,
me (1 Reply)
Discussion started by: geoquest
1 Replies
2. UNIX for Dummies Questions & Answers
I have a script that I'm trying to shorten (below) by removing repetitive code.
if ]
then
commodity_ndm_done=Y
fi
if ]
then
customer_ndm_done=Y
fi
if ]
then
department_ndm_done=Y
fi
if ]
then
division_ndm_done=Y
fi (3 Replies)
Discussion started by: superdelic
3 Replies
3. UNIX for Advanced & Expert Users
hi,
I am writing c++ code in unix operating system.In that i need to set the environment variable in unix.
suppose previously i have environment variable like path="something" now i need to change the path value to some othervalue . so that some other program will access that path value... (1 Reply)
Discussion started by: sada@123
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Im using csh and sometimes bash.
I accidentally typed SET and looks like it has resetted some enviroment variables as im not able to run autosys jobs etc ..
So i wanted to know how i can put it back to normal by replacing any profile files from another user or by editing the file which... (2 Replies)
Discussion started by: spectator
2 Replies
5. Solaris
Hi,
I've read forums far and wide trying to learn how to append to my PATH in Solaris 9 and every time I think I am close I discover my system is not configured the same. Its so frustrating because this all stems from a new server I am trying to setup identical to the production machine. (Of... (5 Replies)
Discussion started by: thoraddict
5 Replies
6. HP-UX
Hi all
I have a request from user to change the file descriptors limit to 8192. The current setting are:
root@xxxxx:(wmdev)> ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited... (3 Replies)
Discussion started by: hedkandi
3 Replies
7. Shell Programming and Scripting
Hi
Could you please tell me how to set environment variables in Unix ksh.
And how can acess those varibles in shell scripts
( Please give the code with an example)
For my scenario.
We have written number of shell scripts with hard coded username and password.
But if we want to... (1 Reply)
Discussion started by: shyamu544
1 Replies
8. Solaris
Hi All
On my Solaris 10 X86, under my root directory I have a file called Aliases. It is owned by root (root:root) and the user (I mean root) has rwx permissions. In this file I have set some aliases like the following
alias a="cd /opt/IBM/WebSphere/AppAerver/Profiles"
When I run the above... (0 Replies)
Discussion started by: chrs0302
0 Replies
9. Shell Programming and Scripting
Experts,
I want to set value of variables like this in bash shell:
i=5 ; L=100
I want variable d5 (that is d(i) ) to be assign the value of $L ,
d$i=$L ; echo $d5
Not working
Thanks., (3 Replies)
Discussion started by: rveri
3 Replies
10. Shell Programming and Scripting
We are using csh on our AIX platform, if we have to export/set a specific environment variable we use setenv command but its only valid till session.
How do we set that variable permanent in our csh AIX? Do we put it in userprofile file or something else? (1 Reply)
Discussion started by: aixusrsys
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)