1844125 Members
2732 Online
110227 Solutions
New Discussion

editor problem

 
suryanarayana_1
Occasional Advisor

editor problem

We have 16 rp2470 servers.Some of the servers have environment variable EDITOR by default.But some of servers doesn't have this variable.All the servers are running with HP_UX 11i.What could be the problem
6 REPLIES 6
Paula J Frazer-Campbell
Honored Contributor

Re: editor problem

Hi

Different install levels ?

Different patch levels ??

Paula
If you can spell SysAdmin then you is one - anon
Massimo Bianchi
Honored Contributor

Re: editor problem

Hi,
as far as i know, one should manually set the EDITOR variable, just to use the history in root account.

So it is propable that where you have the variable, people inserted it in the /etc/profile or in the .profile of the user.

Just a thought.

HTH,
Massimo
James R. Ferguson
Acclaimed Contributor

Re: editor problem

Hi:

No doubt no value was ever established for the variable. Usually you would do this in $HOME/.profile for the Posix and Ksh shells, for instance.

Regards!

...JRF...
Paul Sperry
Honored Contributor

Re: editor problem

This is usually set in the /home/user/.profile file.

EDITOR=vi
export EDITOR

you will have to edit existing users
and I would add the above to the /etc/skel/.profile so that new users
will get the env.
Caesar_3
Esteemed Contributor

Re: editor problem

Hello!

Could be that some one changed it or replace
the enviroment files with other.
Just set the variable to what you like
and go on.

Caesar
suryanarayana_1
Occasional Advisor

Re: editor problem


Hi,

Thanks alot for your replies.But we have installed all our servers with Jun2002 CD and same patch level.I have seen all servers have EDITOR entry in /etc/skel/.profile.In some of the servers by default EDITOR entry is there in environment variables and in some od the servers I have put the entry in /etc/profile.But I would like to know what could be the problem.Thank you.