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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,783da1e5184ba1c9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!t30g2000prm.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: system call Date: Mon, 15 Aug 2011 08:40:34 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2af248fb-c1d4-4f2e-8011-a498c53dfa42@t30g2000prm.googlegroups.com> References: <4e46c5c3$0$32648$426a74cc@news.free.fr> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1313422835 21654 127.0.0.1 (15 Aug 2011 15:40:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 15 Aug 2011 15:40:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t30g2000prm.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: ARLUEHNKC X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20634 Date: 2011-08-15T08:40:34-07:00 List-Id: On Aug 13, 11:43=A0am, "philippe.tor...@free.fr" wrote: > Hello, > > I have a program, the time of his execution, constructed images, in fact > files in PPM (P3, plain text mode) > In short, the program does not deal with the viewing of these images > (failing to find a library to do ...) > > So I want to entrust this task to an external application (imview, > xview, qiv ... etc): > > res =3D system ("imview out.ppm"); > > But each time this code is a new process > image viewer (here imview) that arises. > > My application is waiting while I close imview to move to > the next iteration. > > Well, now you have guessed the question for each passage on the line abov= e, > I would like the external program (imview, qiv, xview ... whatever), load= a new image > > Regards! I'm not real clear on what you're trying to do. But it sounds like you want to run imview or some other program once, and have your program tell that program to display a new image whenever it wants to display something new. In order for that to work, the image displayer has to be set up to accept that kind of communication. However, if by "imview" you mean the program documented at http://hugues.zahlt.info/software_imview.html, that program appears to have a server mode. So you'll need to run it in server mode and then communicate with it via a TCP/IP socket. The documentation should explain how to do this, but I haven't looked over it carefully. I hope this is helpful. I don't really know anything about this program and just did a quick Google search to see if I could come up with something helpful. But it might be just what you're looking for. If it's not helpful at all, sorry. -- Adam