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 ...
- 06-01-2009 #1Just 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
- 06-01-2009 #2Just 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


Reply With Quote