# Newbie question - script/server doesn't run without explicit

**URL:** <https://www.ruby-forum.com/t/newbie-question-script-server-doesnt-run-without-explicit/60183>\
**Category:** Rails\
**Created:** [May 10, 2006, 11:22pm UTC](https://www.ruby-forum.com/t/newbie-question-script-server-doesnt-run-without-explicit/60183 "2006-05-10T23:22:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_McNeel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@Steven\_McNeel](https://www.ruby-forum.com/u/Steven_McNeel)\
**Post date:** [May 10, 2006, 11:22pm UTC](https://www.ruby-forum.com/t/newbie-question-script-server-doesnt-run-without-explicit/60183/1 "2006-05-10T23:22:12Z")

</div>

Hi,

This one is probably an easy one, but is very troubling to me. I can’t  
just  
say:

script/server

and watch WEBrick start. I have to say:

ruby script/server

The first line in the server script is:

#!/usr/bin/env ruby

which invokes ruby just fine on the command line. For fun, I changed  
the  
line to point directly to my executable:

#!/usr/local/bin/ruby

But still, same result. I just get my prompt back. But invoking the  
script  
explicitly with ruby in front of it actually starts WEBrick.

This may seem minor, but none of the online examples I see for UNIX uses  
the  
explicit ruby command. #! should work fine, right?  
I happen to be experiencing other problems (with FastCGI and Typo), and  
I’m  
wondering if they might be related.

Ruby 1.8.4  
Rails 0.14.4  
Linux Fedora Core 4

Thanks,  
Steve

P.S. Same goes for other scripts, like script/process/spawner. So the  
problem is global.

---

<div class="post-metadata">

**Author:** ![Steven\_McNeel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@Steven\_McNeel](https://www.ruby-forum.com/u/Steven_McNeel)\
**Post date:** [May 10, 2006, 11:41pm UTC](https://www.ruby-forum.com/t/newbie-question-script-server-doesnt-run-without-explicit/60183/2 "2006-05-10T23:41:21Z")

</div>

Steven McNeel wrote:

> The first line in the server script is:
> 
> This may seem minor, but none of the online examples I see for UNIX uses  
> the explicit ruby command. #! should work fine, right?

Are your scripts executable?

chmod a+x script/server.

–

Ray

---

<div class="post-metadata">

**Author:** ![Steven\_McNeel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@Steven\_McNeel](https://www.ruby-forum.com/u/Steven_McNeel)\
**Post date:** [May 11, 2006, 12:02am UTC](https://www.ruby-forum.com/t/newbie-question-script-server-doesnt-run-without-explicit/60183/3 "2006-05-11T00:02:52Z")

</div>

> This one is probably an easy one, but is very troubling to me. I can’t

> > This may seem minor, but none of the online examples I see for UNIX uses  
> > the explicit ruby command. #! should work fine, right?
> 
> Are your scripts executable?
> 
> chmod a+x script/server.
> 
> –
> 
> Ray

Yes, all of my scripts are all executable. In fact, I ran chmod -R  
777 \*over the whole hierarchy, to eliminate any potential permission  
issues.

Thanks,  
Steve
