On 8 March 2015 at 21:12, andreas wpv <andreas....@gmail.com> wrote:

> I am trying to scan (our) website with a script, that's basically a more
> detail wget command, that takes $1 as the url.
>
> nohup parallel -eta -j20 --line-buffer '.  extendedwget.sh  {}  >
> $RANDOMoutfile ' :::: www.test.com  > /dev/null 2>&1 &
>
>
> Somehow the redirection to the outfile (with $RANDOMoutfile) does not
> work. I had it in the script previously, but then I get a lot of different
> outnames.  I also tried 4x : and 3x :, that seemed not to make a difference.
>
> I used this with another script, and it seemed to work fine (except that
> it ran only on one core )
>

$RANDOM is a built-in variable in bash given a random value each time you
read it.

eg.

$ echo $RANDOM-andreas
455-andreas
$ echo $RANDOM-andreas
23322-andreas
$ echo $RANDOM-andreas
4469-andreas

Regards
Martin M. S. Pedersen

Reply via email to