04-18-2008
You can have a non sparse file filled with nulls with which no (useful) data would be overwritten.
There is no simple way to detect sparse files outside the one I already described.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all!
I have found a new home, this place is great!
I have been searching for days to find a way to set a max size for a log.txt file using a cron job exicuting a shell script. Is it possible for a script to remove older entries in a log file to maintain a limited file size? If so,... (5 Replies)
Discussion started by: v-rod
5 Replies
2. Shell Programming and Scripting
I have a variable in a shell script which is more than 80 characters.
1) I log into SQL plus and populate a variable using 3 queries appended by ,' comma'.
ORAINFO=`sqlplus -s << !
/ as sysdba
set feedback off
set heading off
select LOG_MODE... (2 Replies)
Discussion started by: yerra
2 Replies
3. Solaris
hi all,
in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders...
please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies
4. AIX
Does anyone know how to set PP (Physical Partition) size on rootvg when installing AIX OS from scratch (via CD or NIM installation)? (7 Replies)
Discussion started by: pdtak
7 Replies
5. Shell Programming and Scripting
Hi All...
is the below command be modified in sucha way that i can get the file size along with the name and path of the file
the below command only gives me the file location which are more than 100000k...but I want the exact size of the file also..
find / -name "*.*" -size +100000k
... (3 Replies)
Discussion started by: rpraharaj84
3 Replies
6. Solaris
Hi,
We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB?
I have seen this before we an Oracle temp file... (6 Replies)
Discussion started by: sparcman
6 Replies
7. Shell Programming and Scripting
#!/bin/sh
##########################################################################################################
#This script is being used for AOK application for cleaning up the .out files and zip it under logs directory.
# IBM
# Created
#For pdocap201/pdoca202 .out files for AOK
#1.... (0 Replies)
Discussion started by: mridul10_crj
0 Replies
8. Shell Programming and Scripting
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
9. Programming
Hi,
Can I find size of the file from size of the buffer written?
nbECRITS = fwrite(strstr(data->buffer, ";") + 1, sizeof(char), (data->buffsize) - LEN_NOM_FIC, fic_sortie);
Thank You :) (1 Reply)
Discussion started by: ezee
1 Replies
10. UNIX for Dummies Questions & Answers
I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms.
Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Discussion started by: jmgibby
2 Replies
LEARN ABOUT DEBIAN
net::hotline::fileinfoitem
Net::Hotline::FileInfoItem(3pm) User Contributed Perl Documentation Net::Hotline::FileInfoItem(3pm)
NAME
Net::Hotline::FileInfoItem - File object used internally by Net::Hotline::Client
SYNOPSIS
use Net::Hotline::FileInfoItem;
$file = new Net::Hotline::FileInfoItem;
$file->name("smile");
$file->comments("A happy file.");
...
DESCRIPTION
Net::Hotline::FileInfoItem is a simple class for storing and retrieving file information, You should never have to create your own
Net::Hotline::FileInfoItem objects when using Net::Hotline::Client. Getting and (to a lesser extent) setting attributes is all that should
be necessary.
CONSTRUCTION
new Creates a new Net::Hotline::FileInfoItem object with all attributes set to undef.
METHODS
All the Net::Hotline::FileInfoItem methods are simple attribute get/set routines. If given an argument, they set an attribute. In all
cases, they return the current value of the attribute.
comment TEXT
The file comments (as seen in the Mac OS Finder).
ctime NUM
The creation time of the file, given as a Mac OS native time value. Add the constant Net::Hotline::Constants::HTLC_MACOS_TO_UNIX_TIME
to it to change it to seconds since the Unix epoch.
creator TEXT
The file creator, given as a four-letter Mac OS creator code ("TTXT", "SIT!", etc.)
name TEXT
The file name.
icon
The file icon given as a four-letter code.
mtime NUM
The modification time of the file, given as a Mac OS native time value. Add the constant
Net::Hotline::Constants::HTLC_MACOS_TO_UNIX_TIME to it to change it to seconds since the Unix epoch.
ctime NUM
The creation time of the file, given as a Mac OS native time value. Add the constant Net::Hotline::Constants::HTLC_MACOS_TO_UNIX_TIME
to it to change it to seconds since the Unix epoch.
size NUM
The size of the file in bytes.
type TEXT
The file type, given as a four-letter Mac OS type code ("TEXT", "PICT", etc.), Net::Hotline::Constants::HTLC_INFO_FOLDER_TYPE for
folders, and Net::Hotline::Constants::HTLC_INFO_FALIAS_TYPE for folder aliases.
AUTHOR
John C. Siracusa (siracusa@mindspring.com)
COPYRIGHT
Copyright(c) 1999 by John Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
perl v5.10.1 2002-11-27 Net::Hotline::FileInfoItem(3pm)