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] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

