Search:

Type: Posts; User: tg1w; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    8
    Views
    2,278

    Re: Bash: timing a script

    [QUOTE=Arndt;8425395]For example:


    $ \time sleep 5 2>/tmp/timefile; execution_time=`cat /tmp/timefile`

    Could you please help me out with the arithmetic operations too?

    If I want to get only...
  2. Replies
    8
    Views
    2,278

    Re: Bash: timing a script

    I wonder why using read doesn't solve the situation:



    $ /usr/bin/time sleep 1 2>&1 | read -s sleep_time
    $ echo $sleep_time

    $
  3. Replies
    8
    Views
    2,278

    Re: Bash: timing a script

    Interesting solution. The above, I presume, uses bash's time function, rather than /usr/bin/time.

    My main goal is to execute a number of simulations, time each of them individually and then...
  4. Replies
    8
    Views
    2,278

    Re: Bash: timing a script

    /usr/bin/time outputs to stderr. How may I collect the information in a variable (for example, with argument '/usr/bin/time -f "%e" some_program' I should obtain the execution time in seconds of...
  5. Replies
    8
    Views
    2,278

    Re: Bash: timing a script

    Thank you very much. It makes now sense why an application run in user mode, will also involve kernel mode operations.

    Would it sound reasonable then to time my simulation by summing the user mode...
  6. Replies
    8
    Views
    2,278

    Bash: timing a script

    Hi

    I need to benchmark a certain application and I want to use bash for this. I have already read that there is a /usr/bin/time program, apart from bash's own time command.

    I have two...
  7. [SOLVED] Re: How to install (only) a kernel from an installation CD

    God bless you bribera.

    After installing the 2.6.28 kernel and reverting to my very first /etc/fstab, the system correctly booted. That's where I'm writing from.

    Issue solved. I'm very grateful....
  8. [SOLVED] Re: How to install (only) a kernel from an installation CD

    On restart, GRUB shows me the new 2.6.31 kernel, but the booting procedure stops midway - screen turns black.

    I'll try to install the Jaunty kernel, 2.6.28.
  9. [SOLVED] Re: How to install (only) a kernel from an installation CD

    You mean the version of kernel I was previously running, or the one on the LiveCD?

    The LiveCD is running version 2.6.31-14-generic. This however cannot be found on kernel.ubuntu.com. I have thus...
  10. [SOLVED] Re: How to install (only) a kernel from an installation CD

    Hi. I managed to get the network started by copying the required files from the livecd filesystem. Started synaptic and downloaded a linux-image (needed wireless-crda too, among others) but I get the...
  11. [SOLVED] Re: How to install (only) a kernel from an installation CD

    Thank you Bribera. I will be working on that. Current results are:


    ubuntu@ubuntu:~$ sudo chroot /mnt/system /bin/bash
    root@ubuntu:/# sudo ifup eth0
    sudo: unable to resolve host ubuntu
    ifup:...
  12. [SOLVED] Re: How to install (only) a kernel from an installation CD

    Yes, I performed the update (there is a sudo aptitude update in a previous post). ... This should be a basic operation though...
  13. [SOLVED] Re: How to install (only) a kernel from an installation CD

    root@teodor-d630:/# sudo aptitude update
    Ign cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/main Translation-en_US
    Ign cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release...
  14. [SOLVED] Re: How to install (only) a kernel from an installation CD

    Yeap, life is not great.

    Only a couple of packages seem to be available in Synaptic. I tried to install a "lupin-support", the cdrom started spinning, package was downloaded. Then came a Error...
  15. [SOLVED] Re: How to install (only) a kernel from an installation CD

    Thank you.

    I had already been trying to trick Synaptic into using only the CD-ROM. To start with, this was mounted before chroot-ing, through a


    sudo mkdir /mnt/system/media/cdrom0
    sudo...
  16. [SOLVED] Re: How to install (only) a kernel from an installation CD

    Hi. I use Wifi. This is grep's output:

    root@ubuntu:/# grep cdrom /etc/apt/sources.list
    # deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/
    intrepid main restricted
  17. [SOLVED] Re: How to install (only) a kernel from an installation CD

    Thank you Bribera. I did everything all over again (the more times, the better). Indeed, root@ubuntu had ubuntu as hostname, while /etc/hosts had something else (x). I run sudo hostname x but...
  18. [SOLVED] Re: How to install (only) a kernel from an installation CD

    Indeed, I missed that. It is the /home partition. mount -l doesn't show /home as it is not mounted.



    ubuntu@ubuntu:/$ sudo mount -t ext3 /dev/sda6 /mnt/system/home
    ubuntu@ubuntu:/$ cd...
  19. [SOLVED] Re: How to install (only) a kernel from an installation CD

    I will try to install the linux-image from the Ubuntu CD. If anyone can provide help, it will be highly appreciated.

    Thank you very much all.
  20. [SOLVED] Re: How to install (only) a kernel from an installation CD

    Networking is not working...and not willing to work.



    ubuntu@ubuntu:/$ sudo chroot /mnt/system /bin/bash
    root@ubuntu:/# service networking start
    root@ubuntu:/# sudo apt-get install...
  21. [SOLVED] Re: How to install (only) a kernel from an installation CD

    As far as I can see, there is a /dev/disk/by-uuid/9c30...f6 entry. I deleted it but I get the same error.

    There is something interesting here:



    ubuntu@ubuntu:/$ sudo chroot /mnt/system...
  22. Replies
    21
    Views
    8,730

    [ubuntu] Re: mount: special device /dev/* does not exist.

    How did it go :)? I'm facing a similar "special device" problem described on this thread http://ubuntuforums.org/showthread.php?t=1313854.



    root@ubuntu:/# mount -a
    mount: special device...
  23. [SOLVED] Re: How to install (only) a kernel from an installation CD

    Anyone with an idea about the above? What does "special device" mean... it's not in /etc/fstab.

    Thanks
  24. [SOLVED] Re: How to install (only) a kernel from an installation CD

    I commented the /sda3 part of /etc/fstab. Still get a

    root@ubuntu:/# mount -a
    mount: special device /dev/disk/by-uuid/9c30c2b1-7423-48c7-86c5-eceddd6d41f6 does not exist

    which I don't know...
  25. [SOLVED] Re: How to install (only) a kernel from an installation CD

    Hmm. I have only /home located on a different partition. The rest of the filesystem is on sda1.



    root@ubuntu:/# sudo /etc/init.d/networking start
    sudo: unable to resolve host ubuntu


    Will...
Results 1 to 25 of 43
Page 1 of 2 1 2