tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RCSigs.ca" <rcs...@rcsigs.ca>
Subject RE: Tomcat 4.1.24 Startup.sh - bad interpreter error (solved)
Date Mon, 19 May 2003 01:10:25 GMT
RE: Tomcat 4.1.24 Startup.sh - bad interpreter error (solved)I couldn't see
any of the characters with the od -c command and the tr -d '\r' just gave me
an error ( I admit, I don't know how to use it and hadn't read the man yet
when someone pointed me to vi, in the end I just copied over the offending
file )  I remember someone at work recently who went through h*ll to find
the special method to get the ^M to be the single character as opposed to
two, unfortunatly, I couldn't remember the key sequence.  I do thank you for
your help though!

Joe
  -----Original Message-----
  From: Mayne, Peter [mailto:PeterMayne@ap.spherion.com]
  Sent: Sunday, May 18, 2003 7:46 PM
  To: 'Tomcat Users List'
  Subject: RE: Tomcat 4.1.24 Startup.sh - bad interpreter error (solved)


  That's why I explicitly said "Use od -c to check, and tr -d '\r' to remove
them", rather than relying on your current vi settings. (If I could remember
the setting to display the ^M characters...)

  PJDM
  --
  Peter Mayne
  Technology Consultant
  Spherion Technology Solutions
  Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602
  T: 61 2 62689727  F: 61 2 62689777

  > -----Original Message-----
  > From: RCSigs.ca [mailto:rcsigs@rcsigs.ca]
  > Sent: Saturday, 17 May 2003 11:43 AM
  > To: Tomcat Users List
  > Subject: RE: Tomcat 4.1.24 Startup.sh - bad interpreter error (solved)
  >
  >
  > Thank you everyone.  As you all suggested, this problem was indeed a
  > hold-over from editing the file on a windows box.  Althought
  > I couldn't see
  > the ^M the [DOS] tag did show up at the bottom of the vi
  > window.  I replaced
  > the catalina.sh file and all worked great.  Thanks all for your help.
  >
  > Cheers,
  >
  > Joe
  >
  > -----Original Message-----
  > From: John Turner [mailto:tomcat-user@johnturner..com]
  > Sent: Friday, May 16, 2003 8:42 AM
  > To: Tomcat Users List
  > Subject: Re: Tomcat 4.1.24 Startup.sh - bad interpreter error
  >
  >
  >
  > There's no reason to use "sh /some/path/script.sh".  Just
  > "./script.sh"
  > will work.
  >
  > In any case, you typically won't "see" the ^M unless you have
  > it set to
  > show them.  In vi you might see "[dos]" down at the bottom on
  > the status
  > screen.  This is worth checking out...I wasted almost 6 hours
  > on a dinky
  > little perl script a couple weeks ago because of the ^M.
  >
  > John
  >
  > On Thu, 15 May 2003 23:03:45 -0400, RCSigs.ca
  > <rcsigs@rcsigs.ca> wrote:
  >
  > > RE: Tomcat 4.1.24 Startup.sh - bad interpreter errorI am
  > using a windows
  > > terminal to do my work but in an ssh terminal.  I couldn't
  > find any ^M
  > > characters in startup.sh though.  To be sure, and after
  > checking versions
  > > of
  > > startup.sh, I copied the one used with 4.1.18 to 4.1.24/bin
  > but with no
  > > luck, it had the same result.
  > >
  > > Joe
  > > -----Original Message-----
  > > From: Mayne, Peter [mailto:PeterMayne@ap.spherion..com]
  > > Sent: Thursday, May 15, 2003 10:44 PM
  > > To: 'Tomcat Users List'
  > > Subject: RE: Tomcat 4.1.24 Startup.sh - bad interpreter error
  > >
  > >
  > > If you've copied the file in binary mode from Windows,
  > there could very
  > > well be a ^M on the end of every line, so the shell is trying to run
  > > catalina.sh using "/bin/sh^M".
  > >
  > > Use od -c to check, and tr -d '\r' to remove them.
  > >
  > > PJDM
  > > --
  > > Peter Mayne
  > > Technology Consultant
  > > Spherion Technology Solutions
  > > Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602
  > > T: 61 2 62689727  F: 61 2 62689777
  > >
  > >
  > >
  > >
  >
  >
  >
  > --
  > Using M2, Opera's revolutionary e-mail client:
  > http://www.opera.com/m2/
  >
  >
  > ---------------------------------------------------------------------
  > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
  > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
  >
  >
  > ---------------------------------------------------------------------
  > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
  > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
  >

The information contained in this email and any attachments to it:

(a) may be confidential and if you are not the intended recipient, any
interference with,
use, disclosure or copying of this material is unauthorised and prohibited;
and

(b) may contain personal information of the recipient and/or the sender as
defined
under the Privacy Act 1988 (Cth). Consent is hereby given by the
recipient(s) to
collect, hold and use such information and any personal information
contained in a
response to this email, for any reasonable purpose in the ordinary course of
Spherion's
business, including forwarding this email internally or disclosing it to a
third party. All
personal information collected by Spherion will be handled in accordance
with
Spherion's Privacy Policy. If you have received this email in error, please
notify the
sender and delete it.

(c) you agree not to employ or arrange employment for any candidate(s)
supplied in
this email and any attachments without first entering into a contractual
agreement with
Spherion. You further agree not to divulge any information contained in this
document
to any person(s) or entities without the express permission of Spherion.



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message