|
From: Andy B. <aba...@ca...> - 2004-04-14 16:28:39
|
I use the service wrapper on Linux, Solaris, and Mac OS X. My first thought is that it is a line-terminator issue. I use VIM for editing from the terminal. If I open a working shell script and issue the command ":set fileformat?" and it shows "unix", then I know the script will work. % ./test-unix.sh Hello World However, if the fileformat is reported as "dos", then executing the script produces this message: % ./test-dos.sh tcsh: ./test-dos.sh: Command not found. In bash I get a different error message: bash-2.05b$ ./test-dos.sh : bad interpreter: No such file or directory In the case of scripts with a fileformat of "dos", I just edit them with VIM and issue the command "set fileformat=unix" and then save the file. After that it works. --- Andy Barnett <aba...@ca...> Cantilever Technologies --- On Apr 14, 2004, at 10:45 AM, Dan Weston wrote: > I've used the service wrapper to deploy the same java app on windows, > linux, and solaris. I am now moving it over to Mac OS X. I'm having a > problem with the startup script that resides in the bin directory of > the service wrapper deployment hierarchy. From a terminal window in OS > X (Panther 10.3.3) , trying to start the script gets an error: > > -bash: ./taskserver: cannot execute binary file > > This is the exact same script that I use on all the other platforms. > The strange thing is that if I copy the contents of the script into a > fresh text file and save it, then I can run the copied script just > fine. So that makes me think that the contents of the script file are > fine, but there is something missing or wrong about the metadata for > the script file. > > Has anyone else run into this? > > thanks. > > Dan Weston > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |