unable to open a .log(4MB) file in vi


 
Thread Tools Search this Thread
Operating Systems Solaris unable to open a .log(4MB) file in vi
# 8  
Old 11-28-2007
Quote:
Originally Posted by venkatramana
am unable to open a .log file which is 4MB size.
Is it taking time to open the file or vi displays that it is unable to open file ?

Probably to check that, you could press ctrl-c after opening the file in vi.

That way, partially file will be displayed in the editor.
# 9  
Old 11-29-2007
Quote:
Originally Posted by DukeNuke2
please clean your swap filesystem! it is full!

swap 5.9G 168K 5.9G 1% /var/run

vi needs space in /var/run. the best thing to do is (if possible) a reboot (init 6). if you can't do a reboot, delete unneeded files in /tmp.

hth,
DN2
IMHO, swap is only 1% used not 1% remaining. So, doesn't look like a swap issue.

venkatramana - Please post the error you are encountering in detail so that it can be persued further.

Thanks,
enc
# 10  
Old 11-29-2007
error whch i encounterd.....

first of all thx 4 ur kind responce...
when i open the file by vi editor..
again it is displaying the file name with
double inverted cotes...
when i hit enter,it is showing "the file is too big to open"...
# 11  
Old 11-29-2007
This error occurs when the file size is greater than 2GB which vi cannot handle. But according to you the file is 4MB in size.

Do a du -h <your_file_name> to see its correct size.

Does vim help?
# 12  
Old 11-29-2007
then how to open....

then how to open a file which is
greater than 2gb
# 13  
Old 11-29-2007
Quote:
Originally Posted by encrypted
IMHO, swap is only 1% used not 1% remaining. So, doesn't look like a swap issue.

venkatramana - Please post the error you are encountering in detail so that it can be persued further.

Thanks,
enc
wooops Smilie... my fault...
# 14  
Old 11-29-2007
already posted..

see the title of "error which i encounterd"..
i gave a wrong info that file is 4mb,
it's 4 gb.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Unable to open input kickstart file curl#37

Hi, Getting the below error while installing from ks.cfg unable to open input kickstart file curl#37 Couldn't open file /tmp/swappart Here am trying to include /tmp/swappart file from pre section under disks and partition section. Dont know where exactly am doing wrong My kickstart file... (3 Replies)
Discussion started by: Sumanthsv
3 Replies

2. Shell Programming and Scripting

Unable to open a file in perl

Not able to open a file using this code why not? use strict; use warnings; my $file = "verInfo.txt"; unless(open FILE, $file) { # Die with error message # if we can't open it. die "\nUnable to open $file\n"; } my $line = <FILE>; print $line; close FILE; (7 Replies)
Discussion started by: srijith
7 Replies

3. Red Hat

unable to open / create any file in vi

Hi, I am unable to create/open any file in vi editor for normal user, though using root I am able to create/open any file, using redhat 5.5, example vi test it showing nothing after entering command (9 Replies)
Discussion started by: manoj.solaris
9 Replies

4. Shell Programming and Scripting

PCC-F-NOERRFILE, unable to open error message file

Hi, I was compiling few C programs in the unix server and getting the following error message rm: /home/a0xxx28/AVT/SEEDLIBRARYDB/LIB/*.a non-existent proc MODE=ANSI CODE=ANSI_C INCLUDE=/home/a0xxx28/PVT/SEEDLIBRARYDB/INCLUDE INCLUDE=/home/a0xxx28/PVT/SEEDLIBRARY/INCLUDE ... (1 Reply)
Discussion started by: kavithakuttyk
1 Replies

5. UNIX for Advanced & Expert Users

Unable to delete an open file

I am working on a unix server. I killed all the processes with my id on the machine. After that I tried to delete a file, I got an error:- file not removed.Text File busy. Deletion of directory prompted:- Directory not empty. Can anyone help me regarding this...??? Thanks, Vikas (11 Replies)
Discussion started by: vikasrout
11 Replies

6. AIX

Probably an easy SMIT question- "Unable to open temp file"

Hi All, Can't find any documentation on the web for this anywhere, except about three web pages that are in Chinese. When I enter SMIT on this box, I get ERROR MESSAGE: Unable to open temp file I suspected smit.log, but it is universal readable, writeable by root, and I am root.... (6 Replies)
Discussion started by: jeffpas
6 Replies

7. UNIX for Dummies Questions & Answers

Unable to open .sql file

Hi , I am running Oracle 8.1.7 on HP-UX B.11.00. Recently I have upgraded Oracle from 8.0.6. to 8.1.7. Almost all the shell script has the Sqlplus as sqlplus -s @/apps/prod/sql/xxxx.sql > /apps/prod/log/xxxx.out . However I receive the error SP2-0310: unable to open file... (2 Replies)
Discussion started by: Ananth.p
2 Replies

8. UNIX for Dummies Questions & Answers

SP2-0310 unable to open file

Hi , We are running Oracle 8.1.7 on HP-UX B.11.00. Recently we have upgraded Oracle from 8.0.6. to 8.1.7. Almost all the shell script we use has the Sqlplus as sqlplus -s @/apps/prod/sql/xxxx.sql > /apps/prod/log/xxxx.out . However we receive the error SP2-0310: unable to open file... (2 Replies)
Discussion started by: guru_2007
2 Replies

9. UNIX for Advanced & Expert Users

PCC-F-NOERRFILE, unable to open error message file, facility PR2

I am trying to build a tuxedo server which in turn depends on several Pro*C programs. I am doing it on HP-UX system. It looks to me that the ORACLE_HOME is set properly. But I am getting error message when trying to build. PCC-F-NOERRFILE, unable to open error message file, facility PR2 exit... (1 Reply)
Discussion started by: asutoshch
1 Replies

10. UNIX for Dummies Questions & Answers

UNIX for 386 SX 4MB RAM

How, where from and which UNIX or LINUX can I download so that I can use it normally working on 386 SX 4MB RAM. I want to use only its basic functions and C and C++ compiler on it. I need it for my studies. P.S I need a stable UNIX or LINUX including a full set of functions of C... (4 Replies)
Discussion started by: Traiancho
4 Replies
Login or Register to Ask a Question