Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » All Things Unix » Profile in Solaris terminal session
Search Topic:
Uniqs:
263
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
sudo and PATH »
« The Rig  
AuthorAll Replies
-


nixen
Rockin' the Boxen
Premium
join:2002-10-04
Alexandria, VA
·Cox HSI
·Speakeasy

reply to timcuth
Re: Profile in Solaris terminal session

Normally, it executes in any subshell of the session. That said, if you didn't have it in place when you executed your dtlogin, it won't get executed when you spawn a new subshell of that session (i.e., when you open a new window).
--
The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt. -- Bertrand Russell


nwrickert
sand groper
Premium,MVM
join:2004-09-04
Geneva, IL
·AT&T U-Verse
·AT&T Midwest

reply to timcuth
If starting dtterm from the command line, you would use the option "-ls" so that it starts as a login shell. There is probably a line you can put in $HOME/.Xdefaults to force that as a default for dtterm.
--
AT&T dsl; Speedstream 5100b modem; openSuSE 11.0; firefox 3.0.11


timcuth
Braves Fan
Premium
join:2000-09-18
Pelham, AL
clubs:
·AT&T Southeast

 reply to timcuth
No, that doesn't work, either. I ran some tests and found that .dtprofile is not executed in the situation I am talking about. I did some research and found that it is executed when CDE starts, not when a new window is opened.

To clarify, here is what I am doing. I am right-clicking on the desktop, which brings up a Desktop menu. I slide down to Tools and click, which brings up a sub-menu. Then I click on Terminal, which opens a new window with a command prompt in it. These Terminal windows are where I do 99% of my work. When I open them, neither .dtprofile nor .profile is executed.

Tim
--
"Life is like this long line, except at the end there ain't no merry-go-round." - Arthur on The King of Queens
~ Project Hope ~


timcuth
Braves Fan
Premium
join:2000-09-18
Pelham, AL
clubs:
·AT&T Southeast

 reply to nixen
said by nixen See Profile :

Are we talking about how to do it in the standard DTWM graphical login? If so, just symlink your .profile to .dtprofile.
Thanks. I will try that, tomorrow.

Tim
--
"Life is like this long line, except at the end there ain't no merry-go-round." - Arthur on The King of Queens
~ Project Hope ~


nixen
Rockin' the Boxen
Premium
join:2002-10-04
Alexandria, VA
·Cox HSI
·Speakeasy

reply to timcuth
said by timcuth See Profile :

Ok, this has been bugging me for years and I have never figured it out. I'll bet some of y'all can provide the answer.

I have a Solaris 10 workstation at work. When I start a new Terminal window, it knows nothing of my profile. For at least 10 years I have been working around this by entering ". ./.profile".

Is there any file I can create that will do a similar thing automatically when I open a new terminal? Like .bashrc in Ubuntu Linux?

BTW, I use ksh as my login shell.
Are we talking about how to do it in the standard DTWM graphical login? If so, just symlink your .profile to .dtprofile.
--
The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt. -- Bertrand Russell


timcuth
Braves Fan
Premium
join:2000-09-18
Pelham, AL
clubs:
·AT&T Southeast

  Ok, this has been bugging me for years and I have never figured it out. I'll bet some of y'all can provide the answer.

I have a Solaris 10 workstation at work. When I start a new Terminal window, it knows nothing of my profile. For at least 10 years I have been working around this by entering ". ./.profile".

Is there any file I can create that will do a similar thing automatically when I open a new terminal? Like .bashrc in Ubuntu Linux?

BTW, I use ksh as my login shell.

Thanks,
Tim
--
"Life is like this long line, except at the end there ain't no merry-go-round." - Arthur on The King of Queens
~ Project Hope ~
Forums » Tech and Talk » OS and Software » All Things Unixsudo and PATH »
« The Rig  


Friday, 27-Nov 17:55:05 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [119] Time Warner Cable Fires Broadside At Broadcasters
· [111] New AT&T Ad Campaign Hits Back At Verizon
· [95] Apple Joins AT&T Verizon Snark Fest
· [87] New Bill Takes Aim At Higher Verizon ETFs
· [70] TiVo Sees Record Customer Losses
· [68] In-Flight Internet Headed For Bumpy Landing?
· [60] Thanksgiving Open Thread
· [56] Verizon CEO: Hulu Will Be Dead Soon
· [38] EFF Wages War On Fine Print
· [38] ICANN Slams DNS Redirection
Most people now reading
· Windows 7 boot manager editing questions [Microsoft Help]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· Leveling to 85 [World of Warcraft]
· Whats the big deal about being "Old School"....? [World of Warcraft]
· HOW-TO: QoS and Tomato (fixes "choppy voice") [MagicJack]
· Bell Response to PIPEDA Request [TekSavvy]
· [Vista] Why is HD So Full? [Microsoft Help]
· persistent connection to qw-in-f113.1e100.net on boot [Security]
· What is the spell hit cap for a lvl 80 full arcane spec mage [World of Warcraft]
· Connecting to Google Voice Via SIP [VOIP Tech Chat]