- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- VI editor problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 10:08 AM
11-04-2004 10:08 AM
When I try to open a file with VI, does not open the file and send this message:
*A copy of an editor buffer of your file "./pant.xxx"
was saved when the editor was killed.
This buffer can be retrieved using the "recover" command of the editor.
An easy way to do this is to give the command "ex -r ./pant.xxx".
This works for "edit" and "vi" also.*
Any clarification would be nice.
Thank you in advance.
Alara
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 10:10 AM
11-04-2004 10:10 AM
Re: VI editor problem
This recovery helps protect a user from loss of changes.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 10:11 AM
11-04-2004 10:11 AM
Re: VI editor problem
A temporary filelocation should be indicated so you can grab it. You may be prompted if you wish to recover the file.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 10:28 AM
11-04-2004 10:28 AM
Re: VI editor problem
But I have this problem when I edit any file, I have to retry 1 to 3 times and then the file open.
Any suggestions on making this work?
Regards
AL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 10:36 AM
11-04-2004 10:36 AM
Solutionerase the file its asking you to recover.
rm
Then it should stop happening.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 12:04 AM
11-05-2004 12:04 AM
Re: VI editor problem
This is the scenario I know. A user edits a file using vi. They make changes to it. Then they never save the changes or log off or anything. They just drive home for the day.
A batch (cron) process comes along and kills any user logins that are idle for over 4 hours. Or a network process times out the session, effectively killing it. Somehow the vi session is killed. The usual reason is the person was idle for hours.
The user comes back into work the next day, and gets "*A copy of an editor buffer of your file "./pant.xxx"
was saved when the editor was killed.
This buffer can be retrieved ...."
So the moral is:
When you edit a file, and make changes, save the changes.
When you are done working, log off.
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 01:02 AM
11-05-2004 01:02 AM
Re: VI editor problem
But there is something that seems strange to me....
"You try to get into the file a few times, before it lets you in."
That means you are actively trying to modify the file. Yet you are not able to get in.
Is this file being edited by someone else?
Is this file being deleted every 2 seconds?
Is the directory the file is in being moved?
Is this file a database file being accessed by large numbers of people?
How big is the file? If it is small enough, copy it to your home directory. Use view instead of vi.
Ah one more question. When you are in the file, editing it, can you exit successfully?
Oh one more.....When vi runs, a copy of the file in question goes somewhere under the tmp directory. Is /tmp full? Do you have permission to use the /tmp directory?
Yes. even another question for you....Are you editing a FILE? Perhaps it's a pipe, or device, or something that's NOT editable.
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 01:03 AM
11-05-2004 01:03 AM
Re: VI editor problem
Try the rm and if there are any permission problems you will know.
Make sure vi is ok
ll -d /usr/bin/vi
-r-xr-xr-t 6 bin bin 233472 Oct 27 1997 /usr/bin/vi
If the t is missing can give odd things
see man chmod
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 02:46 AM
11-05-2004 02:46 AM
Re: VI editor problem
I just delete the temporary file ./pant.xxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 04:03 AM
11-05-2004 04:03 AM
Re: VI editor problem
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=732974
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 04:39 AM
03-31-2005 04:39 AM