Re: Viewing multiple .png files simultaneously



On 2007-09-19, Josef Moellers wrote:
Chris F.A. Johnson wrote:
On 2007-09-19, philbo30 wrote:
...

ImageMagick is just the tool I was looking for; it works great. The
only additional thing I would like to do is specify the amount of time
that the image displays. As an example, I want it to display for 60
seconds. I didn't see that capability associated with the "display"
application, but then again I didn't look that much either. Ideas?


display ... &
sleep 5
kill "$!"


<pedantic>
make that
display ... &
sleep 60
kill $!
</pedantic>

What if IFS is not the default? E.g.:

$ (
IFS=1234567890
sleep 20 &
sleep 2
kill $!
)
bash: kill: `': not a pid or valid job spec
bash: kill: `': not a pid or valid job spec
bash: kill: `': not a pid or valid job spec
bash: kill: `': not a pid or valid job spec
$

But:

$ (
IFS=1234567890
sleep 20 &
sleep 2
kill $!
)
$

In this case the quotes are needed; in other cases it doesn't hurt
to have them.


--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
.



Relevant Pages