1830168 Members
18847 Online
109999 Solutions
New Discussion

Problem with vi

 
SOLVED
Go to solution
William Pribble
Frequent Advisor

Problem with vi

I am unable to vi any file on the system, whether I am trying to edit an existing file or trying to create a new file.

Example: vi /etc/resolv.conf

"/dba_wrk31/tmp" No such file or directory.

This is a brand new server that was just Ignited. There is no problem with vi on the server where the tape was made.

Thanks
6 REPLIES 6
Ravi_8
Honored Contributor

Re: Problem with vi

Hi,

create a tmp directory under /dba_wrk31 file system
never give up
melvyn burnard
Honored Contributor

Re: Problem with vi

Is this limited to just one user? or do all users have this issue? and root?

Vi needs space in a tmp file system to be able to work properly, and your error does say there is no such file or directory so maybe there is a prob;em wiht your tmp space?
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Massimo Bianchi
Honored Contributor

Re: Problem with vi

Hi,
vi uses the /tmp to create file for editing.

It looks like you have some strange settings that redirects /tmp -> /dba_wrk31/tmp

Is uppose that this directory does exists on the source server, but not here, is it true ?

Maybe creating it will fix everything.

First check could be:
- alias
- environtment variables

Massimo

Steven E. Protter
Exalted Contributor

Re: Problem with vi

/tmp or /var/tmp is full.

Clear some space and try again.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tim Adamson_1
Honored Contributor
Solution

Re: Problem with vi

Hi Elaine,

Check the value of your TMPDIR environment variable.

echo $TMPDIR

I bet it is set to the directory you specify in your post.

If it is, either unset it or set it to something that exists.


Cheers!!!
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
James R. Ferguson
Acclaimed Contributor

Re: Problem with vi

Hi Elaine:

One way to create this error is to have the environmental variable TMPDIR set to '/dba_wrk31/tmp' (in this case). To verify, examine your environment with:

# env|grep TMPDIR

If set, it'r probably done in your $HOME/.profile.

Regards!

...JRF...