|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
That's a 15-gigabyte script file..?
. How much memory do you have? |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Basically it is an shared archive.... I know bad choice but is it failing for memory? physical memory is around 3 GB.....
|
|
#4
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
If I recall correctly, HP sometimes shipped support files in the form shell archives.
|
| Sponsored Links | |
|
|
#7
|
||||
|
||||
|
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 | ||
|
![]() |
| Tags |
| hp-ux, shar |
| Thread Tools | Search this Thread |
| 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 |
|
|