Soldato
EDIT: Nvm I was being stupid, forgot to copy the local copy of the bash script back over to where it was being run from...
I have three machines in this setup, 1 'Server' and 2 'Clients'.
I have a conjob setup as root which runs a shell script and creates a log file at the same time.
roots crontab
This as you can see calls 'test.sh'
The first rsync job works fine without any issues, however the second job doesn't run at all and leaves nothing in the log either. The job works fine being run manually with the exact same command.
Any help would be great!
I have three machines in this setup, 1 'Server' and 2 'Clients'.
I have a conjob setup as root which runs a shell script and creates a log file at the same time.
roots crontab
Code:
1 * * * * /root/test.sh >> /tmp/cron.log 2>&1
This as you can see calls 'test.sh'
Code:
#!/bin/bash
sudo /usr/bin/rsync -avz [email protected]:"/etc/Security\ Dashboard" /home/administrator/sd
sudo /usr/bin/rsync -avz [email protected]:"/etc/Security\ Dashboard" /home/administrator/sd/1
The first rsync job works fine without any issues, however the second job doesn't run at all and leaves nothing in the log either. The job works fine being run manually with the exact same command.
Any help would be great!
Last edited: