HP3000-L Archives

June 2003, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Wonsil <[log in to unmask]>
Reply To:
[log in to unmask][log in to unmask], 24 Jun 2003 16:54:24 +0100344_- Hello,

I have a COBOL program which does a Transact call of some sort (can't
remember which one now) which in turn calls VOPENFORMF. This works fine
using VPLUS but if we use a VPLUS emulator, we can see (from a log file)
that it calls VOPENFORMF which returns success but Transact then displays
the following error - [...]48_24Jun200316:54:[log in to unmask]
Date:
Thu, 26 Jun 2003 09:14:07 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
I wrote:
> But when I do, I get this message (under ALL users including root):
> /disc2/edi/script> ./orasn script interpreter "/usr/bin/sh" not found
> sh: ./orasn:  not found.

OK, I found the problem.  At this website it states:

http://homepages.cwi.nl/~aeb/std/hashexclam-1.html

1.4 The #! line

The syntax is as follows: #! followed by optional whitespace followed by the
interpreter pathname optionally followed by (whitespace followed by
interpreter arguments) followed by newline.

-----

A newline.  Hmm.  We'll, I'm modifying this script using Programmer Studio.
I can get to the HPUX directory through a Samba-like program called VisionFS
(formerly of SCO).  One can configure each share to translate CR/LF to LF by
file extension.  This script has no extension and so there's CRs on the end
of the line.  Good enough to screw up the first line and hence...

Any thoughts on a sed script to remove CRs from a group of text files?  ;-)

Mark Wonsil

BTW, Evan Vaala came up with the same thought simultaneously, which puts me
in some pretty good company.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2