The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
waiting mpang_ Shell Programming and Scripting 1 10-04-2007 02:52 AM
Waiting between commands patwa UNIX for Dummies Questions & Answers 1 06-16-2007 02:01 PM
Process(s) ID waiting on IO? Citrus143 UNIX for Advanced & Expert Users 9 03-29-2007 05:28 PM
Waiting on a group tphyahoo Shell Programming and Scripting 1 05-24-2006 05:19 PM
waiting process shukla_chanchal Linux 2 11-03-2005 07:00 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-28-2008
mainegate mainegate is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 23
not waiting

I have a script that runs Compressor and converts the file then I want it to inject the file with Flvtool2. My script works fine but the flvtool2 is starting too early. I have tried to put it in the background by putting a "&" sign at the end and then put a "wait" on a new line. Anyone have any other tips?
  #2 (permalink)  
Old 10-28-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
If starting to early, can you check for file existence before starting?

can you do something like


Code:
if [ -s my_important_file ]
  then
    blah blah
fi

you might want to put that in a loop to keep trying until success
also, inside the loop you might try a wait 60 (to delay 60 seconds before trying again.)
  #3 (permalink)  
Old 10-29-2008
mainegate mainegate is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 23
It still doesn't wait. I think the problem is it creates a flv file when it is encoding so there technically is a file there. Any suggestions around this?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0