On May 16 15:10:48, fischer+o...@lavielle.com wrote: > The sh(1) manage does not mention the RANDOM variable.
But it mentions that sh(1) is ksh(1) This version of sh is actually ksh in disguise. $ ls -li /bin/*sh and the ksh(1) manpage documents RANDOM. > OTOH using RANDOM in a crontab(5), which has the SHELL=/bin/sh line, > does not seem to work. How exactly are you using RANDOM in a crontab, and how exactly does it not work? Anyway: man 5 crontab: A random value for a field may be obtained using the ‘~’ character. A value is generated every time the tab is loaded. On its own, it denotes a random value appropriate for the field. So use that instead: it knows the semantics. Jan