LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-13-2004, 04:33 AM   #1
murugesan
Member
 
Registered: May 2003
Posts: 149

Rep: Reputation: 28
PROGRESS BAR with shell script


Hi all,

The scenario is

A UNIX SHELL SCRIPT WHILE INSTALLING AN APPLICATION SHOULD DISPLAY A PROGRESS BAR OF HOW MUCH THE THE INSTALLATION IS COMPLETED AS IN WINDOWS ........ (in terms of time) ANY IDEAs????

what are all the factors that i need to consider ?

Thanks for the understanding,
Murugesan
 
Old 12-13-2004, 05:00 AM   #2
redjokerx
Member
 
Registered: Aug 2004
Location: San Diego
Distribution: Slackware
Posts: 303

Rep: Reputation: 31
what kind of installation is it? Some sort of package based, etc?
 
Old 12-13-2004, 05:03 AM   #3
murugesan
Member
 
Registered: May 2003
Posts: 149

Original Poster
Rep: Reputation: 28
Yeah it is package based and the user has options to select the packages.

Regards,
Murugesan
 
Old 12-13-2004, 05:15 AM   #4
kamstrup
Member
 
Registered: Aug 2003
Location: Aarhus, Denmark
Distribution: Slackware, Ubuntu
Posts: 122

Rep: Reputation: 15
Installing an application with a shell script is kinda broad... What exactly do you mean?

Are we talking rpm's, deb's or compiling from source?

rpm: does it already with 'rpm -ivh mypack.rpm'

deb: impossible as for as i know (there's is a small amount available throught '--status-fd <filedescriptor number>')

compiling: very very hard!

If you're thinking in different lines please specify a bit more...

Cheers
 
Old 12-13-2004, 05:38 AM   #5
murugesan
Member
 
Registered: May 2003
Posts: 149

Original Poster
Rep: Reputation: 28
>> compiling:
Yeah this is !!
 
Old 12-13-2004, 09:03 AM   #6
addy86
Member
 
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
It is impossible to base the progress bar on the needed time (since a source file of 2x the size doesn't necessarily need 2x the time to compile), but you can base it on the number of source files already compiled. Just compile a certain file and advance the bar by one.

However, _do not_ do this! Unix users want to have a standardized process when building and installing a software package (i.e. doing a 'configure; make; make install'), it's more important than knowing when it will have finished (it will have finished, when it will have finished , a progress bar doesn't make it faster). A real Unix user wouldn't even see the progress bar since they do something else in this time.
This is probably one of the main differences between Windows and Unix users: Windows users want a colored surface with everything moving every second, while Unix users want standardized and working programs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script Progress bar rooch84 Linux - Software 8 09-03-2005 04:55 PM
cp with progress bar? Rotwang Linux - General 5 04-27-2005 07:49 PM
Progress bar image craigs1987 Fedora 0 05-27-2004 02:31 PM
cp: progress bar chii-chan Linux - General 2 10-30-2003 06:30 PM
Progress Bar zael Programming 3 10-01-2003 12:20 PM


All times are GMT -5. The time now is 02:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration