10-09-2006
Typically .kshrc is not read upon login unless you source it in your .profile. .bashrc is sourced automatically. Just add the command to your .profile and it'll be started each time you log in no matter how many terminal windows you have.
This is true in AIX, Solaris and HP-UX. Some older versions of Red Hat seem to use .bashrc and others use .profile. I haven't pursued what the difference although I think newer versions are using .profile.
I edited my .bashrc in most of the Red Hat servers I administrated at the time, but a couple of new servers based on AS 4 I believe didn't read the .bashrc files and I had to set up a .profile to set my standard environment variables.
Carl
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
So I dont enounter things like:
gzip: /sometimename.gz already exists; do you wish to overwrite (y or n)?
Want to add it into a script and if there is a file aready there to just overwrite it, otherwise the script will hang unless there is manual intervention. (1 Reply)
Discussion started by: LordJezo
1 Replies
2. Shell Programming and Scripting
Hi,
i'm programming on /bin/csh and i need to get the number extracted by this:
set ppl_kn = $(awk '{ field = $6 } ; END{ print field }' < ppl_LM_kn.ppl )
and the output is: "Illegal variable name."
Please anyone can help me what's wrong?
Thanks in advance (2 Replies)
Discussion started by: tmxps
2 Replies
3. Programming
Hi,
Please clarify what is the difference between "env" and "set" command.
I guess set will display the system variables and user defined variables.
Thanks
Sweta (1 Reply)
Discussion started by: sweta
1 Replies
4. UNIX for Dummies Questions & Answers
I installed Red Hat Enterprise Linux 5 on my PC. When i typed 'emacs' on the console, "command not found" error occurrd. Why.
:mad: (1 Reply)
Discussion started by: cy163
1 Replies
5. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
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. UNIX for Dummies Questions & Answers
Hi All,
We have an archiving script on our applications box. It is scheduled to run at 36th minute every hour.
36 * * * * /archive_7.sh
But it throws an error saying "sh: /archive_7.sh: not found". I am not able to understand why.
# ls -l /archive_7.sh ; file /archive_7.sh
-rwxr-xr-x ... (4 Replies)
Discussion started by: satish51392111
4 Replies
8. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
9. Shell Programming and Scripting
Look at the following data file(cou.data) which has four fields separated by tab.
Four fields are country name, land area, population, continent where it belongs.
As for country name or continent name which has two words, two words are separated by space.
(Data are not accurately... (1 Reply)
Discussion started by: chihuyu
1 Replies
10. 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
LEARN ABOUT OSF1
dh_installemacsen
DH_INSTALLEMACSEN(1) Debhelper DH_INSTALLEMACSEN(1)
NAME
dh_installemacsen - register an Emacs add on package
SYNOPSIS
dh_installemacsen [debhelperoptions] [-n] [--priority=n] [--flavor=foo]
DESCRIPTION
dh_installemacsen is a debhelper program that is responsible for installing files used by the Debian emacsen-common package into package
build directories.
It also automatically generates the preinst postinst and prerm commands needed to register a package as an Emacs add on package. The
commands are added to the maintainer scripts by dh_installdeb. See dh_installdeb(1) for an explanation of how this works.
FILES
debian/package.emacsen-compat
Installed into usr/lib/emacsen-common/packages/compat/package in the package build directory.
debian/package.emacsen-install
Installed into usr/lib/emacsen-common/packages/install/package in the package build directory.
debian/package.emacsen-remove
Installed into usr/lib/emacsen-common/packages/remove/package in the package build directory.
debian/package.emacsen-startup
Installed into etc/emacs/site-start.d/50package.el in the package build directory. Use --priority to use a different priority than 50.
OPTIONS
-n, --no-scripts
Do not modify postinst/prerm scripts.
--priority=n
Sets the priority number of a site-start.d file. Default is 50.
--flavor=foo
Sets the flavor a site-start.d file will be installed in. Default is emacs, alternatives include xemacs and emacs20.
NOTES
Note that this command is not idempotent. dh_prep(1) should be called between invocations of this command. Otherwise, it may cause multiple
instances of the same text to be added to maintainer scripts.
SEE ALSO
debhelper(7) "usr/share/doc/emacsen-common/debian-emacs-policy.gz"
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org>
11.1.6ubuntu2 2018-05-10 DH_INSTALLEMACSEN(1)