in reply to Re: rsync with Gtk2 progressbar
in thread rsync with Gtk2 progressbar

hi, i've been out of commission for a bit, but if you still need help, answer this, and I'll show you how.... it's easy..... it would help if you had a real perlmonks user account

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku

Replies are listed 'Best First'.
Re^3: rsync with Gtk2 progressbar
by lextre (Initiate) on Oct 22, 2009 at 09:32 UTC
    Hi, Thanks for the reply. I would really appreciate your help on how to modify the script but I don't know where to start!
      hi, well anonymous monk's reply below to set a scalar to 'redrum' would work, but it is about the ugliest hack you can use..... and since you don't know much about programming, i don't want to let you go off thinking that programming is some sort of black magic.....

      i will give you a simple lesson, and it may just start you off on a new gtk2 project of your own.

      ....read thru the code.... it explains what is happening...... what you want to do, is make a backup copy of the script.... and start hacking on your temp copies as you experiment and discard them

      ....look for the word "getconfirmation".... it is a subroutine which you must disable....either by faking a return value (redrum), or better, remove all code from the script that deals with the confirmation window

      .... the getconfirmation sub uses some internal gtk tokens like 'ok' to pass the status of the pipe running rsync...... so play around......comment out lines......if you get error messages, check out what you did and what lines you just commented out

      if you totally fubar a script copy, just discard it and start over from your master copy

      .... or just use the 'redrum' hack...... ;-)

      ... a great tutorial for this is at tutorial

      all work and no play makes zentara a dull boy all work and no play makes zentara a dull boy all work and no play makes zentara a dull boy all work and no play makes zentara a dull boy all work and no play makes zentara a dull boy all work and no play makes zentara a dull boy all work and no play makes zentara a dull boy

      I'm not really a human, but I play one on earth.
      Old Perl Programmer Haiku
        Hi, Thanks for the replies. Zentara I totally get what is happening and I have disabled the confirmation dialog. The problem is the script will run but the progress bar does not move. It doesn't even show 100% complete when rsync has finished it's run. My goal with all this is actually a little more complex but I figure I need to get one part working at a time and I need to start somewhere. Your script seemed like a good starting point since it's the closet I could find to what I am trying to achieve. thanks again
      Replace
      my $confirm = &getconfirmation( $count, $totsize );
      with
      my $confirm = 'redrum';