LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help with crontab on OSX 10.8 (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-crontab-on-osx-10-8-a-4175490193/)

amrogers3 01-05-2014 01:46 AM

help with crontab on OSX 10.8
 
Trying to get a script file to run on OSX 10.8 via crontab.

I have tried several versions and no go. The script runs fine manually, however, no good using crontab.

Here is script:

Code:

#!/bin/sh

SHELL=/bin/sh
PATH=/usr/bin:/bin:/usr/sbin:/sbin

# Daily Data Backup
rsync -az -e ssh /Users/user1/Desktop/test root@10.0.1.16:/shares/backup/test

Code:

20 01 * * * /Users/user1/backup.sh
Any help would be appreciated.

sag47 01-06-2014 03:14 PM

How are you running the script manually?

amrogers3 01-06-2014 03:18 PM

I did a ./Users/user1/backup.sh from command line

sag47 01-06-2014 03:47 PM

Quote:

Originally Posted by amrogers3 (Post 5093083)
I did a ./Users/user1/backup.sh from command line

I assume this is relative to the root location /? What user are you running the command as? Which user are you editing the crontab for?

amrogers3 01-06-2014 03:57 PM

I believe root for both. I can check when I get home. After I ran using ./ I confirmed that rsync copied over the appropriate files/folders.


All times are GMT -5. The time now is 12:50 AM.