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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sat, Mar 19, 2011 at 3:13 AM, Rob S. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> /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)> /usr/bin/ruby "/backups/s3sync/s3sync.rb -r -s --progress > /backups/cpbackup/weekly redwood_server:cpanel/$CYEAR/$CMONTH/$CDAY/"I don''t think you want to quote that entire string :-) -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> >> /usr/bin/ruby "/backups/s3sync/s3sync.rb -r -s --progress >> /backups/cpbackup/weekly redwood_server:cpanel/$CYEAR/$CMONTH/$CDAY/" > > I don''t think you want to quote that entire string :-) >i concur. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.