Wednesday, August 21, 2013

[Using open mode] VI editor + HP UX

Friends,

Got an error yesterday while opening VI editor. it was giving an error of [Using Open Mode]. did some googling for it and found below solution. it worked. I donot know and have not tested if it works on other flavors of UNIX like solaris, linux, etc.


#

Message while opening VI

 

# vi /etc/rc.config.d/netconf

I don't know what kind of terminal you are on - all I have is 'unknown'.

[Using open mode]

"/etc/rc.config.d/netconf" [Read only] 169 lines, 6659 characters

# netconf:  configuration values for core networking subsystems

:q!

#

* it was not allowing to save the opened file.

below solution worked.

# TERM=vt100
# export TERM

If the error still persit on next login session. then put above mentioned in /etc/profile or profile file of user.



Love Sharing
Amit Chopra

No comments: