Hello All,
Again thanks for your help last week.
Been trying to get a yad progress bar to show the output of processed files along with the progress bar while shredding files. Shredding takes longer and users see the progress bar going back and forth and think it's stuck and shut the machine down. I would like to show the files being processed so they know it's still working. I was able to get similar results using "rsync" and it worked awesome. When you have time, please see the commands I used for rsync that work, and the output in yad. All my different tries to get yad to show the shred output will not show up in the progress bar however, the command does work.
Thanks so much all! Be Safe!
John
COMMAND THAT WORKS FOR "rsync"
#!/bin/bash
BASH_XTRACEFD=19
set -x
source="/media/autousb/*"
dest="/burncd/working"
rsync -arv --exclude '.*' --info=progress2 "$f"$source $dest | \
stdbuf -i0 -o0 -e0 tr '\r' '\n' | stdbuf -i0 -o0 -e0 awk -W interactive -f /home/udits/rsync.awk | yad --progress --height=200 --width=400 --window-icon=/home/udits/icons/sdcard_icon.png --image=/home/udits/icons/gears_icon.png --text="<big><b>Copying Files from Media Please Wait...</b></big>" --auto-close --title="Copying Files Please Wait $cardname"
OUTPUT OF "rsync" WORKING: Looking for something like this, if possible with shred.
FIND COMMAND THAT WORKS WITH SHRED HOWEVER, ONLY SHOWS PROGRESS BAR.
find /burncd/burn_hold/temp/$filename -type f -exec shred -n7 -z --remove {} \;
| yad --progress --height 320 --width 400 --pulsate --auto-close --no-cancel