8 ago 2011

Shell scripts secuenciales


#We launch script in background
./twitter_json.sh&

#Capture its PID
pid="${!}"

#This waits until the program with the given PID ends
wait $pid

#We launch script in background
./fbook_json.sh&