Sponsored Content
Top Forums Shell Programming and Scripting How do I prevent cron from returning errors on a file not found? Post 302105953 by goodmis on Monday 5th of February 2007 05:29:01 PM
Old 02-05-2007
How do I prevent cron from returning errors on a file not found?

find: /home/Upload/*: No such file or directory


I am getting a find error when I run

for FILE in `find /home/Upload/* -prune -type f -newer TIMEFILE`
do

I need to run this job every 10 minutes to upload any new files that were added. Is there an easy way to prevent this?

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

errors when running a cron job

I am running some shell scripts through a foll cron job, the script works fine and there are no errors in the log file but I receive the following error in mail for the jobs: stty: no such device or address What does the above error indicate, here is the cron job: 0 22 * * 0... (2 Replies)
Discussion started by: knarayan
2 Replies

2. Shell Programming and Scripting

java errors when calling from cron

I am more or less new to using cron, and I am trying to automate a log cleaning system I have made. The system basically cleans through WWW logs that are mounted on an NFS and creates text files for entry into a local PostgreSQL DB. For the past year I have been running the various scripts and... (3 Replies)
Discussion started by: mntamago
3 Replies

3. Linux

Unable to send mail - but no errors found :-(

Hi Guys I am using this version of Linux box (as shown below). I am unable to send email from the box. But I am not getting any errors while sending email. :mad: Any idea what could be the reason? What entry should I check? :confused: $ uname -a Linux machine-name 2.4.21-144-smp4G #1... (6 Replies)
Discussion started by: csaha
6 Replies

4. Shell Programming and Scripting

prevent errors/warnings from being written to log file

i have this script which works fine but shows errors when it runs..these are more like warnings and the script runs fine.. i am on a sun machine.. i know it writes all the error messages to a master log file.. is there any way i can turn off these warnings/error messages and prevent them from being... (2 Replies)
Discussion started by: npatwardhan
2 Replies

5. UNIX for Advanced & Expert Users

How to prevent grep command from throwing a system trap if No match is found.

Hi How to prevent grep command from throwing a system trap(or returning error status) if No match is found in the specified file(s) ? Consider this simple shell script: #!/usr/bin/ksh trap 'STATUS=$?;set +x;echo;echo error $STATUS at line nb $LINENO executing :\ `sed -n... (2 Replies)
Discussion started by: cool.aquarian
2 Replies

6. UNIX for Dummies Questions & Answers

Loop on array variable returning error: 0 not found

I'm guessing i have a syntax error. I'm not sure it get's past the the while condition. I get an error 0 not found. Simple loop not sure what I'm doing wrong. #!/usr/bin/ksh set -A MtPtArray /u03 /u06 tUbound=${#MtPtArray } echo $tUbound i=0 while ($i -lt $tUbound) do print... (4 Replies)
Discussion started by: KME
4 Replies

7. Shell Programming and Scripting

Cron job to prevent simultaneous script

I'm using a shared server on Hostgator (Linux CentOS). I'm trying to set a cron job using the Control Panel that will check if its already running before starting a new one. I've tried the following... * * * * * && but I get this error emailed to me... /bin/sh: line 0: Any... (5 Replies)
Discussion started by: tech9821
5 Replies

8. Shell Programming and Scripting

Command not found errors when running csh script

I am trying to find the number of files whose name starts with uni. Below is the code but it is giving error. :confused: #!/bin/csh FILES_NAME ='files_list'; FILE_NAME_PATTERN = 'uni*'; NO_OF_FILES; ls -l $FILE_NAME_PATTERN > $FILES_NAME ; NO_OF_FILES = `wc -l $FILES_NAME`; echo... (3 Replies)
Discussion started by: hiten.r.chauhan
3 Replies

9. Shell Programming and Scripting

Ssh from a ksh returning not found message

Script name is test.ksh I know that that the ssh command is working properly, this can be verified by the value returned in respond variable. It is unique to the remote server _____________________________________________________ respond=$(ssh $remoteHost find... (3 Replies)
Discussion started by: Adagio
3 Replies

10. Programming

Expect script returning string following a found expect.

I'm fairly new to scripting so this might not be possible. I am using Expect with Cisco switches and need to capture the string after finding the expect request. For example, when I issue "show version" on a Nexus switch, I'm looking to capture the current firmware version: #show version ... (0 Replies)
Discussion started by: IBGaryA
0 Replies
dpkg-genchanges(1)						    dpkg suite							dpkg-genchanges(1)

NAME
dpkg-genchanges - generate Debian .changes files SYNOPSIS
dpkg-genchanges [option...] DESCRIPTION
dpkg-genchanges reads information from an unpacked and built Debian source tree and from the files it has generated and generates a Debian upload control file (.changes file). OPTIONS
--build=type Specifies the build type from a comma-separated list of components (since dpkg 1.18.5). The allowed values are: source Upload the source package. any Upload the architecture specific binary packages. all Upload the architecture independent binary packages. binary Upload the architecture specific and independent binary packages. This is an alias for any,all. full Upload everything. This is alias for source,any,all, and the same as the default case when no build option is specified. -g Equivalent to --build=source,all (since dpkg 1.17.11). -G Equivalent to --build=source,any (since dpkg 1.17.11). -b Equivalent to --build=binary or --build=any,all. -B Equivalent to --build=any. -A Equivalent to --build=all. -S Equivalent to --build=source. The -sx options control whether the original source archive is included in the upload if any source is being generated (i.e. -b or -B haven't been used). -si By default, or if specified, the original source will be included only if the upstream version number (the version without epoch and without Debian revision) differs from the upstream version number of the previous changelog entry. -sa Forces the inclusion of the original source. -sd Forces the exclusion of the original source and includes only the diff. -vversion Causes changelog information from all versions strictly later than version to be used. -Cchanges-description Read the description of the changes from the file changes-description rather than using the information from the source tree's changelog file. -mmaintainer-address Use maintainer-address as the name and email address of the maintainer for this package, rather than using the information from the source tree's control file. -emaintainer-address Use maintainer-address as the name and email address of the maintainer for this upload, rather than using the information from the source tree's changelog. -Vname=value Set an output substitution variable. See deb-substvars(5) for a discussion of output substitution. -Tsubstvars-file Read substitution variables in substvars-file; the default is debian/substvars. No variable substitution is done on any of the fields that are output, except for the contents extracted from each binary package Description field (since dpkg 1.19.0), however the special variable Format will override the field of the same name. This option can be used multiple times to read substitution variables from multiple files (since dpkg 1.15.6). -Dfield=value Override or add an output control file field. -Ufield Remove an output control file field. -ccontrolfile Specifies the main source control file to read information from. The default is debian/control. -lchangelog-file Specifies the changelog file to read information from. The default is debian/changelog. -ffiles-list-file Read the list of files to be uploaded here, rather than using debian/files. -Fchangelog-format Specifies the format of the changelog. See dpkg-parsechangelog(1) for information about alternative formats. -uupload-files-dir Look for the files to be uploaded in upload-files-dir rather than .. (dpkg-genchanges needs to find these files so that it can include their sizes and checksums in the .changes file). -q Usually dpkg-genchanges will produce informative messages on standard error, for example about how many of the package's source files are being uploaded. -q suppresses these messages. -O[filename] Print the changes file to standard output (the default) or to filename if specified (since dpkg 1.18.5). -?, --help Show the usage message and exit. --version Show the version and exit. FILES
debian/files The list of generated files which are part of the upload being prepared. dpkg-genchanges reads the data here when producing a .changes file. SEE ALSO
deb-substvars(5), deb-src-control(5), deb-src-files(5), deb-changelog(5), deb-changes(5). 1.19.0.5 2018-04-16 dpkg-genchanges(1)
All times are GMT -4. The time now is 08:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy