Hello
I trying to run a Rudy script from a bash script but it now working. Can some one help please. The command runs normally eg if I type
/backups/s3sync/s3sync.rb -r -s --progress /backups/cpbackup/weekly redwood_server:cpanel/11/03/19/
but went it in the script I get
/usr/bin/ruby: No such file or directory -- /backups/s3sync/s3sync.rb -r -s --progress /backups/cpbackup/weekly redwood_server:cpanel/11/03/19/ (LoadError)
Here the code I use for the script.
[code] #!/bin/bash
CYEAR=`date +%y` CMONTH=`date +%m` CDAY=`date +%e`
/usr/bin/ruby "/backups/s3sync/s3sync.rb -r -s --progress /backups/cpbackup/weekly redwood_server:cpanel/$CYEAR/$CMONTH/$CDAY/" [/code]