10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
"SQLPLUS -S " is not working in one environment where same code is working in another
getting below error
===================================
SQL*Plus: Release 11.2.0.3.0 Production
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus... (1 Reply)
Discussion started by: yogendra.barode
1 Replies
2. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
3. AIX
Hi
Is it recommended to edit the file "/etc/environment" directly using vi ?
(like by adding some export something= value staements)
or
do we need to edit /etc/profile file
in order to set the environment variables, globally to the entire AIX LPAR
please suggest. (5 Replies)
Discussion started by: System Admin 77
5 Replies
4. Solaris
Hi to all.
It is need to install Solaris 2.5.1 on Sun Enterprise 220r and 420r. Share somebody Solaris Operating Environment Installation CD, aka "CD0" PN: 704-7076-10 ... It is very necessary! ! ! PM or ftp link.... :D (4 Replies)
Discussion started by: aivengoff
4 Replies
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I work noramly with 3/4/5 Terminals (not xterms) open. In the different Terminal I set different tools (software).
Unfortunately I loose easily the overview of all these Terminals. Which setup is in which Terminal?
It would be nice to have a possibility to name Termianls. By the way I work... (4 Replies)
Discussion started by: hooge789
4 Replies
7. Shell Programming and Scripting
Hi all,
I am running Solaris and I just find there is an environment variable called "NAME" set in my .profile. I googled it for a while and still don't know what is this variable used for (I think it is different as USERNAME or USER?)?
When I used mailx to send emails to my PC (thought... (4 Replies)
Discussion started by: qiulang
4 Replies
8. Shell Programming and Scripting
The below shell script obtains a command and an alias from the user then appends the alias to the users ~/.aliases file. It is useful with cd commands and saves typing; instead of going cd /foo/bar/bonk/boo/what/whatelse/dir I create an alias something like "godir".
It's not done and I will... (2 Replies)
Discussion started by: whosit1963
2 Replies
9. Shell Programming and Scripting
Hello fellow *nix users!
I am a bit confused how could I get an environment of a "fresh/clean" login shell, that is, the environment at that moment when user has started e.g. a new terminal/console or so.
So this is the sequence of actions I should be able to do in a single shell session:
... (6 Replies)
Discussion started by: Miikka
6 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a problem with retreiving the value of an environment variable. The name of the variable is:
DIR$INP
I am not able to change the name of the variable, because it is used by programs to which I do not have access to. The variable contains the name of a directory as value. I have... (6 Replies)
Discussion started by: lamac
6 Replies
getenv(3C) Standard C Library Functions getenv(3C)
NAME
getenv - return value for environment name
SYNOPSIS
#include <stdlib.h>
char *getenv(const char *name);
DESCRIPTION
The getenv() function searches the environment list (see environ(5)) for a string of the form name=value and, if the string is present,
returns a pointer to the value in the current environment.
RETURN VALUES
If successful, getenv() returns a pointer to the value in the current environment; otherwise, it returns a null pointer.
USAGE
The getenv() function can be safely called from a multithreaded application. Care must be exercised when using both getenv() and
putenv(3C) in a multithreaded application. These functions examine and modify the environment list, which is shared by all threads in an
application. The system prevents the list from being accessed simultaneously by two different threads. It does not, however, prevent two
threads from successively accessing the environment list using getenv() or putenv(3C).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
exec(2), putenv(3C), attributes(5), environ(5), standards(5)
SunOS 5.10 24 Jul 2002 getenv(3C)