Search:

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

Page 1 of 10 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    3
    Views
    3,397

    [other] Re: rsync --read-batch over ssh

    Yes I did, but I expected similar syntax as to the rsync over ssh, as you see in my code snippet.

    Now I'm doing this and it works:



    function exec_rsync() {
    local...
  2. Replies
    3
    Views
    3,397

    [other] rsync --read-batch over ssh

    Hello all,

    I have a question regarding rsync --read-batch=file over ssh.

    I'm doing the following:



    function exec_rsync() {
    local host=$1
  3. Replies
    7
    Views
    2,601

    Re: Finding out if in chroot

    For my own systems it is pretty easy to figure out if I'm in a chroot. But on other systems I cannot assume a file is there or not.
  4. Replies
    9
    Views
    682

    Re: PHP Code Bug....

    Guys, use PDO for this. It does all the checking for you, prepared statements ftw :)

    http://php.net/manual/en/book.pdo.php

    Your current method:



    $sql = sprintf("SELECT code, name FROM...
  5. Replies
    30
    Views
    89,266

    Re: HOWTO: Remove Older Kernels via GUI

    No worries, I added an extra check, we shouldn't get into your situation again.
  6. Replies
    7
    Views
    2,601

    Re: Finding out if in chroot

    That doesn't really work, for example:

    Inside my Ubuntu chroot:

    15:33 pts/9 0 wesleys@eniac:/home/wesleys
    $ ls -id /
    2 /

    My Debian (currently running):
    15:33 pts/8 0...
  7. Replies
    7
    Views
    2,601

    Finding out if in chroot

    Hello,

    I've been trying to figure out what I need to do to check whether I'm in a chrooted environment.

    At the moment, my search came up with little results.

    Does anyone have some useful...
  8. Replies
    30
    Views
    89,266

    Re: HOWTO: Remove Older Kernels via GUI

    I made a cli version for this, had it a long time ago, for Ubuntu, recently made a version which supports Debian/Ubuntu and has been tested on:


    Ubuntu 8.04 LTS / 10.10
    Debian stable /...
  9. Replies
    15
    Views
    2,452

    [ubuntu] Re: install files with old dependencies ... how?

    Haha, there is no lib64stdc++5 available, afaics

    Try to install one of these:
    http://packages.ubuntu.com/search?suite=all&arch=amd64&searchon=names&keywords=libstdc%2B%2B5
  10. [SOLVED] Re: [shell script]how do I kill script when ssh asks for a password

    I ment in the ssh_need_pass function, you could use echo "" instead of ls. It is quicker (me thinks).

    because you use "$OPTIONS_BASE --dry-run ..." after rsync (without eval), rsync thinks you...
  11. [SOLVED] Re: [shell script]how do I kill script when ssh asks for a password

    ty, is use something like that to copy over certain files and setup keybased logins on machines where i still have password logins..

    btw, in stead of ls, you could also use echo, could be quicker....
  12. Replies
    15
    Views
    2,452

    [ubuntu] Re: install files with old dependencies ... how?

    That's a wrong interpretation. I think it is weird that it doesn't work. But as a quick fix:

    export LD_LIBRARY_PATH=/usr/lib

    and then run the ldd command again, it should now find it. Why it...
  13. [SOLVED] Re: [shell script]how do I kill script when ssh asks for a password

    function check_ssh_needs_pass() {
    local host="$1"
    ssh $host -o BatchMode=yes ls &>/dev/null
    if [ $? -eq 0 ] ; then
    echo "keybased login OK"
    return 0
    else
    ...
  14. Replies
    15
    Views
    2,452

    [ubuntu] Re: install files with old dependencies ... how?

    wat does ldd say?

    ldd /mnt/dsrc/i486_linux/obj/redirect

    Because your setup looks good..
  15. Replies
    4
    Views
    2,250

    [SOLVED] Re: Deleting rebellious environment variable

    grep -r ZOMBIE $HOME /etc will do the trick as well. maxdepth 1 is the same as grep ZOMBIE $HOME/* /etc/*

    And there is no need for xargs:



    find /etc $HOME -type f -exec grep ZOMBIE {} +
    #...
  16. Replies
    6
    Views
    906

    [SOLVED] Re: Update problems

    This seems to be your problem:




    Unpacking replacement adobe-flashplugin ...
    dpkg: error processing /var/cache/apt/archives/adobe-flashplugin_10.2.152.27-0maverick1_i386.deb (--unpack):
    ...
  17. Replies
    4
    Views
    2,250

    [SOLVED] Re: Deleting rebellious environment variable

    what is the name of the zombie variable?

    You can also use the unset command.

    unset ZOMBIE and it should be gone.. and/or use export ZOMBIE="" but, I guess finding where it is would be more...
  18. Replies
    13
    Views
    2,166

    [SOLVED] Re: Math in sh = fail

    I guess I have been calculating stuff incorrectly since '92, since I used different math-rules. In '92 they changed the order. Guess no high-school teacher wanted to tell me this :D
  19. Replies
    13
    Views
    2,166

    [SOLVED] Re: Math in sh = fail

    Tbh, the answer could never be 60.

    30 / 60 * 120 == 30 / ( 60 * 12) == 30 / 7200 != 60

    The notation should be different, eg (30/60) * 120.
  20. Replies
    13
    Views
    2,166

    [SOLVED] Re: Math in sh = fail

    That's funny..



    $ echo "30 / 60 * 120" | bc
    0
    $ echo "scale = 1; 30 / 60 * 120" | bc
    60.0
  21. Replies
    3
    Views
    1,040

    [SOLVED] Re: Security updates and PHP version

    Have a look at pinning:



    sudo vi /etc/apt/preferences



    # Use this specific version of the hello package
    Package: hello
  22. Replies
    12
    Views
    2,688

    [ubuntu] Re: How do i update flash player in firefox?

    See: http://blog.opperschaap.net/2009/11/13/upgrade-flash-on-ubuntu-after-a-release-upgrade/

    Just add that repository and you'll be fine.
  23. [ubuntu] Re: I need help on how to automatically shutdown ubuntu 9.10 server.

    Shutting down a server? Weird request but eh.. not my box.

    Have a look at cron:

    man crontab
    man cron

    You would have something like this in the crontab of root:
  24. Replies
    32
    Views
    2,739

    [ubuntu] Re: Ubuntu 10.10 Desktop has Udated to Server

    It might be handy to post the contents of your X log file:



    cat /var/log/Xorg.0.log
    cat /var/log/Xorg.0.log.old


    This will help in troubleshooting the issue :)
  25. Replies
    13
    Views
    5,174

    [ubuntu] Re: Upgrade from 10.4.1 LTS to 10.10 server

    In that case I think the generic kernel will do just fine.
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4