08-03-2002
File size greater than 0
ok I want to know how to touch a file and find out that it is greater than 0 then if it is not I want to fail the job other wise I want to success amnd go on. Can anyone help.
Thanks
Shannon Kammer
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can I find wether a particular file exist and size greater than zero in one line command.
similar to this
if &&
something in one if test .... e.g. if
1.) is it possible ? ... if yes how
2.) what would be the return type in case there is success or failure. I mean if both are... (4 Replies)
Discussion started by: guhas
4 Replies
2. 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
3. Shell Programming and Scripting
HI,
Can any tell me how to filter the list of files greater than the size specified by user. The size should be provided by user as an input.
Regards
shiva (6 Replies)
Discussion started by: shivu
6 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
Hi,
I have a file by redirecting some contents in unix shell.
Even when there is no content that is being redirected, the file size still shows greater than zero.
but even if there is no matching pattern the file APPRES has size greater than 0bytes.
awk -f AA.awk $logfile>APPRES... (3 Replies)
Discussion started by: justchill
3 Replies
6. Shell Programming and Scripting
I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y"
#!/bin/bash
du -hs $1
while read SIZE ENTRY
do
if ;
then
find $1 -mtime +$2 -exec rm -f {} \;
echo "Files older than $2 days deleted"
else
echo "free Space available"... (4 Replies)
Discussion started by: JamesCarter
4 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. UNIX for Dummies Questions & Answers
Hi ,
i have some files of specific pattern ...i need to look for files which are having size greater than zero and move those files to another directory..
Ex...
abc_0702,
abc_0709,
abc_782
abc_1234 ...etc
need to find out which is having the size >0 and move those to target directory..... (7 Replies)
Discussion started by: dssyadav
7 Replies
9. UNIX for Beginners Questions & Answers
How do I find the files greater than or equal to a given size using find command.
find ./ -size +0k --> Lists files greater than 0K
find ./ -size 0k --> Lists the file size equal to 0K.
I have other conditions to check, hence using find command.
Thanks in advance. (4 Replies)
Discussion started by: deepakwins
4 Replies
10. UNIX for Beginners Questions & Answers
Good morning, i need your help please
I need to move a .TXT file greater or igual 355 MB and its correspondent .LST file in a non recursive way
The operating system is:
uname -a
SunOS server01c 5.10 Generic_144488-01 sun4u sparc SUNW,SPARC-Enterprise
For example:
rw-r--r-- 1 xptol ... (8 Replies)
Discussion started by: alexcol
8 Replies
LEARN ABOUT DEBIAN
gearman_job_free
GEARMAN_JOB_FREE(3) Gearmand GEARMAN_JOB_FREE(3)
NAME
gearman_job_free - Gearmand Documentation, http://gearman.info/
SYNOPSIS
#include <libgearman/gearman.h>
gearman_job_st
void gearman_job_free(gearman_job_st *job)
gearman_return_t gearman_job_send_data(gearman_job_st *job, const void *data, size_t data_size)
gearman_return_t gearman_job_send_warning(gearman_job_st *job, const void *warning, size_t warning_size)
gearman_return_t gearman_job_send_status(gearman_job_st *job, uint32_t numerator, uint32_t denominator)
gearman_return_t gearman_job_send_complete(gearman_job_st *job, const void *result, size_t result_size)
gearman_return_t gearman_job_send_exception(gearman_job_st *job, const void *exception, size_t exception_size)
gearman_return_t gearman_job_send_fail(gearman_job_st *job)
const char *gearman_job_handle(const gearman_job_st *job)
const char *gearman_job_function_name(const gearman_job_st *job)
const char *gearman_job_unique(const gearman_job_st *job)
const void *gearman_job_workload(const gearman_job_st *job)
size_t gearman_job_workload_size(const gearman_job_st *job)
void *gearman_job_take_workload(gearman_job_st *job, size_t *data_size)
Link with -lgearman
DESCRIPTION
gearman_job_st are passed to worker functions to represent jobs that are being run by gearman_worker_work().
gearman_job_free() is used to free a job. This only needs to be done if a task was created with a preallocated structure.
gearman_job_handle() returns the job handle(see gearman_job_handle_t for more information).
gearman_job_function_name() return the name of the function that the job was set to execute against.
gearman_job_unique() return the unique value that was used for gearman_job_st.
returns the gearman_job_st workload. The size of it can be determined with gearman_job_workload_size(). gearman_job_take_workload() is the
same as gearman_job_workload() with the exception that the result must be free(3) by the caller.
RETURN VALUE
A value of gearman_return_t is returned. On success that value will be :c:type::GEARMAN_SUCCESS. Use gearman_strerror() to translate
this value to a printable string.
HOME
To find out more information please check: http://gearman.info/
SEE ALSO
gearmand(8) libgearman(3)
AUTHOR
Data Differential http://www.datadifferential.com/
COPYRIGHT
2012, Data Differential, http://www.datadifferential.com/
0.33 May 04, 2012 GEARMAN_JOB_FREE(3)