From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tom Linden Newsgroups: gmane.os.tru64.managers Subject: Running csh script after ftp via W2K Date: Fri, 18 Feb 2005 08:18:38 -0800 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1108743759 18713 80.91.229.2 (18 Feb 2005 16:22:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Feb 2005 16:22:39 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Feb 18 17:22:39 2005 Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1D2AtX-0001N1-Rp for gotm-tru64-unix-managers@gmane.org; Fri, 18 Feb 2005 17:22:20 +0100 Original-Received: (qmail 22088 invoked by uid 5); 18 Feb 2005 16:24:37 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 22073 invoked by uid 49501); 18 Feb 2005 16:24:36 -0000 Original-Received: from tom@kednos.com by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.4.110):SA:0(-2.3/5.0):. Processed in 0.39252 secs); 18 Feb 2005 16:24:36 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 18 Feb 2005 16:24:36 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IC4006Z388UXP@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 18 Feb 2005 11:24:34 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-X27 #30899) id <0IC400B028800Y@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 18 Feb 2005 11:24:27 -0500 (EST) Original-Received: from FREJA.KEDNOS.COM (mail.kednos.COM [206.55.236.242]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IC400LEM86CIK@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 18 Feb 2005 11:23:01 -0500 (EST) Original-Received: from hyrrokkin (206.55.236.250) by FREJA.KEDNOS.COM (MX V5.3 An1f) with ESMTP for ; Fri, 18 Feb 2005 08:22:58 -0800 Original-To: Tru64 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-Envelope-From: X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on email.cind.ornl.gov X-Spam-Level: X-MailScanner-To: gotm-tru64-unix-managers@gmane.org Xref: main.gmane.org gmane.os.tru64.managers:8041 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:8041 I had to poer up a 4.0d machine and discovered that the license paks had expired. Logged in as root and transferred the license pak file My login shell is bash so I run the script as root> /bin/csh pak.txt then^M: Command not found. but there seems to be a problem recognizing end of line. When I dump the file I can see the lines are terminated with cr nl ( OX0d 0X0a or ^J ^M ) When I read the file with emacs and search for ^M none is found, but ^J is. How should the lines be terminated for the csh? I guess ^J. Any tips for stripping out the ^M? The first few lines of the file start #!/bin/csh # # ******************************************************************* # Issued by the License Key Management Group # Nashua - New Hampshire - USA # ******************************************************************* # if `whoami` != "root" then echo "You must be superuser to run this script" exit 1 endif test -r /etc/lmf if ($status != 0) then set lmfcom="/usr/sbin/lmf" else set lmfcom="/etc/lmf" endif echo ""