Sponsored Content
Operating Systems Solaris Script fails when generated output file reaches a particular size Post 302535920 by agama on Saturday 2nd of July 2011 09:26:41 PM
Old 07-02-2011
SEM_VALUE_MAX probably has nothing to do with it since this constant relates to semaphores.

My gut feeling is that the programme that is creating the output file, being called by the script, wasn't compiled with the necessary large file support. If the programme writing the file is one you've created then rebuilding it with large file support enabled is all that should be necessary. For a programme written in C, you may need to add one or more of these options from the command line:
Code:
-D_USE_LARGEFILES
-D_FILE_OFFSET_BITS=64 
-D_LARGEFILE64_SOURCE=1

If the failing programme isn't yours, then you'll need to hunt for a version that is large file aware.

It's also possible that the filesystem being written to was mounted with a 'nolargefiles' option which limits a file to 2GiB. Can you create a 3GiB file manually on the filesystem? If so, then it's the programme and not the filesystem.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need a script to Append date to generated .txt file

Hi, Can anyone plz share their experience with - Building shell script to append the file with date in following format- Filename_MMDDYYYY.txt Thanks in advance (2 Replies)
Discussion started by: prince_of_focus
2 Replies

2. Shell Programming and Scripting

compare file size from a output file from a script

Hi guys, firstly I'm working on SunOS 5.10 Generic_125100-10 sun4u sparc SUNW,Sun-Fire-V240 I've made a script to compress two directory and then send them to an other server via ftp. This is working very well. Inside theis script I decide to log usefull data for troubleshooting in case of... (7 Replies)
Discussion started by: moustik
7 Replies

3. Shell Programming and Scripting

shPID file generated from shell script

I have a ksh script that runs a sqlplus script. Every time I run the ksh script it generates a log file like it should and a file called shPID (sh47398.1) with the text of the sql script. Why is it doing this? It is the only ksh script that I have that does this. thanks. (0 Replies)
Discussion started by: djehresmann
0 Replies

4. Shell Programming and Scripting

Script to Grep column 3 from csv file generated yesterday

Hello, Can any one please assist how to scirpt it: Every day a new log file is create and I want to process only the one generated yesterday and get the data of column 3 and 6. For example today's date is 24 then I want to get the data of log file created on 23rd. Log Files in... (7 Replies)
Discussion started by: sureshcisco
7 Replies

5. Shell Programming and Scripting

Script to read file size and send email only if size > 0.

Hi Experts, I have a script like $ORACLE_HOME/bin/sqlplus username/password # << ENDSQL set pagesize 0 trim on feedback off verify off echo off newp none timing off set serveroutput on set heading off spool Schemaerrtmp.txt select ' TIMESTAMP COMPUTER NAME ... (5 Replies)
Discussion started by: welldone
5 Replies

6. Shell Programming and Scripting

Script for deleting files and directories when the file system reaches the threshold

Hi Can someone assist in writing a script. I have a filesystem named /sybase in my aix lpar. When this filesystem becomes 94% full all the files and directories under /sybase/logs should be deleted immediately. :confused: (7 Replies)
Discussion started by: newtoaixos
7 Replies

7. Shell Programming and Scripting

Output after a perl script gives a file with size zero.

Hi, I have a unix shell script which generates a flat file after connecting to Teradata servers to fetch tables and views and also picks up modified unix scripts from the specified paths. Later on the script calls a perl script to assign a value based on the type of object in the flat file which... (2 Replies)
Discussion started by: yohasini
2 Replies

8. UNIX for Advanced & Expert Users

Script to rename file that was generated today and which starts with date

hello, can someone please suggest a script to rename a file that was generated today and filename that being generated daily starts with date, its a xml file. here is example. # find . -type f -mtime -1 ./20130529_4995733057260357019.xml # this finename should be renamed to this format.... (6 Replies)
Discussion started by: bobby320
6 Replies

9. Shell Programming and Scripting

Generated csv files size are more than 3GB

Hi i have a shell script which will generate the CSV files from a group of XML files. but the XML files are in 50K plus. so the generated CSV files are more then 4 GB in size. is there any way i can take care in the scripting itself to make the shell script efficent to write data into CSV... (1 Reply)
Discussion started by: sunny13392
1 Replies

10. Shell Programming and Scripting

Shell script to call Oracle archive backup script when file system reaches threshold value

Hello All, I need immediate help in creating shell script to call archivebkup.ksh script when archive file system capacity reaches threshold value or 60% Need to identify the unique file system that reaches threshold value. ex: capacity ... (4 Replies)
Discussion started by: sasikanthdba
4 Replies
ValidateFile(3pm)					User Contributed Perl Documentation					 ValidateFile(3pm)

NAME
XMLTV::ValidateFile - Validates an XMLTV file DESCRIPTION
Utility library that validates that a file is correct according to http://wiki.xmltv.org/index.php/XMLTVFormat. EXPORTED FUNCTIONS
All these functions are exported on demand. LoadDtd Load the xmltv dtd. Takes a single parameter which is the name of the xmltv dtd file. LoadDtd must be called before ValidateFile can be called. ValidateFile Validate that a file is valid according to the XMLTV dtd and try to check that it contains valid information. ValidateFile takes a filename as parameter and optionally also a day and an offset and prints error messages to STDERR. ValidateFile returns a list of errors that it found with the file. Each error takes the form of a keyword: ValidateFile checks the following: notwell The file is not well-formed XML. notdtd The file does not follow the XMLTV DTD. unknownid No channel-entry found for a channelid that is used in a programme-entry. duplicatechannel More than one channel-entry found for a channelid. noprogrammes No programme entries were found in the file. channelnoprogramme There are no programme entries for one of the channels listed with a channel-entry. invalidid An xmltvid does not look like a proper id, i.e. it does not match /^[-a-zA-Z0-9]+(.[-a-zA-Z0-9]+)+$/. noid A programme-entry without an id was found. emptytitle A programme entry with an empty or missing title was found. emptydescription A programme entry with an empty desc-element was found. The desc-element shall be omitted if there is no description. badstart A programme entry with an invalid start-time was found. badstop A programme entry with an invalid stop-time was found. badepisode A programme entry with an invalid episode number was found. badiso8859 The file is encoded in iso-8859 but contains characters that have no meaning in iso-8859 (or are control characters). If it's iso-8859-1 aka Latin 1 it might be some characters in windows-1252 encoding. badutf8 The file is encoded in utf-8 but contains characters that look strange. 1) Mis-encoded single characters represented with [EF][BF][BD] bytes 2) Mis-encoded single characters represented with [C3][AF][C2][BF][C2][BD] bytes 3) Mis-encoded single characters in range [C2][80-9F] If no errors are found, an empty list is returned. BUGS
It is currently necessary to specify the path to the xmltv dtd-file. This should not be necessary. COPYRIGHT
Copyright (C) 2006 Mattias Holmlund. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. perl v5.14.2 2011-06-22 ValidateFile(3pm)
All times are GMT -4. The time now is 04:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy