The solution below works. But when I have to pass a scalar to the program it does not.  For example if I do something like:<br> perl -e&#39;system(q{ ( evince $file &amp; ) ; xlogo });&#39;<br><br>evince opens with this error Unhandled MIME type: &quot;x-directory/normal&quot;<br>
<br>Does any one know how I can remedy this?<br><br>Thanks.<br><br>Richard<br><br><br><br><div class="gmail_quote">2010/3/4 Mark Grimes <span dir="ltr">&lt;<a href="mailto:mgrimes@cpan.org">mgrimes@cpan.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">There are better ways of dealing with this (forking, one of the IPC<br>
modules, etc), but these are a quick and dirty way to do what you<br>
want:<br>
<br>
  perl -e&#39;system(q{sh -c &quot;( xlogo &amp; ) ; xlogo &quot;});&#39;<br>
  perl -e&#39;system(q{ ( xlogo &amp; ) ; xlogo });&#39;<br>
<br>
(Replacing the xlogo commands with evice and terminal, of course.)<br>
<br>
<br>
2010/3/4 Richard Reina &lt;<a href="mailto:gatorreina@gmail.com">gatorreina@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; I use evince to view a good number of tiff files.  I have written a quick<br>
&gt; little script to help me associate the tiff files with various database<br>
&gt; records.  This script runs as part of larger API that runs in a very minimal<br>
&gt; xwindows system ( no desktop just twm as a window manager.) As it stands now<br>
&gt; I view the file with system(&quot;evince file.tiff&quot;); close evince and execute<br>
&gt; the script which helps me associate and save the file.  I was wondering if<br>
&gt; there is a way to for my script to open a terminal while evince is still<br>
&gt; open so I can still look at the file while I&#39;m saving it.<br>
&gt;<br>
&gt; I&#39;ve tried system(&quot;evince file.tiff &amp; gnome-teminal --geometry=50x35-0+0&quot;);<br>
&gt; but then I don&#39;t see evince.<br>
&gt;<br>
&gt; Any help would be greatly appreciated.<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Richard<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; SanFrancisco-pm mailing list<br>
&gt; <a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br>
&gt; <a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
SanFrancisco-pm mailing list<br>
<a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>
</blockquote></div><br>