Progress bar for terminal? (for mv, cp, rm)

Is there way to show the progress of mv, cp or rm a large file? (maybe percentage or speed of transfer)
Sometimes, when I try do something to a large file with one of those three commands, there is not way to know if it gets stack or not.
Last edited by kdar (2011-05-21 15:33:27)

1.
rsync -aP
2. A zsh function.
(strace required)
cp_p()
strace -q -ewrite cp -- "${1}" "${2}" 2>&1 \
| awk '{
count += $NF
if (count % 10 == 0) {
percent = count / total_size * 100
printf "%3d%% [", percent
for (i=0;i<=percent;i++)
printf "="
printf ">"
for (i=percent;i<100;i++)
printf " "
printf "]\r"
END { print "" }' total_size=$(stat -c '%s' "${1}") count=0
3. A zsh function.
(pv required)
cp_p2()
if [ `echo "$2" | grep ".*\/$"` ]; then
pv "$1" > "$2""$1";
else pv "$1" > "$2"/"$1";
fi ;

Similar Messages

  • Display progress bar and message for delay

    hi all,
        I have an application in which, when i execute the RFC it is taking time to get the data. So it is displaying a white screen for the user untill the data is retrieved from the backend.
    I want to show a progress bar or any thing of that kind so that user knows that data is being loaded.
    Is there a way to do that?
    Regards,
    Gopi

    Hi,
       You might want to go through <a href="/people/valery.silaev/blog/2006/10/09/loading-please-wait blog.
    Regards,
    Satyajit.

  • How-to manual for Terminal for OS X 10.5.8

    I cannot find, on this site, an operating manual for beginners for using Terminal for OS X 10.5.8.  [Videos don't cut it for me; I need something I can print in large font, but I couldn't find a video either.]  Must contain details and definitions.  I programmed in machine language >40 years ago, but a lot has changed since then.
    It is also not clear to me how to look for an answer.  It took me an hour to log in; it had been well over a year since I was here last and I have brain damage which affects memory.

    My favorite book for learning to use the shell and understanding the Unix principals is also a Brian Kernighan book
    "The Unix Programming Environment", by Kernighan and Pike.
    While this book was written in 1984, it is still a good book for learning Unix principals as well as learning how to use the shell.
    While in a Terminal session, you can use the 'man' command to find out information about individual commands, although that is only use if you know the command exists.
    The 'apropos' command is EXTREMELY useful, in that you can ask it to find any commands that mention a keyword you give apropos
    apropos permissions
    apropos delete
    apropos directory
    etc...
    The 'man' pages are broken down into sections.  Section 1 is user commands, sections 2, 3, 4, 5, 7 are programming APIs, section 6 is games, section 8 are administrator commands.
    If you just want a list of all the use commands you could use
    apropos 1
    If you want the admin command list
    apropos 8
    Once you find a command that looks interesting, you can get detailed information about the command using
    man command_name
    NOTE:  The command line interface is non-trivial.  At one time it was considered user friendly back in the days when the alternative was a keypunch maching and 80 column punched cards.  But today, the command line interface is NOT very friendly.
    NOTE 2:  There are some very powerful commands available from the command line.  If you are not careful, you can delete files the system needs to operate properly, or delete something you personally needed.  Deleting something from the command line means it is gone, unless you want to pay thousands of dollars to have a service recorder the data.  Just assume anything you delete from the command line is gone.
    But to those of use that have been using the command line for years, we find it an old friend that gives us a lot of power which would be difficult from a GUI interface.

  • I am trying to update to OS X 10.5.8, but the progress bar has stalled for hours.

    I've tried restarting the update but it just goes back to the progress that it achieved before and then stalls again indefinitely. How can I completely restart the update and this time get it to complete it without stalling?

    Just to add to BD's good advice:
    Some general advice on updating:
    It is worth noting that it is an extreme rarity for updates to cause upsets to your system, as they have all been extensively beta-tested, but they may well reveal pre-existing ones, particularly those of which you may have been unaware. If you are actually aware of any glitches, make sure they are fixed before proceeding further.
    So before you do anything else:
    If you can, make a full backup first to an external hard disk. Ideally you should always have a bootable clone of your system that enables you to revert to the previous pre-update state.
    Turn off sleep mode for both screen and hard disk.
    Disconnect all peripherals except your keyboard and mouse.
    1. Repair Permissions (in Disk Utility)
    2. Verify the state of your hard disk using Disk Utility. If any faults are reported, restart from your install disk (holding down the C key), go to Disk Utility, and repair your startup disk. Restart again to get back to your startup disk.
    At least you can now be reasonably certain that your system does not contain any obvious faults that might cause an update/upgrade to fail.
    3. Download the correct version of the COMBO update from the Apple download site.
    The Combo updater of Leopard 10.5.8 can be found here:
    http://support.apple.com/downloads/Mac_OS_X_10_5_8_Combo_Update
    If you prefer to download updates via Software Update in the Apple menu (which would ensure that the correct version for your Mac was being downloaded), it is not recommended to allow SU to install major (or even minor) updates automatically. Set Software Update to just download the updater without immediately installing it. There is always the possibility that the combined download and install (which can be a lengthy process) might be interrupted by a power outage or your cat walking across the keyboard, and an interrupted install will almost certainly cause havoc. Once it is downloaded, you can install at a time that suits you. You should make a backup copy of the updater on a CD in case you ever need a reinstall.
    Full details about the 10.5.8 update here: http://support.apple.com/kb/HT3606
    More information on using Software Updater here:
    http://support.apple.com/kb/TA24901?viewlocale=en_US
    Using the Combo updater ensures that all system files changed since the original 10.5.0 are included, and any that may have been missed out or subsequently damaged will be repaired. The Delta updater, although a temptingly smaller download, only takes you from the previous version to the new one, i.e. for example from 10.5.7 to 10.5.8. Software Update will generally download the Delta updater only. The preferable Combo updater needs to be downloaded from Apple's download site.
    Now proceed as follows:
    4. Close all applications and turn off energy saving and screensaver.
    5. Unplug all peripherals except your keyboard and mouse.
    6. Install the update/upgrade. Do not under any circumstances interrupt this procedure. Do not do anything else on your computer while it is installing. Be patient.
    7. When it ask for a restart to complete the installation, click restart. This can take longer than normal, there are probably thousands of files to overwrite and place in the correct location. Do nothing while this is going on.
    8. Once your Mac is awake, repair permissions again, and you should be good to go!
    If your Mac seems slightly sluggish or ‘different’, perform a second restart. It can’t hurt and is sometimes efficacious! In fact a second restart can be recommended.
    9. Open a few of your most used applications and check that all is OK. In this connection please remember that not all manufacturers of third party applications and plug-ins, add-ons, haxies etc, will have had time to do any necessary rewrites to their software to make them compliant with the latest version of your operating system. Give them a week or two while you regularly check their websites for updates.
    N.B. Do not attempt to install two different updates at the same time as each may have different routines and requirements. Follow the above recommendations for each update in turn.
    Lastly, Apple's own article on the subject of Software Update may also be useful reading:
    http://docs.info.apple.com/article.html?artnum=106695
    [b]If you are updating Safari (or just have):[/b]
    Input Managers from third parties can do as much harm as good. They use a security loophole to reach right into your applications' code and change that code as the application starts up.  If you have installed an OS update and Safari is crashing, the very [i]first[/i] thing to do is clear out your InputManagers folders (both in your own Library and in the top-level /Library), log out and log back in, and try again.
    So, disable all third party add-ons before updating Safari, as they may not have been updated yet for the new version. Add them back one by one. If something goes awry, remove it again and check on the software manufacturer's website for news of an update to match your version of Safari.
    Most errors reported here after an update are due to an unrepaired or undetected inherent fault in the system, and/or a third party add-on.
    Additional tips on software installation here:
    http://docs.info.apple.com/article.html?artnum=106692
    To reiterate, Input Managers reach right into an application and alter its code. This puts the behavior of the affected application outside the control and responsibility of its developers: a recipe for  problems. That's not to say that issues absolutely will ensue as a result of Input Managers, but you, as a user, must decide. If the functionality of a specific Input Manager or set thereof is really important to you, you may well choose to assume the associated risk.
    Again, the advice is to remove all Input Managers from the following directories:
    /Library/InputManagers
    ~/Library/InputManagers
    especially prior to system updates (they can always be added back one-by-one later).
    Solutions for troubleshooting installation, startup, and login issues in Mac OS X v10.5
    http://support.apple.com/kb/TS1541?viewlocale=en_US

  • TS3148 A grey progress bar will appear and will load for a little bit and will shut off, what do I do?

    On my Mac book pro, a grey progress bar will appear for a
    Little bit and the computer will shut down.
    What do I do?

    Startup - Gray, Blue or White screen at boot, w/spinner/progress bar
    Startup - Gray Screen
    Startup Issues - Resolve
    Startup Issues - Resolve (2)

  • Draggable Progress Bar for swf - as2

    Hi there,
    I need to add a progress bar/playback controls for a presentation built in AS 2.0 which has such length voice over in it we've decided we need to give the user the ability to see where they are in the timeline and scrub through sections of the presentation. I'm familiar with stop and pause button code in situations like this, but it's the first time I've needed this kind of functionality. Presently, the first part of my project is set up with several scenes and is completely linear. The second section is interactive with swfs loaded into empty movieclips.
    I've found a number of references to progress bars online, but they're all for loading content, not for navigating once content is downloaded.
    Thanks so much in advance,
    Susan

    determine the two extremes of your progress bar, say xLow and xHigh, though you could use a vertical scrollbar, too and use y values.  you can then use:
    var tl:MovieClip=this;
    parameterF(yourdragbar_mc,xLow,1,xHigh,tl._totalframes);
    yourdragbar_mc.onPress=function(){
    this.startDrag(false,xLow,this._y,xHight,this._y);
    this.onEnterFrame=scrollF;
    yourdragbar_mc.onRelease=function(){
    this.stopDrag();
    delete this.onEnterFrame;
    function scrollF():Void{
    tl.gotoAndStop(Math.round(this.m*this._x+this.b));
    function parameterF(mc:MovieClip,x1:Number,y1:Number,x2:Number,y2:Number):Void{
    mc.m = (y1-y2)/(x1-x2);
    mc.b=y1-mc.m*x1;

  • ITunes stuck in "Waiting for iPhone" and iPhone 5's progress bar won't start loading.

    I was with about 40% battery, playing a game, when my iPhone 5 iOS 8.1 suddenly turned off, it wouldn't turn back on even with 30m charging. I went to iTunes, and it recognized it on recovery mode, and I tried to restore. However, it got stuck on "Waiting for iPhone" and the iPhone was with the progress bar at 0% for HOURS. I can't find a solution for the problem myself.
    Thanks.

    do you have a cdma iphone 4? becauase cdma iphones dont have a sim card slot... the providers that use cdma technology here in the us would be verizion, sprint, criket, ect... if you want to use your iphone 4 on att or tmobile (gsm carriers). then you would need a gsm iphone 4 (has sim card slot). a gsm iphone 4 is different than a cdma iphone 4 (they have different radio chips). maby you missed the sim card slot? sim card slot would be on the side of the phone.. never inside (unless it has a removable back cover like the galaxy s3 or s4), if you dont see a sim card slot on the side of the phone than you have a cmda iphone 4. can you tell me what carrier you are trying to use?

  • Internet recovery gets stuck on the spinning globe with the progress bar below.

    Hello Everybody!
    I'm trying to fix the iMac (27-inch, Mid 2010) of my friend. He said it doesn't boot anymore and just gets stuck on the grey screen with the Apple logo and the spinning wheel below. So my first step was to go into the Startup Manager by pressing the Option key after the chime. There I was presented with the Macintosh HD and the Recovery HD. After selecting the Recovery HD to access the Disk Utilities I got stuck on the grey screen with the Apple logo and the spinning wheel again. So I guess the data on the drive is corrupted and might have to be replaced. But before I do that, I wanted to give the Internet Recovery a try. I connected the iMac to the internet using an ethernet cable and pressed Command + Option + R after the chime and the spinning globe appeared with the info: "starting recovery process from network. This may take a while". After a short time the sentences are replaced by a progress bar and a timer that is counting up. The progress bar then moved for a tiny little bit and then nothing happens anymore but the timer keeps counting up. I waited for quiet some time before I gave up. I did not get any errors so I can't provide any other useful information. Can anyone give my some advice? I read in other posts that the ISPs of specific countries block ports which are needed for the internet recovery. I'm in Thailand right now. Does anyone know if that might cause the problem?
    Thank you for all your help!

    Neither we nor Apple support jailbroken iDevices.

  • Supress (Saves As) update progress bar

    I am using the SDK to perform a batch conversion of files from PDF to TIFF format -
    Everything is working great but......
    There is a progress bar that displays for each file as it is processed.
    Is there any way to turn off the display of the update bar ?
    Thanks.

    Okay , I have taken a look at the documentation on the Core API AVConversion et al and I have the following observations:
    1.       I now remember why I did not use AVConversion in the first place.
    2        The documentation is not altogether clear about how this particular feature works .
    3.       There are almost no examples of how to use this feature and how to get / set the various paramters and values associatexd with the Save As options.
    3.       Addtional help would be appreciated -
    4.       Is there any hope of asking for a tutorial  or a "how to" session on using the AVConversion method ?
    Thank You very much

  • Shared Library shows as shared but not accessible...progress bar grinds

    I have home sharing enabled and it works great between several computers on my home network.  However the library on 1 machine is shared and the library will show up as shared on the other machines, but when selected the progress bar just grinds for an extended period of time until it stops and just goes back to showing the host machine library....will not show the contents of the shared library of the 1 machine, only will show that it is shared.  Same results from different computers trying to see share on that machine.  Using the suspect machine we can see shares on the others.  The size of the library on the suspect is large (3000+ songs)....is there a size limit for sharing?

    I don't know the answer. I just wanted to jump in and say I'm experiencing the same problem. We have a MacBook Pro and two Windows laptops on home sharing. One of the Windows laptops can load my library with no problem. I can see the two Windows laptop libraries under Shared (with the house icon) in iTunes, but the library's won't load. The progress bar just grinds away until it times out.
    I've quit and restarted iTunes. I've turned Home Sharing off and back on. My husband (owner of one of the Windows laptops) deauthorized all computers through iTunes and I reauthorized to his account through Home Sharing.
    Nothing has worked so far.

  • Help - Grey wheel with progress bar on start up and then Macbook Pro turns of.

    So i recently bought a Macbook Pro 13 inch (the lower end). While doing my research i found the smartest thing to have a relatively fast macbook was to increase the ram. I bought http://www.newegg.com/Product/Product.aspx?Item=N82E16820148345 and installed it in my macbook pro. After starting up the macbook, i got to my login screen. However, everytime the computer would try to start up to my account, i would get a blue screen and then be brough back to my login page for the account. I assumed that the RAM was not fitted properly since my research indicated that it was most likely the problem. I re-installed the RAM sticks with more force but to no avail. Then i even switched the RAM sticks while installing to make sure that either one of my new RAM chips was not faulty but after a while, my MBP refuses to start up. I get the grey apple logo, with a spinning wheel and progress bar. The bar goes a quarter length before the laptop shuts off. I then put it in the original RAM sticks, but the same problem. Apple logo, spinning wheel, progress bar and then powers off. Any suggestions or thoughts as to what may have happened? Thank you!

    Last night the electricity went out and my power surge protector was not working so my iMac just force shut downed.
    So, when the electricity came back i turned on my Mac but it is *Stuck in the Startup/Boot Screen with a Grey Apple Logo,a Empty Progress Bar with stays for 1 or 2 minutes and a small Spinning Wheel which would Spin Forver! I Have tried the SMC and Pram reset but no use, i have also tried to insert my OS X Lion 10.7 Installation disk and it would not load if i hold the C Key in the Startup, I Have Managed to go to Disk Utility Through "Recovery HD"  but the Volume "Macintosh HD" is Greyed out and Unmounted and i cannot repair it. There are some files that i'd like to Recover if there is a way to fix it without deleting files.
    **PLEASE HELP ME FIX THIS!**
    Details about the iMac:
    iMac 21.5 Inch i think from Mid 2010,
    OS X Lion installed maybe 10.7.2 or 10.7.3 (im not sure)

  • Mac Stuck at Startup Screen with Grey Apple Logo,Empty Progress Bar and a Spinning wheel

    Last night the electricity went out and my power surge protector was not working so my iMac just force shut downed.
    So, when the electricity came back i turned on my Mac but it is *Stuck in the Startup/Boot Screen with a Grey Apple Logo,a Empty Progress Bar with stays for 1 or 2 minutes and a small Spinning Wheel which would Spin Forver! I Have tried the SMC and Pram reset but no use, i have also tried to insert my OS X Lion 10.7 Installation disk and it would not load if i hold the C Key in the Startup, I Have Managed to go to Disk Utility Through "Recovery HD"  but the Volume "Macintosh HD" is Greyed out and Unmounted and i cannot repair it. There are some files that i'd like to Recover if there is a way to fix it without deleting files.
    **PLEASE HELP ME FIX THIS!**
    Details about the iMac:
    iMac 21.5 Inch i think from Mid 2010,
    OS X Lion installed maybe 10.7.2 or 10.7.3 (im not sure)

    kernel
    Grey screen with Metallic Apple and spinning gear
    Sounds to me like your hard drive failed on you as a result of the power going out.
    http://www.apple.com/support/imac-harddrive/
    If your iMac is a Mid 2010 you qualify for the hard drive replacement program from Apple.
    Apple has determined that certain Seagate 1TB hard drives used in 21.5-inch and 27-inch iMac systems may fail. These systems were sold between October 2009 and July 2011.
    I hope I helped you with your problem.
    - Brandon

  • Progress Bar in Form

    how can i use progress bar in form for performing task in background

    Another simple trick I used to use is create one textitem with a white background color and a widht of 100. Create another textitem with the same height, x-pos and y-pos but with a width of 0 and a background color of blue.
    Then in your program vary the width of the blue textitem to "fill" the progress bar.
    The real challenge is how to calculate the percentage completed. If you're running a database stored procedure, then I'm afraid there is no way to communicate the progress back to the Forms process until the PL/SQL procedure is over. If it's a client/Forms side PL/SQL procedure then you can set the percentage complete of the progress bar

  • After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it.

    The page load progress bar that was on the lower right of the window is no longer there. After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it. The tab has a circular progress wheel but this is useless for determining a stuck or slow loading page.
    PLEASE NOTE: I am typing this in from a Windows based work computer but am asking about my Apple MacBook Pro that i use at home.

    Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    You can use "Firefox > History > Restore Previous Session" to get the previous session at any time.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.<br />
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • How to use progress bar for Main and Subsequences in teststand

    HI,
    I have one main sequence in that I am calling different subsequences (Containing many steps and for loop).
    I am trying to use progress bar for this sequence, but my requirement is progressbar is able to show the progress of all the steps containing in Main and subsequences.
    I have developed sequence in that I am able to show the progress for only Main sequence steps not for subsequences steps.
    Is it possible? If yes please let me know the suggestions.
    Thank You

    Hi Santosh
    Here you are
    Greetings
    Juergen
    never Double Click on Submit
    Message Edited by j_dodek on 08-05-2008 08:05 AM
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
    Attachments:
    Progress_ts351.seq ‏52 KB

  • HT4623 My iPhone 4 has become unresponsive during the update. It's showing a progress bar and has not moved for over half an hour can anyone help ?

    My iPhone 4 has become unresponsive during the latest update I have a progress bar about half way through the update and it hasn't moved for about an hour can anyone help???

    Hey Ali.M27,
    Thanks for the question. I understand you are experiencing issues with your iPhone during an iOS update. If your issues persist, you may need to restore your device in recovery mode:
    iOS: Unable to update or restore
    http://support.apple.com/kb/HT1808
    Thanks,
    Matt M.

Maybe you are looking for

  • Having problems with install

    On one of my PC work stations, I upgraded from XP Home to XP Professional. Unfortunately, despite all of the necessary program files remaining in place, none of them are working... not photoshop, dreamweaver, fireworks, flash, etc. What do you think

  • Optimum Drive Set-Up?

    Hello FCPX Communitiy! I was hoping get some insight into the optimum drive configuration for FCPX with my specific set-up? I have a MBP, 16GB RAM, with 2 internal 256 SSD. I also have 2, Lacie 2TB Thunderbolt drives (not the SDD version). 95% of the

  • Vendor number ranges

    Dear All, i guess there is sum buffering set in the system for vendor number ranges , coz wen i create new vendor it skips sum of the number and shows next number in vendor number range how can i set buffering zero ,,as we do in material , thanks,

  • PROCEDURE PROBLEM, URGENT ...

    Hi , I am geting an error while puting hint in a sub query. The query is like this SELECT /*+ INDEX (EMP EMPIDX) */ EMPNO FROM EMP WHERE DEPTNO IN (SELECT /*+ INDEX (DEPIDX) */ DEPTNO FROM DEP); My query is similar to the above one. And this query is

  • NWDS DATA DICTIONARY TABLE ISSUE

    Hi, I created a table in Data Dictionary. I created a new archive and deployed the SDA files successfully, but could cannot see the table in the Oracle Database. It says "Table or view does not exists".  What could be the error? How can i see the tab