Welcome Guest | Login

Problem following tutorial, invalid command with the bash commands

In the tutorial it gives the following command

[~]# mv ~/public_html ~/public_html_backup

When I type this I get an error saying:
mv: invalid option -- /
Try `mv --help' for more information

Any ideas?

I am typing this command in the root folder.

2007-03-20 01:12 AM

Hi There,

Please make sure that you are using the correct symbol (~) while executing the command
mv ~/public_html ~/public_html_backup

If you still have issue try to do the following command from your root directory (/home/username)

mv public_html public_html_backup

It should solve your issue.

2007-03-20 01:22 AM

Ok, I got past that.  In my browser the ~ looked like a -

Now that I did that though, I'm getting a "We're sorry, there was a problem" error.

If this helps any, here are the bottom few lines of my error log.

`process_each_request!'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:109:in `with_signal_handler'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:142:in `process_each_request!'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in `each_cgi'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each_cgi'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:141:in `process_each_request!'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:55:in `process!'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:25:in `process!'
   dispatch.fcgi:24

2007-03-20 01:27 AM

Ok, tech support had me put in an index.rhtml file, which did fix the problem.  It appears though that my existing list.rhtml file is no longer working, and my scaffold command in my controller is being ignored.  I developed the app on Rails 1.2, is there something new that I don't know about?

2007-03-20 01:54 AM

Hmm - I'm not sure - try setting the rails version in your environment.rb up to 1.2.3 or down to 1.1.6 and seeing what happens. (You'll need to restart your fastcgi or mongrel(s) )

2007-03-20 01:58 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.