HP3000-L Archives

October 2007, 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:
Denys Beauchemin <[log in to unmask]>
Reply To:
Denys Beauchemin <[log in to unmask]>
Date:
Wed, 24 Oct 2007 09:58:22 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (66 lines)
You may not be aware that all Unix-like commands are programs that reside in HPBIN.SYS.  These are the exact programs that are invoked by the POSIX shell, and indeed SH, the POSIX shell, is in HPBIN.SYS as well.

Loading that shell program is very heavy on the system, which is why I bypass it as much as possible by invoking the command that I want to execute in the shell, directly from MPE.  The only thing I need to do is to enclose the parameters following the command in quotes.

The shell command you showed simply wants to copy the file SRX913FX to a directory underneath your current working directory, called hfsfiles and adding an extension ".xls" to the file.  Calling cp directly and giving the source and target files is a very quick thing and it's what the shell (SH.HPBIN.SYS) is going to do for you anyway, but this way you avoid the middleman, so to speak.

You can use this direct construct to call all POSIX utilities, such as tar, rm, ls, who, etc, and everyone's favorite, vi.

I always have HPBIN.SYS in my HPPATH, it's tacked on at the end.  This way when I type ':who' I get a proper response.

Denys...

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf Of MICHAEL CAPLIN
Sent: Wednesday, October 24, 2007 9:25 AM
To: [log in to unmask]
Subject: Re: [HP3000-L] MISSING COLON BEFROE COMMAND

Thanks to all. 
What seems to work best and what I'm using is:
!RUN SH.HPBIN.SYS;INFO="-c cp SRX913FX ./hfsfiles/SRX913FX.xls"
I tried the other suggestions and had problems.
Mike


>>> "Per stberg" <[log in to unmask]> 10/24/2007 9:50 AM >>>
Hi
I think the problem is the shell eats more stdin (your jobstream) than
it should, including a "!" that the ci expects.
Maybe a :eod could help (as in
!RUN SH.HPBIN.SYS
cp SRX913FX ./hfsfiles/SRX913FX.xls
exit
!eod
)
but I think it's better to play with arguments to sh, I think there is
an argument that says something like "do these commands and then
exit". If that argument is "-c" it could look like:
!SH.HPBIN.SYS "-c cp SRX913FX ./hfsfiles/SRX913FX.xls"

hth
/per

2007/10/24, Michael Caplin <[log in to unmask]>:
> I have a stream with the following step in the middle of the stream:
> !RUN SH.HPBIN.SYS
> cp SRX913FX ./hfsfiles/SRX913FX.xls
> exit
> ------------------------------------------------------------------
> It usually fails (BUT NOT ALWAYS) as follows:
> :RUN SH.HPBIN.SYS
>
>
> END OF PROGRAM
> .................
> Missing colon before command name. (CIERR 981)
> REMAINDER OF JOB FLUSHED.
>
.....

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

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

ATOM RSS1 RSS2