parallel
[Top][All Lists]
Advanced

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

Re: parallel on Amazon AWS after logoff


From: Martin Møller Skarbiniks Pedersen
Subject: Re: parallel on Amazon AWS after logoff
Date: Sun, 8 Mar 2015 23:46:38 +0100

On 8 March 2015 at 21:12, andreas wpv <andreas.wpv@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

[Prev in Thread] Current Thread [Next in Thread]