[sf-perl] simultaneous processes?

Mark Grimes mgrimes at cpan.org
Thu Mar 4 07:41:26 PST 2010


There are better ways of dealing with this (forking, one of the IPC
modules, etc), but these are a quick and dirty way to do what you
want:

  perl -e'system(q{sh -c "( xlogo & ) ; xlogo "});'
  perl -e'system(q{ ( xlogo & ) ; xlogo });'

(Replacing the xlogo commands with evice and terminal, of course.)


2010/3/4 Richard Reina <gatorreina at gmail.com>:
> I use evince to view a good number of tiff files.  I have written a quick
> little script to help me associate the tiff files with various database
> records.  This script runs as part of larger API that runs in a very minimal
> xwindows system ( no desktop just twm as a window manager.) As it stands now
> I view the file with system("evince file.tiff"); close evince and execute
> the script which helps me associate and save the file.  I was wondering if
> there is a way to for my script to open a terminal while evince is still
> open so I can still look at the file while I'm saving it.
>
> I've tried system("evince file.tiff & gnome-teminal --geometry=50x35-0+0");
> but then I don't see evince.
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> Richard
>
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>
>


More information about the SanFrancisco-pm mailing list