Thanks, David!

-Brian



Thus spake Dann Frazier ([EMAIL PROTECTED]):
> On Tue, Dec 23, 2003 at 10:33:08AM -0800, Lombard, David N wrote:
> > In prepareclient, we find
> > 
> >       my $cmd="for i in 1 2; do echo -n .; sleep 1s; done";
> >       system("$cmd");
> > 
> > Is there any reason this isn't done as
> > 
> >       $|++;
> >       foreach (1..2) {
> >            sleep 1;
> >            print ".";
> >       }
> >       print "\n";
> 
> not that i can see - i'll commit this change (and another instance of it),
> when i'm next online unless someone beats me to it.
> 
> thanks David.
> 
> --- prepareclient.~1.22.~       2003-11-16 14:18:51.000000000 -0700
> +++ prepareclient       2003-12-24 11:03:14.000000000 -0700
> @@ -339,15 +339,22 @@
>                                                                                 
>          # Give a couple of seconds for the old daemon to die.
>          print "Starting or re-starting rsync as a daemon";
> -        my $cmd="for i in 1 2; do echo -n .; sleep 1s; done";
> -        system("$cmd");
> +        $|++;
> +        foreach (1..2) {
> +             sleep 1;
> +             print ".";
> +        }
>       
>          # Start up the new one.
>          system("rsync --daemon --config=$rsyncd_conf_file");
>       
>          # Give a few seconds for the new daemon to start.
> -        $cmd="for i in 3 4 5; do echo -n .; sleep 1s; done";
> -        system("$cmd");
> +        $|++;
> +        foreach (3..5) {
> +             sleep 1;
> +             print ".";
> +        }
> +        print "\n";
>       
>          # Wrap up
>          print "done!\n";
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Sisuite-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/sisuite-devel

-- 
---------------------------------------------------------
 Brian Elliott Finley                Phone: 630.631.6621
 GPG: 3FF8 D096 0E0C D3F3 29B7  6518 D20B 1931 10F8 EE52
---------------------------------------------------------


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Sisuite-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to