UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old August 9th, 2004, 02:58 PM
jkrew_devshed jkrew_devshed is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Posts: 105 jkrew_devshed User rank is Sergeant (500 - 2000 Reputation Level)jkrew_devshed User rank is Sergeant (500 - 2000 Reputation Level)jkrew_devshed User rank is Sergeant (500 - 2000 Reputation Level)jkrew_devshed User rank is Sergeant (500 - 2000 Reputation Level)jkrew_devshed User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 13 h 14 m 42 sec
Reputation Power: 22
Sun / solaris / korn shell : reloading .profile, .kshrc

Well, I could have sworn there was an easy way to do this, but I have looked and looked )-:

How do I, using korn shell on Solaris UNIX, reload my .profile and .kshrc files without logging out and then logging back in.

For instance, let's say I add an alias to a file read by .kshrc and I want to use it without having to log out.

I tried using source, but it looks like I cannot use source.
__________________
"I'm between quotes right now"

Reply With Quote
  #2  
Old August 9th, 2004, 03:53 PM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,300 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 2 h 18 m 16 sec
Reputation Power: 47
Code:
. .profile

The "dot" command was the original "source" command.

Reply With Quote
  #3  
Old August 10th, 2004, 10:08 AM
jlk's Avatar
jlk jlk is offline
Perl Jedi
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: New Hampshire
Posts: 108 jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 10 h 41 m 53 sec
Reputation Power: 15
Quote:
Originally Posted by jim mcnamara
Code:
. .profile

The "dot" command was the original "source" command.


To add to that, if you don't have your present path in your $PATH and you want to source a local .profile, do:

. ./.profile

Just know that having "." in your $PATH is a security violation.

Regards,

jlk

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Sun / solaris / korn shell : reloading .profile, .kshrc


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway