On Sat, 24 Sep 2005, mola pahnadayan wrote:
I write a script that when u click on script that open the dialog where u
want to copy file and then copy file there .
i copy with "cp" , Now i want to change cp with nautilus copy/paste file
(open dialog copy with progressbar ) , what can i do ?
I did it once using zenity, see my code which copy the file
"drotos.gsb" into the dir "/mib/dani":
ORIG_SIZE=`du -b drotos.gsb|awk '{print $1}'`
cp drotos.gsb /mib/dani/ &
CP_SIZE=`du -b /mib/dani/drotos.gsb|awk '{print $1}'`
(
while [ $CP_SIZE -ne $ORIG_SIZE ]; do
expr `expr $CP_SIZE \* 100` / $ORIG_SIZE
CP_SIZE=`du -b /mib/dani/drotos.gsb|awk '{print $1}'`
done
echo 100
)|\
zenity --progress --auto-close \
--text "Lementem az account file-t a MIB-re..."
Daniel
--
nautilus-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/nautilus-list