T
Tim Conner
I think that this question might be due to me lacking some fundamental
linux knowledge but please can someone explain to me what is going on
here. I have a ruby script that I would like to call via a cron job. I
have made the necessary adjustments to crontab but i can't get it to
work. I think that this is because the user is getting a 'permission
denied' message when i try and call the script directly, however, it
works when i call it with a ruby prefix:
e.g.
user@server:ruby test_script.rb
=> script works
user@server:./test_server.rb
=> -bash: ./test_server.rb: Permission denied
The script starts with the shebang line: #!/usr/bin/env ruby
On my development machine, I'm using cygwin and the script works when
called either way:
e.g.
user@dev:ruby test_script.rb
=> script works
user@dev:./test_server.rb
=> script works
Please can someone explain why (on the server) I am getting the
permission denied message? The same user can successfully run the
script if they call it with the ruby prefix.
linux knowledge but please can someone explain to me what is going on
here. I have a ruby script that I would like to call via a cron job. I
have made the necessary adjustments to crontab but i can't get it to
work. I think that this is because the user is getting a 'permission
denied' message when i try and call the script directly, however, it
works when i call it with a ruby prefix:
e.g.
user@server:ruby test_script.rb
=> script works
user@server:./test_server.rb
=> -bash: ./test_server.rb: Permission denied
The script starts with the shebang line: #!/usr/bin/env ruby
On my development machine, I'm using cygwin and the script works when
called either way:
e.g.
user@dev:ruby test_script.rb
=> script works
user@dev:./test_server.rb
=> script works
Please can someone explain why (on the server) I am getting the
permission denied message? The same user can successfully run the
script if they call it with the ruby prefix.