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
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old March 18th, 2005, 05:50 PM
deb_dutta deb_dutta is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 25 deb_dutta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 2 m 4 sec
Reputation Power: 0
Question How to implement ".kshrc" under .profile

Hello friends,
I am using Sun OS 5.8.
I have a user say "guest" which does not have the root permission. I want to use the facility of "alias" in unix.
For this i prefered that all those "alias" will be written in ".kshrc" file and i want to integreat that ".kshrc" file with .profile so that when anybody logged in to the system all the "alias" are to be available from that time.
Thanks for the suggestiom
Debashis Dutta

Reply With Quote
  #2  
Old March 21st, 2005, 10:17 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 49 m 57 sec
Reputation Power: 9
have a look to 'man ksh'
pay attention to 'ENV' variable
__________________
working on Solaris[5-9], preferred languages french and C.

Reply With Quote
  #3  
Old March 21st, 2005, 06:53 PM
deb_dutta deb_dutta is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 25 deb_dutta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 2 m 4 sec
Reputation Power: 0
Question

Hi,
Thanks for the reply. I set the "ENV" variable in .profile but i have to execute "/bin/ksh" to enable the Ksheel env.
Now the problem is, when i want to logout from the system i have to execute to exit commands(probably one for come out from the kshell env and other for logout from the system.
Thanks for the help.


Quote:
Originally Posted by guggach
have a look to 'man ksh'
pay attention to 'ENV' variable

Reply With Quote
  #4  
Old March 21st, 2005, 09:30 PM
vgersh99 vgersh99 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 47 vgersh99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 Days 5 h 36 m 43 sec
Reputation Power: 4
Send a message via AIM to vgersh99 Send a message via MSN to vgersh99 Send a message via Yahoo to vgersh99
in your .profile do:
Code:
. ~/.kshrc

Reply With Quote
  #5  
Old March 23rd, 2005, 09:05 AM
deb_dutta deb_dutta is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 25 deb_dutta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 2 m 4 sec
Reputation Power: 0
Thumbs up

Thanks a lot, it's working.

Quote:
Originally Posted by vgersh99
in your .profile do:
Code:
. ~/.kshrc

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > How to implement ".kshrc" under .profile


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


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





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