Dec. 21st, 2002

gnee

Dec. 21st, 2002 03:34 am
waider: (Default)
This is too crunky for words:

#!/bin/bash
# Show an image, then kill the image viewer process after a period of time

if file $1 | grep -q image
then
  if anytopnm $1 | xview -quiet stdin &
  then
    PID=$!
    (sleep 5; kill -TERM $PID) &
    wait
  else
    echo $1 is unviewable >&2
  fi
else
  file $1
fi
waider: (Default)
interactive wireframe skeleton. Band name, rights, mine, etc.

Profile

waider: (Default)
waider

April 2017

S M T W T F S
      1
2345678
9101112131415
16171819202122
232425262728 29
30      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 7th, 2025 06:39 pm
Powered by Dreamwidth Studios