Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!xanth!manes From: manes@xanth.UUCP (Mark Manes) Newsgroups: comp.os.vms Subject: VAX C! Help me!! Message-ID: <3297@xanth.UUCP> Date: Tue, 10-Nov-87 17:37:25 EST Article-I.D.: xanth.3297 Posted: Tue Nov 10 17:37:25 1987 Date-Received: Sat, 14-Nov-87 04:09:41 EST References: <8711091436.AA25227@ucbvax.Berkeley.EDU> <3296@xanth.UUCP> Reply-To: manes@xanth.UUCP (Mark Manes) Organization: Old Dominion University, Norfolk Va. Lines: 38 I have a problem folks, I have just installed VAX C, on VMS 4.6. I want to call LIB$SPAWN and can't find a decent example, this program that I am uploading does not work, however does compile, would someone be so kind as to show me where I have messed up? Thanks. #include #include #include /* declarations for LIB$SPAWN Run-time Library Call */ char command_text[80] = "SHOW USERS"; $DESCRIPTOR (command_text_ptr, command_text); char input_file = NULL; char output_file[10] = "disk.dat"; unsigned long int status; main() { printf("Attempting execution of %s\n",command_text); status = LIB$SPAWN(command_text, input_file, output_file); if (status != 0) { printf("Command Failed %d\n",status); exit(FALSE); } }