dvcont rewind - any way to tell when done other than looping on 'dvcont status' exit status?
david <[email protected]> Mon, 26 Sep 2011 22:19:10 -0500
| Newsgroups | gmane.comp.video.kino.devel |
|---|---|
| Message-ID | <[email protected]> |
Dan, All, dvcont works fine, but it certainly isn't serial in processing commands. From the man page, 'dvcont <command1> [ <command2> ... ]', I thought 'dvcont rewind eject' would rewind -- then eject. But when I saw the tape eject immediately, I knew that was a no-go. It seems simple "hey dummy, just look at the camcorder", but the camcorder is hooked to a remote box and dvgrab/dvcont operations are done over ssh so knowing when the rewind is done is something more than just looking at the camcorder. What I've done is just run dvcont status and check for the "Winding reverse" or "Winding stop" status to determine when the rewind completes: (stat=$(dvcont status); while [[ $stat != "Winding stop" ]]; do sleep 10; stat=$(dvcont status); done) Works fine, but if there is an easier way, I'd appreciate a suggestion. Thanks. -- David C. Rankin, J.D., P.E. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1