You are not logged in.

#1 2005-08-16 08:50:04

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,176
Website

xterm with wget, or xdialog gauge

In Bash scripts, how to load a separate xterm and run wget? After download, xterm will exit.

wget http://user-contributions.org/projects/archWMbase/pkg/Daemon/Daemon.list

Or within a script run xdialog's gauge box with wget. Or separate xterm with Bash's dialog --gauge.
http://thgodef.nerim.net/xdialog/gauge.gif
http://xdialog.dyns.net/

Offline

#2 2005-08-16 15:10:13

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,176
Website

Re: xterm with wget, or xdialog gauge

Got it to work with xdialog --gauge. As you can see its "fake" but does the job. smile ... only the developer will know.

(echo "25" ; sleep 1
wget -q http://user-contributions.org/projects/archWMbase/pkg/$choiceFTP/$choiceFTP.list
echo "50"
echo "75"; sleep 1
echo "100" ; sleep 1) |
Xdialog --title "PacWM" --gauge "Downloading..." 7 40

if [ "$?" = 255 ] ; then
    echo ""
fi

Offline

#3 2005-08-16 15:56:35

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: xterm with wget, or xdialog gauge

rasat wrote:

In Bash scripts, how to load a separate xterm and run wget?

xterm -e wget http://user-contributions.org/projects/ … aemon.list

Offline

Board footer

Powered by FluxBB