%%s 0/0/0 %%d D 1.1 26-Mar-82 12:32:13 v1.1 1 0 %%c Version 1.1 is the Spring 1982 Distribution of the LBL/Hughes release %%c of the Software Tools Virtual Operating System software and documentation. %%T %%I 1 #-h- mcrbck.r 487 asc 25-mar-82 07:32:07 v1.1 (sw-tools v1.1) #-h- main 414 asc 25-mar-82 07:31:54 v1.1 (sw-tools v1.1) subroutine main character buf(MAXLINE), pid(PIDSIZE) integer getarg, spawn string local "local" string usestr "usage: mcrbck @"MCR command line@"" call query(usestr) if (getarg(1, buf, MAXLINE) == EOF) call error(usestr) if (spawn(local, buf, pid, BACKGR) != OK) call error("Error spawning background process.") else { call putlin(pid, ERROUT) call remark(": spawned in background.") } return end #-h- mcrbck.fmt 856 asc 25-mar-82 07:32:08 v1.1 (sw-tools v1.1) .so ~bin/manhdr .hd Mcrbck (1) 12-Mar-82 spawn MCR commands in the background .sy mcrbck "MCR command line" .ds `mcrbck', when installed with a "...XXX" style name, permits MCR commands to be spawned in the background. This capability already exists in the shell, since any command can be spawned in the background just by appending an ampersand (&) to the command. If the spawn was successful, the command will be redisplayed to the user. If any embedded blanks are needed in the MCR command, the command must be surrounded by quotes. For example, if mcrbck is installed as "...MBK", then .sp .ce >mbk "pip vd3.lst=vd3:[*,*]/li" .sp will cause the pip command to be performed in the background, permitting the requestor to continue with other work. .fl .sa sh - the writeup on the shell for information on background processing .di .au Joe Sventek .bu %%E 1