The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
alias rm = 'rm -i' in .bashrc and vnc cy163 UNIX for Dummies Questions & Answers 0 05-23-2007 10:57 AM
Why does my webserver stop everytime I exit my session? kenny123m UNIX for Dummies Questions & Answers 6 04-16-2007 06:38 AM
backing up file everytime script run and saving other backups knc9233 UNIX for Dummies Questions & Answers 4 01-29-2007 09:21 AM
Makefile relinks everytime bellings Shell Programming and Scripting 10 06-17-2005 04:54 PM
from bashrc to sh..?? moxxx68 Shell Programming and Scripting 3 09-13-2004 06:39 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-22-2006
kalyanraj kalyanraj is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 6
Need to run source .bashrc everytime

hi all,

I've included some variables in my .bashrc file. But everytime i'm logging in i need to source my .bashrc file to make effect of my variables.

i'm having an account on a highly secured production environment.

I've the following in my ~/.bashrc file

Code:
alias cls=clear
How to make it work without making source.

Thanks a ton,
Kalyan

Last edited by kalyanraj; 09-22-2006 at 06:42 AM..
  #2 (permalink)  
Old 09-22-2006
apoorvasharma80 apoorvasharma80 is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 69
Have you tried to read the man on bash? It says the bashrc file is read by the system when you open a subshell. If you want them to be set on the first place then put them in your .profile.

regards
Apoorva Kumar
  #3 (permalink)  
Old 09-22-2006
kalyanraj kalyanraj is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 6
hi,

I modified my ~/.profile file and it worked for me.

Thanks,
Kalyan
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0