Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Crontab keeps saving empty files of the job file. Post 302249148 by Smiling Dragon on Monday 20th of October 2008 06:47:30 PM
Old 10-20-2008
If you don't want wget to save the returned html message form consume.php, direct the output file to /dev/null:
Code:
-O /dev/null

You can add a -q flag to have wget suppress output information as well, that way you don't need the 2>&1 /dev/null part (so you'll get sent genuine issues but not regular runs).
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

CRON Job - saving to a different server?

Thanks for the all the help last evening on CRON jobs. It's now working. Is it possible with cron to save a backup of a file to a different server or location? The idea being that if one host goes arse over tit, I'll have a backup of the DB on another server? Many thanks, Ed Ludlow (3 Replies)
Discussion started by: eludlow
3 Replies

2. Shell Programming and Scripting

empty crontab

how to create empty crontab using shell script? (7 Replies)
Discussion started by: crackthehit007
7 Replies

3. Shell Programming and Scripting

Replace all found files with an empty file?

Hi all, I need to replace certain robots.txt files with an empty file. I use the following to find the files I want to empty out: find /Sites -type f -name "robots.txt" -exec grep -il "STAGE" {} \; (finds all robots.txt files which contain the string 'STAGE') Now what do I add to this... (3 Replies)
Discussion started by: Evert
3 Replies

4. UNIX for Dummies Questions & Answers

Assistance with combining, sorting and saving multi files into one new file

Good morning. I have a piece of code that is currently taking multiple files and using the CAT.exe command to combine into one file that is then sorted in reverse order based on the 3rd field of the file, then displayed on screen. I am trying to change this so that the files are being combined into... (4 Replies)
Discussion started by: jaacmmason
4 Replies

5. Shell Programming and Scripting

parsing txt file, saving graphics files

hi everyone, i am a newbie in shell programming. and i want to simply go through a text file that contains 3 "columns", split by ';' customerID ; link-to-contract ; save-as-filename so an example would simply look like this now i want to loop through every line, and save the file from... (3 Replies)
Discussion started by: Confidence
3 Replies

6. Shell Programming and Scripting

Shell Script to grep Job File name and Log File name from crontab -l

Hello, I am new to shell scripting. I need to write a shell script where i can grep the name of file ie. .sh file and log file from crontab -l. #51 18 * * * /home/oracle/refresh/refresh_ug634.sh > /home/oracle/refresh/refresh_ug634.sh.log 2>&1 #40 17 * * * /home/oracle/refresh/refresh_ux634.sh... (1 Reply)
Discussion started by: guptra
1 Replies

7. Shell Programming and Scripting

Crontab Job Output File

I am a newbie to Unix. My default root user umask is set to 077 and I have the following crontab job to redirect al the backup output to the logfile of /backup/backup.xxxxx 00 10 * * 0 /usr/local/bin/backup.sh > /backup/backup.`date +\%Y\%m\%d` 2>&1 Since root default umask is 077, the... (2 Replies)
Discussion started by: famasutika
2 Replies

8. Shell Programming and Scripting

Create empty files from a list on file

Hello Guys. Please I would like to create empty files from a list In file1 will be the followin values, so i will like to create for each name a empty file. file1 2191off-r0.sps 2192off-r0.sps 2193off-r0.sps 2194off-r0.sps 2195off-r0.sps So I need to get 5 empty files. Thanks for... (7 Replies)
Discussion started by: jiam912
7 Replies

9. Shell Programming and Scripting

Check file from multiple files is empty using awk

I am passing multiple files in awk & since one of the file is empty(say file3) so the same gets skipped & logic goes for toss. Need suggestion/help in checking and putting additional checks for the same awk -F, 'FNR==1 {++filecounter} filecounter==1 {KRL=$2;next} filecounter==2... (8 Replies)
Discussion started by: siramitsharma
8 Replies

10. Shell Programming and Scripting

Saving files with file name as output

Hi, i need help with a file creation of an output program. I've got a program that with #find creates an output for each files in a directory. If i give this command : -o spec$(date -u +%Y%m%dt%H%M) it creates just one file, overwriting all the others since it is the creation date .... (2 Replies)
Discussion started by: Board27
2 Replies
xcfa(1) 							   Manual: Xcfa 							   xcfa(1)

NAME
xcfa - GTK+ Implementation of the GNU shell command. SYNOPSIS
xcfa [OPTION]... [FILE]... -h, -help Displays this help section and exits. -version Displays the version of the program and exits. -verbose Activate verbose mode -systray Activate systray mode DESCRIPTION Interface contains console tools (cdparanoia, lame, oggenc, ...). Allows extraction of audio from DVD to .wav format. Allows extracting audio from CD to formats such as: wav, mp3, flac, ogg, m4a, mpc, ape. Allows encoding audio to: wav, mp3, flac, ogg, m4a mpc, ape. Allows encoding the .wma format to: wav, mp3, flac, ogg, m4a mpc, ape. Allows cutting of files. Allows management of common file-types before converting. Allows management of bitrates, frequencies, and channels. Allows creation of CD covers. Developed with Gtk2 and Glade and runs under the X window system on the GNU platform. USAGE
After the first launch, go to the Options tab and modify the settings to your liking. ADDING THE GPG KEY
With sudo: $ wget http://download.tuxfamily.org/xcfaudio/download/xcfaudio.key.asc -O - | sudo apt-key add - Without sudo: $ su root [Enter the password for root.] # wget http://download.tuxfamily.org/xcfaudio/download/xcfaudio.key.asc -O - | apt-key add - Another solution with root: # gpg --keyserver subkeys.pgp.net --recv 00B21603DD5C7A79 # gpg --export --armor 00B21603DD5C7A79 | sudo apt-key add - SOURCES.LIST Add the following lines to your [ /etc/apt/sources.list ] file for automatic updates: ## Xcfa for i386 and amd64 deb http://download.tuxfamily.org/xcfaudio/xcfa dev contrib deb-src http://download.tuxfamily.org/xcfaudio/xcfa dev contrib COMPLEMENTARY PACKAGE INSTALLATION
: See the Recovery and Complementary package installation guide: http://www.xcfa.tuxfamily.org/index.php?static2/xcfa CHANGELOG
Read the ChangeLog file and view the source code. AUTHOR
XCFA is developed by Claude Bulin (xcfa@tuxfamily.org) 4.3.1 Wed, 23 May 2012 xcfa(1)
All times are GMT -4. The time now is 11:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy