rdiff-backup-users
[Top][All Lists]
Advanced

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

Re: [rdiff-backup-users] Problem with Detection of Multiple rdiff-backup


From: Jakob Unterwurzacher
Subject: Re: [rdiff-backup-users] Problem with Detection of Multiple rdiff-backup instances
Date: Fri, 25 Sep 2009 14:10:52 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Steven Willoughby schrieb:
> #!/usr/bin/perl
> `/bin/true` for 0..int(rand(100));
> 
> This will increase the pid and should stop your job from failing
> continuously.
> 
> Steven

Exactly.

Same thing in bash:

#!/bin/bash
for i in `seq 1 $((RANDOM%100))`; do /bin/true; done


But you should make sure that $RANDOM assumes different values after a
reboot (same for perl's rand(100), which is likely more advanced and
less likely to suffer from that problem).

Jakob




reply via email to

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