ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Building Unix Tools with Ruby
Subject:   Shebang line
Date:   2003-09-20 10:14:47
From:   anonymous2
Hint: Instead of hard-coding the ruby path, use


#!/usr/bin/env ruby


The ruby binary will be searched automatically then.