General :: Shell Script Progress Indication
Sep 23, 2010
I can get some sort of indication to show a shell script is running? Even a simple rotating cursor will do, or an increasing row of dots.
Here's one of my scripts...
#!/bin/sh
echo "Main directories"
echo ""
cd /home
[Code]....
View 9 Replies
ADVERTISEMENT
Jan 21, 2011
Ubuntu 10.10 does not appear to have an indication of progress when the system checks HDs on start up. In previous versions - at least back to 8 - I think there was either a
progress bar or % reading to give an indication of progress of the scan / check .Is it possible to switch this back on in 10.10?Also how do you control the frequency of disk checks on start up?
View 2 Replies
View Related
Jul 12, 2011
Got the Ubuntu 11.04 disk.Installed it about an hour ago using wubi. There is no indication of anything installing anywhere. What gives? Keep in mind that I know next to nothing about the workings of a computer.
View 5 Replies
View Related
Sep 1, 2011
The attached log file includes two crashes/reboots within the past day or so I have recently started trying to set up / manage a Linux (Ubuntu 10.04.2 LTS) server in our data center (all other servers are Windows boxes). The server periodically hangs and becomes unresponsive and I'm at a loss to find anything in any log that indicates a specific cause. Sometimes it's up for hours, sometimes days (14 days at longest). Plugging a monitor in to the machine after a hang shows nothing at all. In an effort to troubleshoot the problem we've tried disabling APIC, more out of "educated desperation" than anything else. Unfortunately we are limited in some of the troubleshooting we can do, as we have a single client website hosted on the box (the reason we set it up) so anything that involves significant downtime is a problem.
As this is our first attempt at setting up a linux box, we are using a "well equipped" desktop grade machine but not what I would call "server grade" hardware. This is a standalone box, not a VPS. We are using a hardware, not software, RAID array and have plenty of memory in the box.
Caveats / Background:
I am relatively new to Linux in general. I spend much more time writing code than managing servers. I'm comfortable with working on the box, but I'm not really a sysadmin guy. I'm comfortable with the command line but have more experience with OS X (BSD). I am unsure of all of the tools / information / Logs that may be available, though I try to be thorough in checking what I do know. I did not physically configure the hardware so I'm not sure of all of the specs but I can get any info I need to troubleshoot. I may be skipping very basic steps or missing obvious places to look for information without knowing it.
A little more detail:
Real memory: 8GB
Ubuntu 10.04.2 LTS
Hardware RAID 10
Managing sites with Webmin version 1.550
Server is in a remote data center. Hands on-troubleshooting is difficult. We have attempted two Linux setups at this point. The first was on a hardware config identical to this one, but with no actual pieces of hardware reused. That attempt was using CentOS and we were attempting to set up CPanel. We scrapped that install because of this same problem (periodic crashing / hanging). The second attempt (this one) is showing the same behavior. The only thing I can really see in common are the hardware configuration (though CentOS & Ubuntu may have more in common than I think).
The box will run fine for hours, days, or even weeks, and then just stop responding entirely. I check all of the logs I know to check (primarily messages, syslog and kern.log) but I don't see anything that seems like an error to me. I do see lines that I don't understand that may or may not be problems, such as:
Code:
rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="814" x-info="http://www.rsyslog.com"] rsyslogd was HUPed, type 'lightweight'.
Most of our syslog entries seem to be logs of webmin related cron jobs running. My gut tells me that there is possibly some component in our configuration Linux does not like or needs a driver update (maybe the raid card for example), but I'm unsure of how to do more to track down or determine what that might be. Guess and check is expensive. Another thought I've had is that one or more of the cron jobs that are running are tripping something up, but it doesn't appear to be reproducible on demand and, again, I'm at a loss on how to test that theory any further. The same cron job does not appear to be running each time the server goes down. This is a portion the log just prior to our last hang:
Code:
Aug 8 11:00:01 linhost01 CRON[10771]: (www-data) CMD ([ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache2/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null)
[code].....
View 9 Replies
View Related
Oct 17, 2010
I am having a weird problem here. The open programs are closing secretly without giving any indication or issuing error. For example I open couple terminal and some minutes later I look at my screen, boom they are not there anymore. This issue is not just limited to terminals, other gui apps suffer from the same thing. Does anyone know if any program or service would do such a thing?. I am scratching my head here to figure out why that is the case It just started happening today.
View 2 Replies
View Related
Nov 5, 2009
I have this command in a bash script
Code:
!#/bin/sh
cd /home/n3t
tar -czf /media/disk/BACKUP/home/Pictures/$BACKUPDATE.tar.gz ./Pictures
How can I create a progress bar for this action? I have download the clpbar but I don't know how to use it exactly.
View 1 Replies
View Related
Nov 9, 2009
I want to create a script which will show the amount of data that is been copied from one location to another location. For example: Say I have a file called abc.img which is approximately 4 gb of size therefore every time I copy the file from one location to another I want a progress bar to appear like 50% completed 51% completed and so on.
View 2 Replies
View Related
Mar 21, 2011
I'm SSHing to a headless Ubuntu box and sometimes need to upload files from that box via FTP. The built-in FTP client does not show the progress of my upload (or at least I don't know how to view it). I just see this during the operation (which could take up to an hour):150 Opening BINARY mode dataonnection for MyFileAre there any FTP clients which I could use in terminal and would show the progress (some kind of a progress bar or just the percentage)?
View 2 Replies
View Related
Jan 20, 2010
I have a Shuttle XPC with 3 drives. /dev/sda is a 320GB SATA drive with a basic installation. Two partitions, a swap and the rest is on /. The other two drives are 1.5TB SATA configured as a software mirror as /dev/md0.
I want to use dd to clone the 320GB boot/OS drive to a 750GB SATA I have at home. Last night I put the 750 in a USB enclosure and at about 6:00 PM fired off: dd if=/dev/sda of=/dev/sdd
It's now 7:16 AM and the dd is *STILL* going. Is this unusually long to clone the drive? Is there any way to check the progress or a way to launch dd with a progress indicator?
View 3 Replies
View Related
May 18, 2010
If I run
cp file1 file2
I'd like to be able to track it's progress. Is there a command I can use for this?
rsync --progress
has this, but is there something generic, usable for "any" command?
View 3 Replies
View Related
Jun 22, 2010
Is there any good tool in GNU/Linux that copy files like cp, but also shows progress and limits speed (and changes limit without interruption) like pv?
Prototype: find source_directory | cpio -H newc -o | pv -s `du -bs source_directory/ | awk '{print $1}'` | (cd /destination/directory && cpio -di)
Also rsync -aP source_directory /destionation/directory/, but this shows progress bars individually and can't change rate after started. Or may be I should just write a wrapper for pv/cpio? Done.
View 2 Replies
View Related
Jul 1, 2010
I am using Ubuntu 9.10 and am bothered by the sometimes pretty long update progress. sometimes i wish to abort the update-manager, apt-get or synaptics because i need to go, but i think it might break anything. could you advice me how to do it safely, even if some cleaning up is required afterwards?I was just wondering because certainly there is a way to preserve the pre-update condition, e.g. when installing a new kernel. but my guess is, that the installation is postponed to restart then.
View 1 Replies
View Related
Mar 15, 2011
How do you get RHEL6 to display the "traditional" display of startup information instead of the tiered/stacked progress bar? The standard info dump is displayed during shutdown.
View 2 Replies
View Related
Sep 15, 2010
Is there a clever way to monitor the progress (as percentage or hash) of copying a large file (using pv could be an option)?Like monitoring the progress of a copy command such as this:Code:cp linux.iso /tmp/
View 2 Replies
View Related
Sep 18, 2011
I want to update the percentage progress of my program on the screen. I have a progress bar that I print. I add a * when the progress is more than 10%, but I also want to write the actual percentage correct up to every digit. However, I do not want to write a new number every time, since it will have the following effect:
1
2
3
4
Instead, I would like to just maintain one single figure on the screen that keeps getting updated. How do I do that? (... in Java/C++, but I think it's irrelevant)
View 2 Replies
View Related
Aug 19, 2010
I am new both here and in Linux. As the subject says, I would like to learn how to copy a directory (not a file) from terminal with progress bar showing. The copy is local, i.e., not to another computer. My distro is CentOS 5.5. I know that if I do it with nautilus I would see the progress, but I want to learn how to do it from the terminal. I know that PV command can show a progress bar, but from what I saw, it works well for files, but not for directories (recursive).
Is it possible to use PV for directories? If yes, could you please show me the syntax? I also saw that some people mentioned that rsync can also show a progress bar, I tried to do it, but it didn't work out - perhaps I got the syntax wrong. If rsync can really be used to copy directories with progress bar, show me the syntax? Any other ideas on how to do it? I would like ideas that do not involve using any script, i.e., just something that I can do using the regular commands.
View 6 Replies
View Related
Jun 15, 2011
MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.
View 2 Replies
View Related
Apr 27, 2011
I would like know when it is necessary or advisable to write a shell script instead of shell function ?
View 3 Replies
View Related
Jan 18, 2011
I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?
View 3 Replies
View Related
Feb 7, 2009
The little red popup window (packagekit) from the lower right showed yum updates
I did a yum update and no updates!
I tried again this morning and no updates
View 12 Replies
View Related
Jan 1, 2010
Having a bit of a issue with Debian Squeeze and transferring files to the Sony PSP..Hook up PSP to USB port and Debian mounts it..I go to drag a 125 meg mp4 to video folder..Copy windows takes about 10 seconds to transfer it..Exit USB mode and there is no video there. Go back into USB mode and look at video folder on the PSP memory stick and there is no video..It vanished. From another after copy progress closed I right clicked PSP and unmounted it..
It error-ed saying device was busy and could not unmount..Looking at light on PSP i see memory stick is still being written to..i wait for light to stop flashing..About a minute or so..Then am able to unmount it..Go to PSP video and theres the video ready to be watched. Debian isnt accurately showing the copy progress...Its showing complete when it isnt..I have to watch the light on PSP to know when it is truly finished.
View 3 Replies
View Related
May 16, 2010
A quick google search gave me a possible answer at this post: [URL] However, this isn't my question exactly. It sort of is, but the answer is not correct for me. I'm wondering how to show progress of a cp or mv command. The man page says -v should do it, but it seems it doesn't show any progress at all. Is it possible to show progress info with cp or mv? Or, is there a different command I could use that would show a progress bar. I know for example scp will show a progress bar, but that is for local-->remote or visa versa, but I'm trying to copy locally.
View 4 Replies
View Related
May 11, 2011
Where is the progress bar in the new Firefox, or can it be got back if Mozilla removed it? If you have Mobile Broadband or dial-up this is a handy thing if you start looking at your watch waiting for a page to load...
View 1 Replies
View Related
Nov 28, 2009
Well, I've made progress in getting my recording to work.I was running a piece of software called liveice, and this used to work, but now with the current versions of of Fedora I just get noise and other strange problems. I stopped using liveice, and switched to darkice, and now my recordings are working without noise. I hear correct sound and the volume controls are acting sensible.Liveice was broken in a very weird way.The recording meter worked correctly, but the audio it actually recorded was just noise.This program uses OSS, as does darkice.When I record on the SB live, which is dsp2,sometimes I hear sound on it from the other sound card? Is that weird? Why would the input from the sound cards come in mixed like this?I have two sound cards, /dev/dsp and /dev/dsp1. One shows as ICH5/AD1985, and the other is an SB Live 5.1.I currently have Pulseaudio installed and running. I did a yum update just now.This is all with Fedora 12.This system was upgraded from 10 to 11.And then again from 11 to 12.
View 1 Replies
View Related
Mar 7, 2010
I recently did a kernel update usingCode:yum -y updateAfter update while booting progress reaches till the end and it stops there, it doesn't progress. If I use earlier kernel for booting I do not have any issues.
View 14 Replies
View Related
Aug 19, 2010
I removed my Ubuntu 10.04 partition from my hard disk with GParted because it didn't install properly and there were no solutions available. After I removed it, I set it up to extend my Vista partition into the unallocated space. It's been going for three hours so far (which I expected) but the progress bar is now stuck. The timer's stopped and everything; it's not increasing infinitely like when your internet cuts out when downloading something, it's just stopped. Here's a screenshot:[URL]..
I know to resist the allure of the Cancel button, but I don't really know what to do here. It's been sitting here for about half an hour with no sign of budging.
View 5 Replies
View Related
Dec 23, 2010
I've modified the Radiance theme and installed it, and everything looks wonderful except for one thing. Certain programs have ugly windows and progress bars, as if all window effects were disabled for those windows. The progress bar in GIMP is not affected.
View 2 Replies
View Related
Apr 30, 2011
I am trying to install Ubuntu 11 with Wubi and the progress meter is missing. I cannot see if it's 30% done installed or 60% or whatever. It's annoying.
View 4 Replies
View Related
May 22, 2011
When Ubuntu one is syncing there is no progress bar in the Unity launcher as there is supposed to be. What could be wrong?
View 3 Replies
View Related
Mar 10, 2010
I always wanted cp to have a progress bar for large files. I came across this:[URL]... I just wonder, how could you install it as an Arch package? Is it possible?
View 9 Replies
View Related