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
Description: This is a digitally signed message part.
|