Sponsored Content
Full Discussion: EOF problem with Cron Job?
Top Forums UNIX for Dummies Questions & Answers EOF problem with Cron Job? Post 302473790 by Crazy Serb on Monday 22nd of November 2010 11:20:08 AM
Old 11-22-2010
EOF problem with Cron Job?

Hey guys... first post here...

I have set up the following cron to create daily backups for me and rotate them weekly:

Code:
date=`date +%d`; tar -zcvf /home/mysite/backups/backup_dev_$date.tgz /home/mysite/public_html/dev/app --exclude=/home/mysite/public_html/dev/app/tmp

However, I keep receiving this output (in an email) when the server runs it:


/bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 1: syntax error: unexpected end of file


If I run that cron job line manually in SSH, it works just fine.

What gives?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Run cron job problem

I have the below crontab job that it will run at every 7:00am - 10:00am , it work fine , now if I want to skip to run the crontab job at a specific time , eg. I want the script not to run at next Monday 8:00am ( only skip this time , other time is normal ) , how can I make it ? is it possible ?... (3 Replies)
Discussion started by: ust
3 Replies

2. UNIX for Advanced & Expert Users

Cron job skipping problem

Hi, I have a crontab that runs some shell scripts at fixed intervals. Although, one condition for a script to continue is that a previous instance of the same script should have terminated. But, inspite of the fact that the old instance has finished execution, the new instance still terminates. ... (3 Replies)
Discussion started by: puneetarora_12
3 Replies

3. Solaris

cron job problem

I am trying to setup cronjob and once I start to save it is not working. This is what I am getting after I executed crontab -e, I am not even getting the privious entry and I am running from root. crontab -e 421 10 3 * * * /usr/sbin/logadm ? :wq ? Why is it not saving? Any input is... (4 Replies)
Discussion started by: mokkan
4 Replies

4. Solaris

problem with cron job

new to unix here, im learning how to schedule jobs with crontab. The following cron job runs under root but not under a test account i created. 50 11 * * 0 /usr/bin/banner "HELLO" > /dev/console i have no idea with it isn't running under the test account but runs right on time when i create... (7 Replies)
Discussion started by: solne
7 Replies

5. Shell Programming and Scripting

Scheduling Cron job-Problem

Hello All, I want to run a script for every 5 minutes interval.So i developed a script which has to be scheduled to run for every 5 minutes. That script internally runs another script. But the problem is it is not executing properly. Can anybody throw some light on this. Below are the code... (4 Replies)
Discussion started by: RSC1985
4 Replies

6. Shell Programming and Scripting

Problem with Cron job

Hi , I have a TCL script which i am supposed to run as a cron job.. The script works fine from command line , but when run as a cron job , its unable to find a package,, my crontab is as follows. --------------------------- #!/usr/bin/ksh * * * * * PATH=/cm8/auto/Automation/Library/TclLib ... (7 Replies)
Discussion started by: Sudharshana
7 Replies

7. UNIX for Dummies Questions & Answers

Cron job problem

I have a perl script which Im planning to run every minute. I have set the cron job as * * * * * PATH= /usr/local/bin:/usr/bin:/usr/sbin:/usr/lib; perl /dm2/www/html/isos/pre5.3/autoDownload.pl I assume the script is executing every minute only because I see a entry like below when I do... (2 Replies)
Discussion started by: srijith
2 Replies

8. Solaris

Problem with a cron job

When i am trying to open crontab throught command crontab -e. It is not opening? OUTPUT: # crontab -e sh: vim: not found The crontab file was not changed. Please let me know how to open and edit it??? (10 Replies)
Discussion started by: kkalyan
10 Replies

9. Shell Programming and Scripting

