%META:TOPICINFO{author="ChrisBartram" date="1170383848" format="1.1" version="1.2"}% %META:TOPICPARENT{name="Hp3000PosixShell"}% ---+ [[Hp3000MpeToPosixCommands][Some HP3000 MPE commands and their POSIX equivalents]] (Thanks to ChrisRice From the 4.5 class on the original list - now expanded (thanks JeffVance) to include new 5.0 commands )
ABORTJOB kill ALTACCT chmod ALTGROUP chmod ALTFILE chown ALTSEC chmod BYE exit CALC expr, bc CCXL c89 CCXLLK c89 CHGROUP cd CHDIR cd CI sh CI callci COPY cp DISALLOW chmod DO r ECHO echo EDITOR vi ELSE else ELSEIF else if ENDIF fi ENDWHILE done EXIT exit FCOPY cp, dd, lp FILE ln HELP help, man HPDESK mailx HPSEARCH grep IF if LINK c89 LISTACCT ls -l LISTEQ ls -l LISTFILE ls LISTFILE;name= find LISTGROUP ls -l LISTREDO history NEWACCT mkdir NEWDIR mkdir NEWLINK ln -s NEWGROUP mkdir PRINT more, cat PURGE rm PURGEACCT rmdir, rm PURGEDIR rmdir, rm PURGELINK rm PURGEGROUP rmdir, rm REDO r RELEASE chmod 777 RENAME mv REPORT,DISKUSE du, df, find RESTORE tar, cpio, pax RETURN break ?? SECURE chmod SET set SETDUMP set -x SETJCW = SETMSG mesg SETVAR = SHOWJCW echo SHOWJOB ps, who SHOWPROC ps SHOWME who am I, pwd, uname SHOWTIME date SHOWVAR @ set STORE tar, cpio, pax STREAM at, batch, bg, crontab TELL talk, write, mailx WARN talk, write, mailx, wall XEQ . ??I see two meanings for the FILE command: 1) Used to convert between different file types. This has no meaning in the POSIX context because the POSIX context really only understands one filetype - "bytestream". 2) Used to associate one filesystem name to another filesystem name. This can be done with the link (ln) command. --[[MikeBerkowitz]] MPE: FILE DUMMY=DUMMY2 POSIX: ln -s DUMMY2 DUMMY (note: this will place an actual file on the drive, e.g. a permanent file equation so to speak. This is Posix symbolic linking of files.) There is no reason you have to execute these commands from the posix shell. E.g., LS.HPBIN.SYS "-al" works just fine from the CI; same as: "ls -al" does from the Posix shell. banner.hpbin.sys ":^)" --[[DanHollis]]
WELCOME vi /etc/motd HELLO;TERM= export TERM= CCXLLK is sort of make option logon;system /etc/profile option logon ./.profile SET HPPATH= export PATH=And I love the "hot" program replacement in the shell. Who cares if people are running the program. "rm program". "mv newprog program" new version is in. --[[JeffKell]] Take care with this last part. I did the following:
:BUILD OLDFILE;REC=-80,,F,ASCII
:LN.HPBIN.SYS "-s ./OLDFILE ./NEWFILE"
:LISTF ???FILE,2
ACCOUNT= TELAMON GROUP= RANDY
FILENAME CODE ------------LOGICAL RECORD-----------
SIZE TYP EOF LIMIT R/B
NEWFILE 1B BAL 9 1024 1
OLDFILE 80B FA 0 1023 3
:PURGE NEWFILE
:LISTF ???FILE,2
NEWFILE 1B BAL 9 1024 1
:LS.HPBIN.SYS "-l ./NEWFILE"
lrwxrwxrwx 1 MANAGER.SYS TELAMON 9 May 23 13:43 ./NEWFILE -> ./OLDFILE
Notice that the PURGE deleted _OLDFILE_, not NEWFILE, although the link of NEWFILE -> OLDFILE still remained. If you build a link using LN.HPBIN.SYS, you'll have to get rid of it using RM.HPBIN.SYS, _not_ PURGE.
--[[RandyMedd]]
This is a distinction between PURGE and PURGELINK in the CI, and is an important concept for MPE users to understand. If you :PURGE a link, it is like saying :PURGE *FILE, where FILE references a previous file equation. The file on the right side of the file equation will be purged.
If you want to get rid of the link, use :PURGELINK NEWFILE in the CI. At the 1994 Interex in Denver, I did a paper called "A System Manager's Look at MPE/iX 5.0", which covered some MPE/POSIX topics like this. I tried to explain POSIX things in MPE/iX terms. I wrote it for someone who is trying to understand POSIX-style concepts from an MPE/iX knowledge base. It is paper #8008 in the proceedings from that conference.
--[[KevinCooper]]
-- Main.ChrisBartram - 09 Jun 2006