Find the answer to your Linux question:
Results 1 to 2 of 2
I am having issues with putty going inactive during a session and the job failing. I do not want to run nohup but would llike a korn shell script to ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    2

    Putty Timeout

    I am having issues with putty going inactive during a session and the job failing. I do not want to run nohup but would llike a korn shell script to keep putty alive. Any ideas? TIA

  2. #2
    Just Joined!
    Join Date
    Jun 2009
    Posts
    2

    Found script, need to know...

    I found a script online that is designed to keep alive. Can I build and run this script from my Putty session? TIA

    #!/bin/ksh
    x=0
    y=0
    flip_flop=0
    while [ 1=1 ]
    do
    clear
    if [[ $x -ge ${LINES} ]]; then
    x=1
    else
    x=`expr $x + 2`
    fi

    if [[ $y -ge ${COLUMNS} ]]; then
    y=1
    else
    y=`expr $y + 2`
    fi
    tput cup $x $y
    if [[ $flip_flop -eq 0 ]]; then
    echo “Keep Alive On”
    flip_flop=1
    else
    flip_flop=0
    echo “`tput smso`Keep Alive On`tput rmso`”
    fi
    sleep 2
    done

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...