Unexpected EOF while looking for matching `'' when ran from a cron job

Since cPanel does not support deleting emails older then X amount of days I am using the following on a Cron Job. find -P /home/user/mail/domain/ -mindepth 2 -mtime '+366' -type f -printf '"%p"\n' | grep -v '/Important' | grep -v '/.Important' | xargs -I {} rm -r "{}" Executing it via SSH... (4 Replies)
Discussion started by: tiagom
4 Replies

10. Shell Programming and Scripting

Execution problem with CRON job

HI, I have written an executable file in unix and I was able to execute it successfully but when I called this file with cron job it was giving error like "permission denied" and "No such file or directory". Please help in how cron calls the file and what permission is required on the file... (2 Replies)
Discussion started by: vipin kumar rai
2 Replies
FLASHBAKE(1)						      General Commands Manual						      FLASHBAKE(1)

NAME
flashbake - automated snapshots with git SYNOPSIS
flashbake [options] <project_dir> [quiet_min] DESCRIPTION
flashbake is a tool which watches files and automatically checks them in to a git repository. The commit lines can be customised. It is meant to be run from a cron job (see crontab(5) ). Thus it simplifies life for user by taking off the burden of manually committing changes and allowing one to focus on the work. quiet_min is a parameter to flashbake which tells it to only commit changes to files in the project that have not been changed in the last quiet_min minutes. Setting this to 0 or omitting this disables the quiet period and flashbake immediately commits all changes when run. One of the nice features of flashbake is its generation of automatic commit messages using its plugin system. flashbake's plugins can pull in data from various sources including your microblogging feeds, uptime, weather etc. and use that to generate the commit message. If you are new to flashbake, check out the CONFIGURATION and USAGE sections below for more information; you can also check the wiki (address given in SEE ALSO). OPTIONS
flashbake follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the online documentation. --version show version number and exit -h, --help show summary of options. -c, --context just generate and show the commit message, don't check for changes. -v, --verbose include debug information in the output, useful for reporting problems. -q, --quiet disable all output except errors -d, --dryrun do not change anything, just show what flashbake would do if executed without the -d option (dry run). -p PLUGIN_DIR, --plugins=PLUGIN_DIR specify an additional location for plugins -r, --purge purge any files that have been deleted from source control CONFIGURATION
flashbake is quite easy to setup and does not require knowledge of git internals. As flashbake requires a git repository, you must create a git repository for the folder you wish to track by cd'ing into the folder and typing git init (if you have not done so already). flashbake configuration is done through a .flashbake file in the project directory. Global options for flashbake can be specified in ~/.flashbake/config where ~ refers to the home directory (like /home/joe on Linux or /Users/joe on Mac OS X). If the ~/.flashbake/config file is present then it will get read first, followed by the project specific version. flashbake tracks changes to only specific files which it terms as hot files. You have to specify these hot file names in the .flashbake file which should be created in the project directory. Wildcards which are used in the shell can be used, like ? for matching a single character, * for matching any number of characters and [] for ranges of characters ([0-9] would match a single digit from 0 to 9 in a file- name). EXAMPLE
Here follows an example .flashbake file (taken from the wiki), with explanatory comments. # this enables the feed plugin plugins:flashbake.plugins.feed:Feed # these three lines are used by the feed plugin, see the Plugins page for # more info feed_url:http://www.mysite.com/feed # author is optional feed_author:Joe Random # limit is optional, defaults to 5 if unused feed_limit:3 # this line is optional, omit it to disable email notice_to:joe@mysite.com # alternately, if you set up an ssh tunnel, you can set this and send # through # the tunnel #smtp_port:5002 # hot files todo.txt my_novel.txt extra/character_notes.txt extra/story_bible.txt Any line beginning with # is a comment, of course. The notice_to: specifies an email address to mail when flashbake encounters some prob- lems with a hot file. This functionality is not mandatory and you can comment notice_to: out to disable it. USAGE
This section shows some typical usage patterns of flashbake. If you run flashbake -c ~/my_novel flashbake will not commit any changes, rather it will show you the commit message it would generate if run normally. This is useful for checking that you've entered the options in the control file correctly and checking the commit message content. Running flashbake -d ~/my_novel would make flashbake do a dry run, and it will do everything except actually updating the repository. One of the most common ways to run flashbake is to run it under cron for example, putting this in your crontab(5) */15 * * * * flashbake ~/my_novel 5 > /dev/null would make flashbake run every fifteen minutes, checking in changes to the hot files in the ~/my_novel directory which have not been changed in the last five minutes. BUGS
The bug tracker is at http://github.com/commandline/flashbake/issues. If you are experiencing problems, try out a newer version first, if available. SEE ALSO
A more extensive documentation for flashbake can be found at its wiki site at: http://wiki.github.com/commandline/flashbake/. A list of available plugins with the accompanying documentation can be found at: http://wiki.github.com/commandline/flashbake/plugins AUTHOR
Written by Thomas Gideon. This manual page was written by Abhishek Dasgupta <abhidg@gmail.com>, for the Debian project (but may be used by others). June 30, 2010 FLASHBAKE(1)
All times are GMT -4. The time now is 12:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy