Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question Display Images Whilst Running Other Functions


    So I'm teaching myself some scripting to try and create a fairly simple photobooth type affair... I've got gphoto2 playing fairly nicely with my canon, and imagemagick taking that output and rearranging it to a vertical format...

    *smacks forehead*

    Fairly simple to do what I needed initially:
    feh -FZ -D 1 --cycle-once $COUNTDOWN & sleep 2 &
    feh -FZ -D 20 --cycle-once $SMILE
    This shows a countdown from 5 to 1 in images and $SMILE is big that says 'smile'

    So my question is thus... (fairly basic but I can't get my head round the use of & and sleep in this context) what's the best way to call my gphoto instructions (or a script with them in) mid way through the above code?!

    'feh code'
    sleep 5
    'gphoto code'

    this kind of thing seems like the way, but the'sleep 5' and 'gphoto code' doesn't start until feh is finished in this case?? It's late and I must be missing something obvious - but any pointers appreciated.
    Last edited by raguff; 11-04-2010 at 11:45 PM.

  2. #2
    Just Joined! cfajohnson's Avatar
    Join Date
    May 2007
    Toronto, Canada

    'feh code' &
    sleep 5
    'gphoto code'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts