From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7d6b00835cfb92fc X-Google-Attributes: gid103376,public From: "Tarjei T. Jensen" Subject: Re: file to printer (spooling) Date: 2000/03/24 Message-ID: <8bfhsq$loc2@ftp.kvaerner.com>#1/1 X-Deja-AN: 601710480 Content-Transfer-Encoding: 7bit References: <8bddei$gmg$1@infosun2.rus.uni-stuttgart.de> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 Organization: Kv�rner Group IT Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-03-24T00:00:00+00:00 List-Id: Peter Hermann wrote in message <8bddei$gmg$1@infosun2.rus.uni-stuttgart.de>... >we need help: >(First of all, our primary goal is portability) >We create, write (several ada.text_io.put_line), >and close a text file. >Thereafter we want to spool that file to the printer >in order to let it print asynchronously. >How should we do this from within the Ada program? >We do need that action from within the running Ada program. > >Do we need an implementation dependent operating system command call? >If yes, what is the name of that call? You should implement the print command either as a configurable string in your application or as a external script file. E.g. in Unix/linux there is two ways to print a file. E.g. lp or lpr. In additon you have to be careful about deleting the file because the print system might not copy the file to be printed and only use a symbolic link to it. So if you print and then delete, you might end up deleting the file before it is printed. Greetings,