This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [??] can't get scripts to work!


Hi!

>>>>> Jens-Ulrik Petersen writes:

 juhp> Help!  I am probably being an idiot but I can't get guile
 juhp> scripts to run!  (I am using the latest guile-core from cvs.)

 juhp> #!/home/petersen/mount/solaris/bin/guile -s

Your script is being interpreted by /bin/sh.  Some operating systems
have a limitation on how big the #! line can be (usually 32
characters).

If that is true, then the problem is your kernel is only seeing
`/home/petersen/mount/solaris/bin'.

Here's the magic you want:

#!/home/petersen/mount/solaris/bin/guile -s
exec /home/petersen/mount/solaris/bin/guile -s "$0" ${1+"$@"}
exit 1
!#

Have fun,

-- 
 Gordon Matzigkeit <gord@fig.org> //\ I'm a FIG (http://www.fig.org/)
    Lovers of freedom, unite!     \// I use GNU (http://www.gnu.org/)

Copyright (C) 1998 FIG.org; the creator offers you this gift and wants it
to remain free.  See http://www.fig.org/freedom.html for details.
  This work may be copied, modified and distributed under the GNU General
  Public License (GPL).  See http://www.gnu.org/copyleft/gpl.html.