|
From: Dan W. <dw...@ne...> - 2004-04-14 17:15:42
|
I double-checked the script file again on the Mac. It has unix line termination. It is not a binary file, I can open it with VIM or bbedit. I can also run the mac version of the wrapper executable, as you did below, and also the realpath executable. I'm stumped. I can get it to work by copying the contents of the file and pasting into a new file, but not by doing a save-as on the file that doesn't work. This is probably a weird problem with my particular script, maybe it has a bad byte in it or something... I was hoping to use the same script file for all my target platforms - windows, linux, solaris, and Mac. I guess I'll take the file that works on the mac now and see if it works on the other platforms. thanks. Dan Weston On Apr 14, 2004, at 9:37 AM, Andy Barnett wrote: > I just realized that if I try to execute the binary wrapper executable > rather than the shell script I get the same message you saw: > >> bash-2.05b$ file * >> wrapper-linux: ELF 32-bit LSB executable, Intel 80386, version 1 >> (SYSV) >> wrapper-macosx: Mach-O executable ppc > >> bash-2.05b$ ./wrapper-linux >> bash: ./wrapper-linux: cannot execute binary file > >> bash-2.05b$ ./wrapper-macosx >> Usage: ./wrapper-macosx <file> [configuration properties] [...] > > Is it possible you accidently copied the binary file instead of the > shell script and you are now trying to execute the binary file rather > than the shell script? > > --- > 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 > |