11-16-2008
Hi,
something like this?
[code]
for i in {1..100}; do echo $i;sleep 1; done | dialog --guage "A guage demo" 6 70 0
[code]
Kind regards
Chris
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Is there a way to get the status of a perl program in another perl script ?
Ex.:
1/ proc_sub.pl:
print "test programme perl\n" and exit 1;
2/ proc_main.pl:
print "status of proc_sub.pl : ";
proc_sub.pl # possibility to get the status=1 ???
Thanks a lot. (4 Replies)
Discussion started by: jo_aze
4 Replies
2. Shell Programming and Scripting
Hello,
In perl how to show the percentage download when we download something wget ...
For example when we wget some software instead of showing the following ......
============================================
# wget... (4 Replies)
Discussion started by: fed.linuxgossip
4 Replies
3. Shell Programming and Scripting
Hi Programmers,
I just wrote a small script to print the percent complete.
This maybe useful for someone!
#!/usr/local/bin/perl
# Total from which percentage will be calculated
$cnt = 16;
$|=1;
for($i=0;$i<$cnt;$i++)
{
# Calculate Percentage
$percent = ($i/$cnt)*100; (13 Replies)
Discussion started by: hifake
13 Replies
4. Shell Programming and Scripting
After some googling, I came across this script to create a spinning cursor:
#!/bin/bash
# paste following in your script
declare -a Spinner
Spinner=(/ - \\ \| / - \\ \| )
Spinnerpos=0
update_spinner()
{
printf "\b"${Spinner}
(( Spinnerpos=(Spinnerpos +1)%8 ))
}
# testing... (2 Replies)
Discussion started by: mrwatkin
2 Replies
5. Shell Programming and Scripting
Looking for a solution to why my progress bar not working
My code
print "STARTED:\n ";
my $pdf = CAM::PDF->new('XYZ.pdf') or die $CAM::PDF::errstr;
print STDOUT "Processing File: ";
open (FILE, ">bill_data.txt") || die "Unable to save Bill_data.txt file";
for my $pagenum (1 ..... (4 Replies)
Discussion started by: chakrapani
4 Replies
6. Shell Programming and Scripting
I have written a bash script to to sort the data from logs i need some help in printing the outputs , i dont have much ideas in bah scripting.
Sample script
-----------------------
#!/bin/bash
a=`date | cut -d " " -f2,2,3`
cat /var/log/maillog |grep "$a" |grep -E -e 'deferred|bounced'... (9 Replies)
Discussion started by: unimaxlin
9 Replies
7. Shell Programming and Scripting
Hi,
I want to write a script which continuously checking status of a script running in background by nohup command. And if same script is not running then immediately start the script...please help..
i am using below command to run script
nohup system_traps.sh &
but in some... (9 Replies)
Discussion started by: ketanraut
9 Replies
8. Ubuntu
Below the list of command to explain the status
michelangeli@hp:~$ lspci -nn | grep -i net
02:00.0 Ethernet controller : Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
04:00.0 Network controller : Ralink corp. RT2790 Wireless 802.11n 1T/2R... (6 Replies)
Discussion started by: michelangeli
6 Replies
9. Shell Programming and Scripting
Hi,
I have shell script that I am running under Ubuntu as root.
Is it possible to hide the command window and show the user some sort of progress /random progress bar / or other form of GUI interaction?
On MAC, I have been using Platypus but on Ubuntu I am not sure what to do. (4 Replies)
Discussion started by: naveedanwar4u
4 Replies
10. UNIX for Beginners Questions & Answers
Hi, all,
I'm writing a BBS telnet client, and am trying to implement a status bar into it, at the bottom of the screen.
I am using NCurses to accomplish this. So far, it appears to be working, that is, upon connecting to BBS, it
will display the status bar, and then quickly disappear.
... (5 Replies)
Discussion started by: ignatius
5 Replies
LEARN ABOUT LINUX
tasksel
TASKSEL(8) Debian specific manpage TASKSEL(8)
NAME
tasksel - a user interface for installing tasks
SYNOPSIS
tasksel install <task>
tasksel remove <task>
tasksel [options]
DESCRIPTION
tasksel shows all available tasks and allows to user to select ones to install
OPTIONS
-t, --test
test mode; don't actually install or remove packeges
--new-install
automatically select some tasks without even displaying them to the user; default other tasks to on; used during new Debian installs.
--list-tasks
list on stdout the tasks that would be displayed in the tasksel interface
--task-packages task
lists on stdout the packages that are available and part of the given task
Note that this option may be given more than once.
--task-desc task
outputs the extended description of the given task
--debconf-apt-from waypoint
Start the debconf-apt-progress bar here.
--debconf-apt-to waypoint
End the debconf-apt-progress bar here.
--debconf-apt-progress options
Pass the specified options to the debconf-apt-progress command that tasksel runs. These will be appended to any --from and --to options
constructed by tasksel itself based on --debconf-apt-from and --debconf-apt-to options.
SEE ALSO
dpkg(8), apt-get(8)
FILES
/usr/share/tasksel/*.desc and /usr/local/share/tasksel/*.desc are used to define tasks.
AUTHOR
tasksel was written by Randolph Chung <tausq@debian.org> and Joey Hess <joeyh@debian.org>
HISTORY
This document first appeared with tasksel-1.0
2.88ubuntu8 2010-07-16 TASKSEL(8)