Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Posts
    2

    Question Display Images Whilst Running Other Functions


    Hi,

    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...

    EDIT:
    *smacks forehead*

    Fairly simple to do what I needed initially:
    Code:
    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.
    Thanks!
    Last edited by raguff; 11-04-2010 at 11:45 PM.

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

    Code:
    'feh code' &
    sleep 5
    'gphoto code'
    wait

Posting Permissions

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