File SIZE 0KB help


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers File SIZE 0KB help
# 1  
Old 10-05-2011
File SIZE 0KB help

Hi There,

I need a script which shud basically check the size of the file..if its is 0kb send email to a list of people and

if is > 0KB, send an email to someother list...


Please help
# 2  
Old 10-05-2011
Fun fact about this site: there's a search feature, which you've agreed to use before asking questions (little hint: it's rule #5, the very same rules you've agreed to adhere to). If you'd used it you wouldn't have had to ask a common question, but instead found this thread.

Last edited by pludi; 10-05-2011 at 09:54 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

0kb file transferred in FTP process

We are transferring xml files to remote machine through cronjob @every 5 mins and then will move the files to the backup folder is source server. Sometimes the file is transferred as 0kb to destination server, whereas the file in the source backup folder is completely written. There is no error... (6 Replies)
Discussion started by: Bhavi
6 Replies

2. UNIX for Dummies Questions & Answers

Ls directory size reporting byte size instead of file count

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

3. 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

4. Shell Programming and Scripting

The scripts not able to make the file to size 0, every times it go back to its original size

#!/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

5. Solaris

Directory size larger than file system size?

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

6. Shell Programming and Scripting

Shell script to FTP if file size is 0KB

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

7. Solaris

0KB printing files

Hi, I am dealing with strange problem... whenever we use our software to trigger some printing files, along with that it generates lot of zero KB printing files, in our code base we generate a printing file only if its size is >0. So I suspect it could be something to do with printing level... (2 Replies)
Discussion started by: vivek.gkp
2 Replies

8. Solaris

command to find out total size of a specific file size (spread over the server)

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

9. Shell Programming and Scripting

How to separate 0kb files from the rest!!!

Hi All, Can you please tell me how to identify a 0kb file from a list a files and redirect only those files to a .txt file. ls -l shows me all the 0kb files...but how to redirect only those files.. Thanks for ur help, Kumar (3 Replies)
Discussion started by: kumarsaravana_s
3 Replies

10. UNIX for Dummies Questions & Answers

Delete files with 0kb

Hi, i need to strip out a logfile dir, but only remove the files with 0kb . How would i go about doing this? TIA (3 Replies)
Discussion started by: mephisto
3 Replies
Login or Register to Ask a Question