Unix/Linux Go Back    

Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

/usr/bin/cut not working with largefiles on Solaris 10


Thread Tools Search this Thread Display Modes
Old Unix and Linux 04-04-2006
wottie wottie is offline
Registered User
Join Date: Apr 2006
Last Activity: 5 April 2006, 10:09 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
/usr/bin/cut not working with largefiles on Solaris 10

I have a person running a perl script that is parsing > 2G log files and pipes to cut -d " " -f 1,6,7,8...
The script itself is in a nfs mounted home directory. It runs fine when started from a solaris 8 box but fails after about 400 lines when started from the solaris 10 box. The solaris 8 box is old and slow so the use of the solaris 10 box is desired.
Additional info: if the script is run without the pipe to cut, you see the thousands of lines scrolling. If the script is run with a pipe to head or wc, it works as expected. Only the /usr/bin/cut seems to truncate the output. The user has tried various parameters with the pipe to cut with the same result.
The man pages indicate that cut should be largefile aware.
Any suggestions/idea are greatly appreciated.
Sponsored Links
Old Unix and Linux 04-04-2006
Perderabo's Unix or Linux Image
Perderabo Perderabo is offline Forum Advisor  
Unix Daemon (Administrator Emeritus)
Join Date: Aug 2001
Last Activity: 26 February 2016, 12:31 PM EST
Location: Ashburn, Virginia
Posts: 9,930
Thanks: 64
Thanked 471 Times in 271 Posts
These must be very long lines if you suspect 400 of them blew a 2 GB limit. cut may not work with super long input lines. What does "fail" mean? Any error message? Exit code? Does "cut -c 2-" also fail? Send the output of the script into a file and stop after you get a few hundred lines. Try your cut command with this data file. (By the way, post your cut command. Without the ellipsis.)

cut -d " " -f 1,6,7,8... < datafile

Does this fail? After 400 lines? Remove first 399 lines from file. Does it fail at line 2? Isolate line 2 and post it.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
set -o vi not working in Solaris 9 robbien UNIX for Dummies Questions & Answers 4 06-22-2010 11:37 AM
Executable compiled on solaris 10 not working on solaris 9 ash_bit2k2 Solaris 4 05-20-2010 09:59 AM
gcc not working on Solaris 10 miltony123 Solaris 2 03-04-2009 01:06 AM
Network not working on Solaris 10 dn100 Solaris 7 02-11-2009 02:28 AM

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