Dave Turner on Mon, 6 Aug 2001 11:20:06 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] ending a process from outside


Try this:

http://www.linuxbrit.co.uk/feh/

Jeff Abrahamson wrote:
I want to display an image for four seconds (from the shell, although
any app to do it is fine). Then I want to be able to write something
like

    $ for f in *.jpg; do disp_for 4 $f; done

and get a slide show.

The slide show is the real goal, but the process terminator widget
seems useful in other contexts (don't ask me what, just intuition).

I'm not sure how to do this without writing a "real" program. Whatever
I come up with, I just want to be able to call it from the shell. A
shell function seems ideal.

Any thoughts on direction?

Again, I know I could write a C or perl program that does a fork,
waits four seconds in the parent, then kills the child with first
SIGINT, then SIGKILL. And I know that wouldn't be very hard. But it
seems there should be a simpler way.





-- -- -[Dave Turner Stalk me: (215)-545-2859] --------------------------------------------------------------- "Nah, we have found the natural evolution of American activism: outsource our patriotism to Russians. Let Russians stand up for our rights. Yeah, that's the ticket!" -Sloppy, seen on Slashdot


______________________________________________________________________ Philadelphia Linux Users Group - http://www.phillylinux.org Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce General Discussion - http://lists.phillylinux.org/mail/listinfo/plug