Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-28-2012
Registered User
 
Join Date: May 2012
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Error Can not open file

Hi Gurus

I am getting below error while opening a shar file



Code:
dybip15 $ ls -lrt
total 41851634
----------   1 prdur      prdur          122 Jan  1  1970 @LongLink
-rwxr-x---   1 prdur      prdur      2039152640 May  3 22:03 Hemel_CAR_data.tar
-rwxr-x---   1 prdur      prdur      3034818560 May  4 12:56 Skyport_CAR_data.tar
-rw-r--r--   1 prdur      prdur      798474240 May  9 13:42 UDRG-output-and-config.tar
drwxr-x---   3 prdur      prdur         1024 May 10 13:28 udrg
drwxr-x---   3 prdur      prdur           96 May 10 13:28 locid
drwxr-x---   3 prdur      prdur         1024 May 10 13:29 udrgr
-rwxr-xr-x   1 prdur      prdur      15555411132 May 28 15:38 revenueassurance.shar
drwxr-x---   3 prdur      prdur         1024 May 28 15:49 udrgc
-rw-r-----   1 prdur      prdur       132790 May 28 16:33 test.shar
drwxr-x---   2 prdur      prdur         1024 May 28 16:46 geneva
dybip15 $ sh revenueassurance.shar
sh: revenueassurance.shar: Cannot find or open the file.

The file is there and owned by my own user.
Sponsored Links
    #2  
Old 05-28-2012
Mead Rotor
 
Join Date: Aug 2005
Location: Saskatchewan
Posts: 16,371
Thanks: 490
Thanked 2,534 Times in 2,417 Posts
That's a 15-gigabyte script file..? . How much memory do you have?
Sponsored Links
    #3  
Old 05-28-2012
Registered User
 
Join Date: May 2012
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Basically it is an shared archive.... I know bad choice but is it failing for memory? physical memory is around 3 GB.....
    #4  
Old 05-28-2012
Mead Rotor
 
Join Date: Aug 2005
Location: Saskatchewan
Posts: 16,371
Thanks: 490
Thanked 2,534 Times in 2,417 Posts
Some systems only allow special 64-bit executables to open files larger than 4 gigs, I suspect your OS may be one of them.
Sponsored Links
    #5  
Old 05-28-2012
methyl methyl is offline Forum Staff  
Moderator
 
Join Date: Mar 2008
Posts: 6,388
Thanks: 286
Thanked 668 Times in 640 Posts
It's not a shared archive, its a shell archive.
See man shar . It's one of those commands that used to be taught on training courses and nobody ever uses. There are much better ways of moving data.

What you you get for:

Code:
ls -lad revenueassurance.shar

Please check your directory does not contain any files with funny characters. The sed is designed to make funny characters visible.

Code:
ls -la | sed -n l

I too would be very surprised if a shar file can exceeed 2 Gb .
Also your sh must be a proper Bourne Shell.
What Operating System and version is this?

What was the command used to create the .shar file?
Sponsored Links
    #6  
Old 05-28-2012
Scrutinizer's Avatar
Moderator
 
Join Date: Nov 2008
Location: Amsterdam
Posts: 7,338
Thanks: 143
Thanked 1,754 Times in 1,591 Posts
If I recall correctly, HP sometimes shipped support files in the form shell archives.
Sponsored Links
    #7  
Old 05-28-2012
Scrutinizer's Avatar
Moderator
 
Join Date: Nov 2008
Location: Amsterdam
Posts: 7,338
Thanks: 143
Thanked 1,754 Times in 1,591 Posts
This error message is probably coming from a read statement inside the .shar file. It probably writes a file somewhere that it tries to read afterwards.. Perhaps it tries to write in an tmp directory and there is not enough room, or perhaps one needs to be in user writeable directory before unshar'ing the file? You would need to look inside the .shar file to be sure...
Sponsored Links
Closed Thread

Tags
hp-ux, shar

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Newbie.. Find if a file exists and open, if not create the desired file.. Byrang Shell Programming and Scripting 5 05-10-2011 03:20 AM
Before I delete any file in Unix, How can I check no open file handle is pointing to that file? kchinnam Solaris 12 10-06-2010 02:30 PM
libodbc.so.1: cannot open shared object file: No such file or directory govindts Red Hat 1 09-20-2010 06:51 PM
cannot set user id: Resource temporarily unavailable (not open file/open process related) Katahdin Red Hat 0 04-26-2010 02:57 PM
file activity (open/closed) file descriptor info using KORN shell scripting Gary Dunn UNIX for Dummies Questions & Answers 3 06-07-2004 01:54 PM



All times are GMT -4. The time now is 01:04 AM.