Newbie question: Calling a shell script from ruby

I thought that Zubin’s original question was about calling perl scripts.

Don’t know why, but I also assumed that he was on a unix box. I don’t know
if Windows has anything like the #! magic number.

Mike

···

-----Original Message-----
From: GOTO Kentaro [mailto:gotoken@notwork.org]

At Wed, 25 Sep 2002 09:39:20 +0900, Henderson, Michael D michael.d.henderson@lmco.com wrote:

That works if foo.sh has “#! /usr/bin/env perl -” (or the not-made-up
equivalent), which is very much highly recommended.

Thanks for helpful supplementation. But why perl for foo.sh? :slight_smile:

– Gotoken