- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: opening a file with vi.. having a weird proble...
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
05-10-2005 07:14 AM
05-10-2005 07:14 AM
fifrux27 /usr/local/bin>vi unmountcd.sh
"/u05/temp_upgrade" No such file or directory
the u05/temp_upgrade is an old file that was just deleted.
Any ideas on what I need to do.
I get this same error on every file i try to open with vi.
Thanks,
Mike
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 07:21 AM
05-10-2005 07:21 AM
Solutionmount /var
try again.
If it says its corrupt:
fsck -F vxfs -o full /dev/vg00/lvol7
Use a real logical volume name instead of the one I used. Check /etc/fstab for the right one.
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
05-10-2005 07:24 AM
05-10-2005 07:24 AM
Re: opening a file with vi.. having a weird problem all of a sudden
should return:
/usr/bin/vi
ls -l /usr/bin/vi
Should return:
-r-xr-xr-t 6 bin bin 249856 May 21 2002 /usr/bin/vi
then post the output of
what `which vi`
Are you root?
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 07:24 AM
05-10-2005 07:24 AM
Re: opening a file with vi.. having a weird problem all of a sudden
Anything else you can think of?
I've never seen this before
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 07:27 AM
05-10-2005 07:27 AM
Re: opening a file with vi.. having a weird problem all of a sudden
i did your commands too... below is output
fifrux27 />ls -l /usr/bin/vi
-r-xr-xr-t 6 bin bin 241664 Nov 14 2000 /usr/bin/vi
fifrux27 />which vi
/usr/bin/vi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 07:36 AM
05-10-2005 07:36 AM
Re: opening a file with vi.. having a weird problem all of a sudden
ll unmountcd.sh
file unmountcd.sh
ll /var/tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 07:40 AM
05-10-2005 07:40 AM
Re: opening a file with vi.. having a weird problem all of a sudden
ls -l /usr/local/bin/unmountcd.sh
alias
what `which vi`
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 07:41 AM
05-10-2005 07:41 AM
Re: opening a file with vi.. having a weird problem all of a sudden
/usr/bin/vi /usr/local/bin/unmountcd.sh
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 07:42 AM
05-10-2005 07:42 AM
Re: opening a file with vi.. having a weird problem all of a sudden
Please post the output of these three cmds:
file /usr/bin/vi
what /usr/bin/vi |head
env
whoami
Thanks,
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 07:47 AM
05-10-2005 07:47 AM
Re: opening a file with vi.. having a weird problem all of a sudden
fifrux27 />uname -a
HP-UX fifrux27 B.11.11 U 9000/800 file 1311 unlimited-user license
fifrux27 /> file /usr/bin/vi
file: cannot open
/usr/bin/vi: PA-RISC1.1 shared executable dynamically linked
fifrux27 />what /usr/bin/vi | head
/usr/bin/vi:
$Revision: B.11.11_LR
Fri Oct 27 00:57:19 PDT 2000 $
$ B.11.11_LR Oct 27 2000 00:57:16 $
fifrux27 />env
_=/usr/bin/env
TMPDIR=/u05/temp_upgrade
MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/u
sr/local/man/%L:/usr/local/man:/opt/upgrade/share/man/%L:/opt/upgrade/share/man:
/opt/pd/share/man/%L:/opt/pd/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/o
pt/pd/share/man/%L:/opt/pd/share/man:/opt/resmon/share/man:/opt/hparray/share/ma
n/%L:/opt/hparray/share/man:/opt/graphics/common/man:/opt/scr/share/man:/usr/dt/
share/man://opt/perl/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/aud
io/share/man:/opt/ansic/share/man/%L:/opt/ansic/share/man:/opt/langtools/share/m
an/%L:/opt/langtools/share/man:/opt/image/share/man:/opt/imake/man:/opt/perf/man
/%L:/opt/perf/man:/opt/cobol/cobdir/man:/opt/hpnpl//man
PATH=/usr/local/bin:/usr/sbin:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/
bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/usr/bin/X
11:/usr/contrib/bin/X11:/opt/pd/bin:/opt/resmon/bin:/opt/graphics/common/bin:/op
t/scr/bin:/opt/atok/bin:/opt/egb/bin://opt/perl/bin:/usr/sbin/diag/contrib:/opt/
vje/bin:/opt/ignite/bin:/opt/langtools/bin:/opt/imake/bin:/opt/perf/bin:/opt/cob
ol/bin:/opt/hpnpl//bin:/sbin:/home/root
COLUMNS=80
EDITOR=vi
LOGNAME=root
ERASE=^H
PS1=$NODE $PWD>
SHELL=/sbin/sh
NODE=fifrux27
HOME=/root
TERM=hp
PWD=/
TZ=EST5EDT
LINES=24
fifrux27 />whaomi
sh: whaomi: not found.
fifrux27 />whoami
root
fifrux27 />
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 07:51 AM
05-10-2005 07:51 AM
Re: opening a file with vi.. having a weird problem all of a sudden
long shot: please post the output of
# alias
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 07:54 AM
05-10-2005 07:54 AM
Re: opening a file with vi.. having a weird problem all of a sudden
Sorry for the typo!
Does it really do that 'cannot open' before returning the file details when you execute
file /usr/bin/vi
?
Seems like the shell is misbehaving a bit, can you also try
sh
vi anyfile
Cheers,
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 08:02 AM
05-10-2005 08:02 AM
Re: opening a file with vi.. having a weird problem all of a sudden
TMPDIR=/u05/temp_upgrade
The question is:
Does "/u05/temp_upgrade" exists?
Two solutions:
1. Create /u05/temp_upgrade
2. export TMPDIR=/var/tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 08:03 AM
05-10-2005 08:03 AM
Re: opening a file with vi.. having a weird problem all of a sudden
Tyr this:
# whence vi
This will show whether you are using an alias for vi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 08:06 AM
05-10-2005 08:06 AM
Re: opening a file with vi.. having a weird problem all of a sudden
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 08:07 AM
05-10-2005 08:07 AM
Re: opening a file with vi.. having a weird problem all of a sudden
I reckon you've got it there!
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 05:26 PM
05-10-2005 05:26 PM