Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!decvax!decwrl!ucbvax!info-vax From: RAY@SRI-KL.ARPA Newsgroups: mod.computers.vax Subject: Re: Calling PRINT from a C program Message-ID: <8602062145.AA26209@ucbvax.berkeley.edu> Date: Thu, 6-Feb-86 15:58:53 EST Article-I.D.: ucbvax.8602062145.AA26209 Posted: Thu Feb 6 15:58:53 1986 Date-Received: Sat, 8-Feb-86 05:01:56 EST References: Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 17 Approved: info-vax@sri-kl.arpa The best way to submit a print job if there are no options is to, works for both v3.x and v4.x, is to set the FAB$V_SPL bit in FAB$L_FOP in the file FAB (Translation set the bit that says this file should be spooled to SYS$PRINT in the long word Fab OPtions of the File Access Block). If you need to specify a different queue with options then the best bet is to use the $SNDSMB system service for V3.x or the $SNDJBC system service for V4.x (The $SNDSMB is being replaced). You should refer to the "Record Managment Services" and "System Services" for details on the different methods. Lib$spawn requires a CLI to do it's setup and therefore doesn't work from a detached process. Ray -------