01-12-2007
Quote:
Originally Posted by Perderabo
It is possible that a private .. command has been defined somehow.
I tried it using alias, and it works! Just a simple "alias ..=." allows you to run commands like .. /home/xyz/.profile. Talk about flexibility!
10 More Discussions You Might Find Interesting
1. 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
2. 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
3. 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
4. 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
5. 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
6. 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
7. 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
8. 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
9. 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
10. 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
putenv(3C) putenv(3C)
NAME
putenv() - change or add value to environment
SYNOPSIS
DESCRIPTION
string points to a string of the form name=value. makes the value of the environment variable name equal to value by altering an existing
variable or creating a new one. In either case, the string pointed to by string becomes part of the environment, so altering the string
changes the environment. The space used by string is no longer used once a new string-defining name is passed to
EXTERNAL INFLUENCES
Locale
The category determines the interpretation of characters in string as single- and/or multi-byte characters.
International Code Set Support
Single- and multi-byte character code sets are supported.
DIAGNOSTICS
returns non-zero if it was unable to obtain enough space via for an expanded environment, or if an invalid multibyte character sequence was
encountered in the string argument; otherwise it returns zero.
ERRORS
fails under the following conditions:
[ENOMEM] There is insufficient space to expand the environment.
[EILSEQ] An invalid multibyte character sequence was encountered in the string argument.
WARNINGS
manipulates the environment pointed to by environ, and can be used in conjunction with However, envp (the third argument to main) is not
changed.
This routine uses to enlarge the environment (see malloc(3C)).
After is called, environmental variables are not in alphabetical order.
A potential error is to call with an automatic variable as the argument, then exit the calling function while string is still part of the
environment.
SEE ALSO
exec(2), getenv(3C), malloc(3C), environ(5), thread_safety(5).
STANDARDS CONFORMANCE
putenv(3C)