Transcode version checking bug

Sean Gallagher <[email protected]>
Newsgroups gmane.comp.video.dvdrip.user
Message-ID <[email protected]>
This is the command:
$ execflow ssh -o PreferredAuthentications=publickey shannon@shannon "umask 
0002; sh -c 'echo --ssh_connect--; echo Ok; 
echo --ssh_connect--;echo --data_base_dir_content--; 
cd /home/shannon/.reba_encode; echo * | perl -pe \"s/ /chr(10)/eg\" | 
sort;echo --data_base_dir_content--; echo --write_test--; echo node write 
test > /home/shannon/.reba_encode/Shannon-file-write-test && echo SUCCESS; 
rm -f /home/shannon/.reba_encode/Shannon-file-write-test; 
echo --write_test--; echo --transcode_version--; transcode -v; 
echo --transcode_version--; '"

This is what it did
EXEC_FLOW_JOB_PID=12395
--ssh_connect--
Ok
--ssh_connect--
--data_base_dir_content--
*
--data_base_dir_content--
--write_test--
SUCCESS
--write_test--
###### NOTICE HERE ######
--transcode_version--
--transcode_version--
transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
###### END ######

echo had finished both of it jobs before transcode had written it's version, 
which seems like a race condition but the ; did not seem to indicate that.

I tried the same command with:

 echo --transcode_version--; transcode -v; echo --transcode_version--;

replaced with
 echo --transcode_version--; transcode -v; sleep 0.1; 
echo --transcode_version--;

and it worked correctly..
-- 
     "If any of you lack wisdom, let him ask of God, who
      gives to all men generously and without reproach, and 
      it will be given to him."           James 1:5
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBG3bguUVmucRBq2IsRAnpaAKCkP5KfuLH09R8sfQ5oIliBrs7HewCgr4VP
vxSVu+88mH124kaker98T4Q=
=sSg9
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.