09-25-2005
Here is what I used
if (size +10c filename)
I used this to search for files larger than 10kb, but it has errors when I run it.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there a way to find out the size of an array in sh shell script? Thanks. (1 Reply)
Discussion started by: trivektor
1 Replies
2. Shell Programming and Scripting
Hi,
I am writing a script which takes the input file name and concat as a new file by appending a "1" to the file name. However i am not able to get the size of this new file. I am not sure where i am going wrong. Please check the script and help me get this working.
#!/bin/sh ... (1 Reply)
Discussion started by: ragsnovel
1 Replies
3. Shell Programming and Scripting
Hi all,
I was a UNIX shell script that will check for the file size of each file and it should be re directed to a text file say filesize.txt
And if there are more than 10 0KB files then FTP should not happend and whenever there are less than 10 0KB files it should FTP the files.
Kindly help me... (1 Reply)
Discussion started by: Codesearcher
1 Replies
4. Shell Programming and Scripting
Hi All,
OS:AIX 64 bits using korn shell.
Requirement:
shell script to check file size greater than 50M and send mail alert.
Thanks for your time!
Regards, (3 Replies)
Discussion started by: a1_win
3 Replies
5. Shell Programming and Scripting
I have developed the following shell script. The idea was to create an alias to execute it and return the tablespaces and their sizes from an oracle database. When I execute is via the alias, I have issues.
So, here is the script first:
> cat ts_size.sh
#!/bin/ksh
xwhere=" "
xwild=" "... (8 Replies)
Discussion started by: desibabu
8 Replies
6. 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
7. Shell Programming and Scripting
How can i remove a file using shell script when its size exceeds 10MB. Given that file is located in different location to the shell script where it is running? (4 Replies)
Discussion started by: vel4ever
4 Replies
8. Shell Programming and Scripting
Hi
can some one please help me how i can get the output i require:
My text file "sample.txt" contains the text like below
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_fedora-lv_root
15G 2.6G 12G 19% /hari
Filesystem Size ... (3 Replies)
Discussion started by: harimhkr
3 Replies
9. Shell Programming and Scripting
Hi All, Looking for a quick LINUX shell script which can continuously monitors the flle size, report the process which is creating a file greater than certain limit and also kill that process. Can someone please help me on this? (4 Replies)
Discussion started by: vasavimacherla
4 Replies
10. UNIX for Beginners Questions & Answers
I wish to by pass a process if the file is over a certain size?
not sure this makes sense
current bit of the script below
#if we are bypAssing the OCR
if ; then
echo Bypassing HOTFOLDER OCR
HOT_FOLDER_DIR=$BATCH_POST_OCR_DIR;
potential change below? would this work would I need... (1 Reply)
Discussion started by: worky
1 Replies
LEARN ABOUT REDHAT
queue-pr
queue-pr(8) GNATS Administration Utilities queue-pr(8)
NAME
queue-pr - incoming mail control for GNATS
SYNOPSIS
queue-pr [ -q | --queue ] [ -r | --run ]
[ -f filename | --file=filename ]
[ -m kbytes | --max-size=kbytes ]
[ -d database | --database=database ]
[ -h | --help ] [ -V | --version ]
DESCRIPTION
`queue-pr -q' should run through a pipe(2V) via the mail aliases(5) mechanism to automatically place incoming bug reports in a queue direc-
tory for GNATS.
Run `queue-pr -r' via cron(8) to periodically empty the GNATS queue, filing new bug reports in the database.
Always use one of -q | --queue or -r | --run (but not both), in each call to queue-pr. These are mutually exclusive functions in order to
avoid collisions.
OPTIONS
-q, --queue
Accept standard input as an incoming mail message, placing this message in an incrementally numbered file in the database subdi-
rectory gnats-queue for future handling.
-r, --run Redirect files from the database subdirectory gnats-queue to file-pr(8) which files and creates index entries for each.
-f filename or --file=filename
Treat filename as input rather than reading from standard input (used with the --queue option).
-m kbytes, --max-size=kbytes
Do not process messages larger than kbytes kilobytes in size. Files larger than the limit are left for human intervention.
-d database or --database=databasename
Used with the --queue or --run options, use the database named database rather than the database default or the database speci-
fied by the GNATSDB environment variable.
-h, --help
Displays a short usage message.
-V, --version
Displays the queue-pr version number.
ENVIRONMENT VARIABLES
The GNATSDB environment variable is used to determine which database to use. For a local database, it contains the name of the database to
access. If GNATSDB is not set, the database named default is used.
SEE ALSO
Keeping Track: Managing Messages With GNATS (also installed as the GNU Info file gnats.info)
databases(5), dbconfig(5), delete-pr(8), edit-pr(1) file-pr(8), gen-index(8), gnats(7), gnatsd(8), mkcat(8), mkdb(8), pr-edit(8), query-
pr(1), queue-pr(8), send-pr(1).
COPYING
Copyright (c) 1993, 2003, Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are
preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified
versions, except that this permission notice may be included in translations approved by the Free Software Foundation instead of in the
original English.
GNATS August 2003 queue-pr(8)