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!watmath!clyde!cbosgd!ucbvax!info-vax From: info-vax@ucbvax.UUCP Newsgroups: mod.computers.vax Subject: Calling PRINT from a C program Message-ID: <8602032142.AA02106@ia-sun2.uucp> Date: Mon, 3-Feb-86 16:42:58 EST Article-I.D.: ia-sun2.8602032142.AA02106 Posted: Mon Feb 3 16:42:58 1986 Date-Received: Fri, 7-Feb-86 21:06:38 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 14 Keywords: PRINT VMS Approved: info-vax@sri-kl.arpa I am trying to print a file "foo.bar" from C under VMS 3.6. I have been successful at using LIB$SPAWN to spawn the command "print foo.bar" BUT this will ONLY work with an interactive session. It fails as a detached process and a batch job. I had originally hoped that there would be a "print.exe" that I could use SYS$CREPRC on but alas there is none. Could anyone give me pointers on how to print a file given a string containing the file name and the appropriate options. It MUST be able to run as either a batch job or a detached process. -David Robinson ia-sun2!david@csvax.caltech.edu seismo!cit-vax!ia-sun2!david