[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Reading /dev/random



Hello Olaf,

I do not know the detail of your problem, but I wonder if the environment variable RANDOM (at least when using bash) is not your solution :

echo $RANDOM
21102
echo $RANDOM
6921

If you use a wrapper script to build the command file, it will be easy to provide an ever changing random value to the executable if you put it inside every job arguments, before the queue command.

	Cheers,

	Alain


Olaf Lenz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!

Daniel Forrest wrote:
| The root cause is that the Condor library uses stat() to see how big a
| file is before trying to read from it.

Wow! Thanks for the answer.

| The answer to question 1 is to add "Local_Files = /dev/random" to your
| job submission file.

Using the "Local_Files" - solution does not work in my case, as the
"/dev/random" device does not work on the actual computing nodes, but
only on the submitting host. Therefore, the read call SHOULD be executed
on the submitting and not on the executing host.

| The answer to question 2 is for the Condor people to answer.  I think
| it's a bug because there is no reason for the read() to fail.

I would consider this a bug, too. Especially as it simply changes the
semantics of fread().

Olaf

P.S. Sorry, Daniel, that you get this reply twice, but I forgot to send
the copy to the mailing list.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCHDtrtQ3riQ3oo/oRAnHCAKCze5Y4QPIbXsgUVws9DGtBxMeS/ACdHkQ0
d4jKggSGWxxv+yRrY/apaSk=
=aeX+
-----END PGP SIGNATURE-----
_______________________________________________
Condor-users mailing list
Condor-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/condor-users



-- ------------------------------------------------------------ Dr Alain EMPAIN <alain.empain@xxxxxxxxx> <alain@xxxxxxxxxx> Bioinformatics, Molecular Genetics, Fac. Med. Vet., University of LIEGEe, Belgium Bd de Colonster, B43 B-4000 LIEGEe (Sart-Tilman) WORK: +32 4 366 4159 FAX: +32 4 366 4122 HOME: rue des Martyrs,7 B- 4550 Nandrin +32 85 51 2341 GSM: +32 497 70 1764 ------------------------------------------------------------------------------- What's your favorite Linux program? That's like asking a poet what his favorite word is; it's all in how they go together. (Michael Stutz, author of The Linux Cookbook) -------------------------------------------------------------------------------