![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 11:06 AM |
| 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 08:43 AM |
| changed .profile but didnt ./.profile, yet reflected changes | yls177 | UNIX for Dummies Questions & Answers | 4 | 12-05-2002 07:21 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
.profile problem using set -o vi
The “set –o vi” command won’t run in the .profile. WHY?
This has me puzzled as the problem seems to be too simple, but can’t figure it out. Here's the info... Running… Generic sun4u sparc SUNW,Ultra-5_10 K shell Here's the .profile # Copyright (c) 2001 by Sun Microsystems, Inc. # All rights reserved. stty istrip stty erase ^H NDMAPICFG=/home/user01/cdunix/ndm/cfg/cliapi/ndmapi.cfg export NDMAPICFG PATH=/usr/bin:/usr/local/bin/:/usr/ucb:/etc:/home/user01/cdunix/ndm/bin:. export PATH set -o vi So why is it not taking the set command in the .profile? Last edited by jimmyc; 12-21-2006 at 11:54 AM. |
| Forum Sponsor | ||
|
|
|
|||
|
Output from Perderabo's request:
ps -f UID PID PPID C STIME TTY TIME CMD user01 6321 6320 0 06:25:43 syscon 0:00 ksh user01 6325 6321 0 06:25:54 syscon 0:00 ps -f 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 off viraw off xtrace off $ 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 See when the .profile runs it doesn't execuite the set -o vi. Only after I'm at the command prompt does it work. My home dir is fine I run lots of other scripts, pickup and drop off file from it. The only thing I can think of is... During the execuition of the .profile, if it spawns another k-shell runs the set -o vi there, then closed the shell, I would never see it. |
|||
| Google The UNIX and Linux Forums |