05-18-2012
question, is, when find command is successfully deleting files , then why its throwing error, and the problem beneath is , its exit status also becomes non zero and my print message gets changed.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to get the file which created the error when the find command was run ?
I am wrote a script to mail a list of files whose file size is ge than 0 and returns 0
but wen it finds a folder with only empty files it exits as 1. i need to modify it so that the return for this is also 0 (but it... (1 Reply)
Discussion started by: guhas
1 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
i am writing a shell script in korn shell
which deletes all the files in a directory
once in every 10DAYS.
the directory has different format files.
the script has something like this;
cd /home/data/pavi
echo "Please Enter the Number of Days to search for"
read DAYS... (2 Replies)
Discussion started by: pavan_test
2 Replies
3. Shell Programming and Scripting
Guys,
I need to find all the files ending with either dmp or dmp.Z. This command is giving me error.
@files =`find $path \(-name "*.dmp" -o -name "*.dmp.Z"\) -mtime +30`;
sh: 0403-057 Syntax error at line 1 : `(' is not expected.
Thanks in advance (4 Replies)
Discussion started by: MKNENI
4 Replies
4. Shell Programming and Scripting
Hi I have script that is developed to serch for 30 days old Directory & Files and then remove them ...
when i run it successfully removes the Directory & files & but it throw errors on the screen
..
..
+ find . -type f -mtime +30 -exec rm -f {} ;
+ exit
please help me ??
I... (0 Replies)
Discussion started by: Beginner123
0 Replies
5. UNIX for Advanced & Expert Users
Executing "find /abc -follow -ls" the message "find: cycle detected for /abc/def/ghi/
What does this mean?
Thanks... (2 Replies)
Discussion started by: twk
2 Replies
6. Shell Programming and Scripting
Hi there,
I'm encountering problems on an AIX system when using following in my script.
find . -name *.edi -type f -exec sh -c 'scp {} $user@$server:$path || exit 5; mv {} $sent || exit 7' \;
the error i get is following
find: 0652-018 An expression term lacks a required... (4 Replies)
Discussion started by: Kerberos
4 Replies
7. Shell Programming and Scripting
Hi,
We have a shell script which looks into a directroy for any folder older than 30 days and removes them. The command being used is
find $ARCHIVE_DIR -type d -mtime +$PURGE_HIST_DAYS -exec rm -rf {} \;
It removes some folders but then throw below errors for others:
find:... (2 Replies)
Discussion started by: DejaVu
2 Replies
8. Shell Programming and Scripting
Hi,
I am working in solaris.I am using below script to copy the files from /usr/tmp to /usr/gm
But while running this it is not considering the files list after the filename having space in them.
Example:-
compile_custom_pll.sh
conv_data_sqlload.sh
conv_sqlload.sh
Copy of... (5 Replies)
Discussion started by: millan
5 Replies
9. Shell Programming and Scripting
Hi ,
I tried the below code to remove the files older that 30 days .
#!/bin/ksh
set -x
file_path1="/home/etc"
file_path2="/home/hst"
file_nm="HST"
days=30
find $file_path1/*$file_nm* -type f -mtime +$days -exec rm -f {} \;
find $file_path2/*$file_nm* -type f -mtime +$days -exec rm... (3 Replies)
Discussion started by: smile689
3 Replies
10. UNIX for Beginners Questions & Answers
In a fastload teradata utility I am trying to delete the files which are older than 30days using the find and rm command as following.
find . -name 'xxx_*' -mtime +30 -exec rm -f {} \;
I expect it to delete all the files older than 30 days but sometimes it gives an error : find: bad status--... (3 Replies)
Discussion started by: stelkar
3 Replies
LEARN ABOUT REDHAT
podchecker
PODCHECKER(1) Perl Programmers Reference Guide PODCHECKER(1)
NAME
podchecker - check the syntax of POD format documentation files
SYNOPSIS
podchecker [-help] [-man] [-(no)warnings] [file ...]
OPTIONS AND ARGUMENTS
-help Print a brief help message and exit.
-man Print the manual page and exit.
-warnings -nowarnings
Turn on/off printing of warnings. Repeating -warnings increases the warning level, i.e. more warnings are printed. Currently
increasing to level two causes flagging of unescaped "<,>" characters.
file The pathname of a POD file to syntax-check (defaults to standard input).
DESCRIPTION
podchecker will read the given input files looking for POD syntax errors in the POD documentation and will print any errors it find to
STDERR. At the end, it will print a status message indicating the number of errors found.
Directories are ignored, an appropriate warning message is printed.
podchecker invokes the podchecker() function exported by Pod::Checker Please see "podchecker()" in Pod::Checker for more details.
RETURN VALUE
podchecker returns a 0 (zero) exit status if all specified POD files are ok.
ERRORS
podchecker returns the exit status 1 if at least one of the given POD files has syntax errors.
The status 2 indicates that at least one of the specified files does not contain any POD commands.
Status 1 overrides status 2. If you want unambigouus results, call podchecker with one single argument only.
SEE ALSO
Pod::Parser and Pod::Checker
AUTHORS
Brad Appleton <bradapp@enteract.com>, Marek Rouchal <marek@saftsack.fs.uni-bayreuth.de>
Based on code for Pod::Text::pod2text(1) written by Tom Christiansen <tchrist@mox.perl.com>
perl v5.8.0 2003-02-18 PODCHECKER(1)