From: <bc...@wo...> - 2000-11-01 16:17:09
|
>> This is a bit strange. The script didn't have the execute bit set? The >> installer does a: >> Runtime.getRuntime().exec("chmod 755 " + fullname ); >> after creating the scripts. (The old installer did a "chmod 777" but I >> think LiftOff is more correct here). Were there any messages shown in >> the console window where you started the installer? > >The execute bits were set: > >-rwxr-xr-x 1 jeff jeff 372 Nov 2 02:16 jython > >I think what happens is this: > >On Unix, EOL corresponds to <LF>. On Windows it corresponds to <CR><LF>. >So when the script is saved in DOS file format, the first line reads: > >#!/bin/sh<CR><LF> > >The shell reads everything up to EOF *on Unix*, ie <LF>, resulting in: > >#!/bin/sh<CR> > >It then tries to find the file, and can't because of the <CR>, so it >fails with the error message: >bash: ./jython: No such file or directory > >ie, it's saying "there's no file called "/bin/sh<CR>". > >Rather nasty :) Yeah, but your explanation makes sense. Thanks. regards, finn |