1

Script runs manually but not from cron

view story
linux-howto

http://www.linuxquestions.org – Hello. I know there's at least 4 other threads related to this here. I've read them over but I'm still stuck. I have a simple shell script that pushes files from my server to Amazon S3 for backup, then writes the results to a file called 'scrap.' The script runs perfectly when I run it manually as myself, but when I run it as a cron job - from either the system cron or my user cron, it runs fine and will create my scrap file but it doesn't write to it. Here's my script Code: #!/bin/bash ruby '/home/my_username/s3sync/s3sync.rb' -r -s -v --dryrun '/var/www/html/' my_S3_server:www > (HowTos)