The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem in updating .profile file in HP-UX B.11.00 machine abhishek0071 UNIX for Advanced & Expert Users 3 02-07-2008 12:06 PM
problem with .profile dsravan Shell Programming and Scripting 6 04-23-2007 09:35 PM
problem with .profile sam71 UNIX for Dummies Questions & Answers 7 05-20-2005 04:04 AM
Problem with .profile jigarlakhani UNIX for Dummies Questions & Answers 2 03-02-2004 09:43 AM
changed .profile but didnt ./.profile, yet reflected changes yls177 UNIX for Dummies Questions & Answers 4 12-05-2002 08:21 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 12-22-2006
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 401
Actually he wanted the info added to your .profile not on the command line (or at least that's how I read it since it's not working in the script but it is on the command line; you do the troubleshooting from where it doesn't seem to be working ).

The only time I've experienced a problem is if something earlier doesn't run and .profile bails but I can't be sure that wasn't a Red Hat feature (so many systems ). Are the other items working? The PATH modified and NDMAPICFG set? If you move the set command to the top of .profile, does it work?

Carl

Edit: Oh, and if you source your .profile does it work?

Code:
$ . ./.profile
Reply With Quote
Forum Sponsor
  #9  
Old 12-22-2006
Registered User
 

Join Date: Dec 2006
Location: dallas tx
Posts: 43
Hay Carl, I think your on to something....
yes - the source did work.
yes - my path and ndmapicfg and "stty erase" does work

no - moving "set -o vi" to the top (above stty erase ^H) doesn't work
no - placing those command in the .profile did not help.

Grrr... this seems to easy to not work.
Reply With Quote
  #10  
Old 12-22-2006
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Quote:
Originally Posted by jimmyc
no - placing those command in the .profile did not help.
jimmy, you need to modify your .profile file as I indicated. Then you need to logon. Then you need to post the output from those commands. No, those lines will not solve anything. But if you would post the output they produce when you logon, we can probably figure out what is happening.
Reply With Quote
  #11  
Old 12-28-2006
Registered User
 

Join Date: Dec 2006
Location: dallas tx
Posts: 43
Here's the output from the commands in the .profile ....
Please see note at bottom.

Last login: Thu Dec 28 08:07:29 from 192.168.0.214
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
UID PID PPID C STIME TTY TIME CMD
jcusic 7813 7807 0 14:17:29 pts/2 0:00 ps -f
jcusic 7807 7804 1 14:17:24 pts/2 0:00 -ksh
Current option settings
allexport off
bgnice on
emacs off
errexit off
gmacs off
ignoreeof off
interactive on
keyword off
markdirs off
monitor on
noexec off
noclobber off
noglob off
nolog off
notify off
nounset off
privileged off
restricted off
trackall off
verbose off
vi on
viraw off
xtrace off
Current option settings
allexport off
bgnice on
emacs off
errexit off
gmacs off
ignoreeof off
interactive on
keyword off
markdirs off
monitor on
noexec off
noclobber off
noglob off
nolog off
notify off
nounset off
privileged off
restricted off
trackall off
verbose off
vi on
viraw off
xtrace off
$ -fs
set -o vi
set -o
ksh: -fs: not found
$ set -o vi
$ set -o
Current option settings
allexport off
bgnice on
emacs off
errexit off
gmacs off
ignoreeof off
interactive on
keyword off
markdirs off
monitor on
noexec off
noclobber off
noglob off
nolog off
notify off
nounset off
privileged off
restricted off
trackall off
verbose off
vi on
viraw off
xtrace off

Grrr... logon is a generic term which I didn't stop to think about. When I telnet in... It works at expected! But I don't use telnet. I use Hummingbird to make a xwindows connection. Here's the command used to make that connection.
/usr/openwin/bin/xterm -bg black -fg yellow -sb -title SUN01--172.16.25.12-- -geo 110x30
When I login using this method I don't get any output from those commands and the set -o vi doesn't work till entered from the command line.
Reply With Quote
  #12  
Old 12-28-2006
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
The xterm man page says:

Quote:
-ls This option indicates that the shell that is started in the xterm window be a login shell (i.e. the first character of argv[0] will be a dash, indicating to the shell that it should read the user's .login or .profile).
Reply With Quote
  #13  
Old 12-29-2006
Registered User
 

Join Date: Dec 2006
Location: dallas tx
Posts: 43
Thanks Perderabo !!! That did it. No wonder I couldn't figure it out. I was looking in the wrong place all the time... New xterm line is...
/usr/openwin/bin/xterm -ls -bg black -fg yellow -sb -title SUN01--172.16.25.12-- -geo 110x30
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0