3
votes
1answer
3k views

BASH - merge directories when using mv

I just started using BASH, so I can move all contents of a directory to another. But the issue is, I was expecting it to merge the directories. I am using cron job to run this script. #!/bin/bash ...
-2
votes
1answer
323 views

changing ownership of files within a bash script

I have this bash script which outputs the first two files as owned by user, and the next three as owned by root: ################################################## # Variables NUM="6" #number of ...
1
vote
1answer
135 views

cron executing twice based on day of the week

I have a question. We have a cron job that executed on the 15th of this month: min hr day month day_of_week 35 13 15 6 6 However, it executed again on June 22nd (which was the 6th day of the ...
0
votes
0answers
163 views

Cron job not working due to wget error

I'm setting up a CRON job on my MediaTemple DV4 to generate a sitemap. To test I ran the command via the command line: wget ...
2
votes
1answer
46 views

Crontab mis-entered time

I have a crontab that performs a massive operation that needs to run once every five hours #min hour mday month wday user command * */5 * * * ...
1
vote
3answers
576 views

cron ignoring environment variables?

This should be simple, but it doesn't seem to be working. I have a very simple script run by cron: export MAILTO=foo@foo.com MAILTO=foo@foo.com echo "MAILTO is set to $MAILTO" Cron, however, seems ...
2
votes
2answers
683 views

crontab -e fails to start

whenever I try to run crontab -e I'm getting errors such as: no crontab for banana - using an empty one /tmp/crontab.oeFm1e: Invalid argument Is there any way to edit / install the file?
0
votes
1answer
301 views

Running cronjob on specfic hours

How do i setup a cronjob to run every hour except from 11pm until 1am ? Because during that time, the system is doing maintenance. Cheers
2
votes
2answers
2k views

Multiple crontabs for one user

is there a way to use multiple crontab files for one user? Thinking something along the lines of crontab file per project instead of crontab per user... Any help is appreciated...
3
votes
5answers
4k views

Crontab deleted?

Instead of typing "crontab -e" I accidentally typed "crontab" and was stuck in the middle of a process so I aborted the process. Now when I go to crontab -e it's entirely blank. This isn't good at ...
0
votes
1answer
63 views

I can not find specific cron running at *:21 and *:56 on Debian

I am frustrated. I have two mystic crons running on our server, that I can not find by doing crontab -l. The good thing is these crons are sending mails. That is how I know those are running at :21m ...
1
vote
2answers
795 views

How to create snapshots of your server for backup in Cent OS 5

I'm making the move from VPS to Dedicate server. Unfortunately, most dedicated servers do not provide server backups like managed VPS's do and I really like the piece of mind of having a backup of all ...
1
vote
2answers
629 views

cron and at are not working

On my Mac (yeah, yeah I know. but my Linux box is at work) for some reason cron and at don't want to work. They both register that jobs have been added, with no syntax errors or any qualms at all. ...
-1
votes
2answers
1k views

How do I create a wake up script using PowerShell? [duplicate]

Possible Duplicate: Alarm clock software that can turn the computer on? I need something that can wake someone up in the morning - basically like a cron event in Linux. I think this needs ...
1
vote
2answers
1k views

JAVA main class not found when using Apple auto-ingest tool

I am trying to setup a cronjob to download my daily and weekly reports from iTunes Connect. I have downloaded Apple's Autoingestion.class and I have made the following shell script to download the ...
0
votes
1answer
63 views

Undocumented crontab entries

At one of the production servers, some processes are using crontab to start periodically. When I inspect the crontab entries, I see: * * * * * some job I cannot find out what this actually ...
9
votes
2answers
5k views

Difference between /etc/crontab and “crontab -e”

What is the difference between the crontab located in /etc/crontab and the crontab that can be edited using crontab -e?
1
vote
2answers
344 views

Fail cronjob with /usr/bin/env

I have a script that works perfectly if I execute it from the command line manually. However, when it runs via cron, the job fails with the following error: /usr/bin/env: escript: No such file or ...
1
vote
1answer
541 views

Help updating cron entry using regular expressions

hi I am trying to update a cron entry NOT by using crontab -e but by shell commands. For example the cron entry is like this: 10 * * * * /home/localuser/foo.sh -b 1 -h 4 > foo_output.sh ...
1
vote
3answers
8k views

How to create a cron job to upload files to an FTP server

I would like to create a cron job that uploads files from a directory on my computer to my FTP server. I would like it to do it daily at midnight. I know pretty much nothing about cron, so I ...
2
votes
1answer
435 views

Running rsync on network connect

I have one Mac which is always on and is my main computer. I also have a MacBook and I'm trying to sync my iPhoto library. So I can successfully use rsync to sync files. I'm using a cron to have it ...
1
vote
2answers
2k views

Schedule a cron job ev X minutes, but exclude it from certain hours in the morning?

Is it possible to make a cron job run say, every 20 minutes, but make it not run for say, 1-4 in the morning.
8
votes
3answers
3k views

How can I create a cron job that runs a task every three weeks?

I have a task that needs to be performed on my project schedule (3 weeks). I'm able to set up cron to do this every week, or (for example) on the 3rd week of every month - but can't find a way to do ...
1
vote
1answer
234 views

Having trouble running a cron job in Unix which generates a dynamic filename for an output data dump

I am trying to schedule a MySQL database dump by using cron but I get an error for some code that I know works when I call directly in Shell. Here is the code that works perfectly well in Shell: ...
2
votes
6answers
6k views

Automatically restart a Unix job if it goes down?

I have a job that I would like to "daemonize" on Unix: I want it to come up when the computer boots, and I want it to restart if it goes down. A simple way to do this is to setup a cronjob that runs ...
3
votes
4answers
4k views

Are there any good crontab syntax checkers, or entry tools?

Recently a user on one of our systems (linux Ubuntu, but any *nix would be the same) had a crontab file missing a terminating newline. It is common for *nix configuration files to require that ...