Linux.com

Home Linux Community Forums Linux Distributions Ubuntu home gui for p7zip with zenity question

home gui for p7zip with zenity question

Link to this post 29 Mar 11

below is my bash script and it is not fancy. It will use 7zip with deflate64 to make zip files. My question is does any body know how to show the % and/or file name being zipped in the --text="zipping" box? also how do you get it to close when it is down? I do not use the archive gui because i like the deflate64 makes smaller zipped files then 7z

#!/bin/bash
zenity --info --text "Choose source file to 7zip using deflate64 /dir in box or click file";
szSavePathfrom=$(zenity --file-selection --multiple --save --confirm-overwrite);
zenity --info --text "Choose file destination";
szSavePathto=$(zenity --file-selection --multiple --save --confirm-overwrite);
7z a -mm=deflate64 $szSavePathto.zip $szSavePathfrom | zenity --progress --text="zipping" --percentage=1 --auto-kill

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board