weird problem - terminal not refreshing; sleep not terminating


 
Thread Tools Search this Thread
Operating Systems Solaris weird problem - terminal not refreshing; sleep not terminating
# 1  
Old 07-13-2009
Data weird problem - terminal not refreshing; sleep not terminating

Hi,

I am having a wierd problem in one of the Solaris server.

Code:
root@ussd # uname -a
SunOS ussd 5.8 Generic_108528-24 sun4u sparc SUNW,Sun-Fire-280R

The problem is that terminal is not refreshing when we run commands like
prstat, tail -f "some log file", sar -u 1 10


Also, sleep command is not terminating normally. I have to press ctrl+C or ctrl+Z to terminate it.

Code:
root@ussd # sleep 2
^C
root@ussd #

root@ussd # sleep 5
^Z
[1]+  Stopped                 sleep 5
root@ussd #

root@ussd # ps -aef | grep sleep
    root 22218     1  0 11:32:57 ?        0:00 sleep 2
    root 22311 21950  0 11:54:31 pts/1    0:00 sleep 5


Any suggestions, I am unable to troubleshoot this problem.

Please HELP !!!
# 2  
Old 07-13-2009
You don't mention any details of the terminal itself.

1) Check the value of $TERM is set, and that it is set to a value which matches you terminal and that the terminal itself is set up correctly.
If the unix "clear" command does not clear the screen, this usually means that the TERM is wrong.

2) Check "stty -a" values.
Clearly "stty intr" is not set to ctrl/C . (It's echoing ctrl/C rather than actioning it).
In your example ctrl/Z has backgrounded the task. This is normal behaviour.
# 3  
Old 07-14-2009
Data

Quote:
Originally Posted by methyl
You don't mention any details of the terminal itself.

1) Check the value of $TERM is set, and that it is set to a value which matches you terminal and that the terminal itself is set up correctly.
If the unix "clear" command does not clear the screen, this usually means that the TERM is wrong.

2) Check "stty -a" values.
Clearly "stty intr" is not set to ctrl/C . (It's echoing ctrl/C rather than actioning it).
In your example ctrl/Z has backgrounded the task. This is normal behaviour.


Hi,

TERM value is set as xterm. "clear" command is working fine.

How can I confirm that "terminal itself is set up correctly." ???

Code:
root@ussd-gw # stty -a
speed 38400 baud;
rows = 42; columns = 125; ypixels = 0; xpixels = 0;
csdata ?
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^\; erase = ^?; kill = ^u;
eof = ^d; eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
-parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -parext
-ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff -imaxbel
isig icanon -xcase echo echoe echok -echonl -noflsh
-tostop echoctl -echoprt echoke -defecho -flusho -pendin iexten
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel


root@ussd-gw # env
EDITOR=vi
HOME=/
LD_LIBRARY_PATH=/usr/openwin/lib
LOGNAME=root
MAIL=/var/mail//root
MANPATH=:/usr/man:/usr/share/man
OPENWINHOME=/usr/openwin
PATH=/opt/sun/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:/usr/platform/SUNW,Sun-Fire-280R/sbin:/home/oracle/ora9i/bin
PS1=root@ussd #
PS2=root@ussd >
SHELL=/sbin/sh
SSH_CLIENT=10.2.29.44 35267 22
SSH_CONNECTION=10.2.29.44 35267 10.2.29.43 22
SSH_TTY=/dev/pts/1
TERM=xterm
TZ=Asia/Calcutta
USER=root

Pls help !!
# 4  
Old 07-15-2009
Lightbulb

Hi All,

Seems like I found the culprit in /var/adm/messages.

We have some unusual errors there like.

Code:
kern.warning] WARNING: [AFT0] 3 soft errors in less than 24:00 (hh:mm) detected from Me
mory Module J0406

Transaction was a block operation.
Jun 25 12:06:07 ussd pcisch: [ID 956438 kern.info] dvma access, Memory safari command, address 00000000.7e2ee2d0, owned_
in not asserted.

secondary error from DVMA read transaction

I googled for these errors, seems like the PCI slot where the memory card is inserted is faulty. An engineer from SUN Microsystems is also working on it.'

Best Regards,
vIKAS
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem in refreshing a text editor (gedit) for scanned pdf

Dear Friends, I am using Ubuntu 15.10, 34 bit system. I added a Nautilus-Actions script in shell script to convert PDF files to text. There are 2 types of PDF 1. Scanned PDF -- Not OCR type -- When I convert it to text it work , but as the part it must (text file) open in gedit . But I can see... (2 Replies)
Discussion started by: anespa
2 Replies

2. Shell Programming and Scripting

Weird awk problem

Hi, I have a simple awk script: BEGIN{} { $a=$2-$1; print $a } END{if(NR==0){ print "0" } } to which I provide the following input 2.9 14 22.2 27 (4 Replies)
Discussion started by: jamie_123
4 Replies

3. Infrastructure Monitoring

Weird dependency problem!

Hi, I want to install net-snmp-devel package but i have following dependecy problem. It's very odd, i don't get it. One of packages is depended on the other one, the other one is depended on the previous one as well. :S :S Could you help me please? Here are the steps: # ls -l total... (4 Replies)
Discussion started by: oduth
4 Replies

4. Shell Programming and Scripting

How can i terminating expect script without terminating SSH connection.

Hi all , i know i ask a lot of question but these are really hard to solve and important question. I send two scripts: expect.sh: #!/usr/local/bin/expect spawn ssh root@172.30.64.163 expect "login:" send "root\n" expect "password:" send "root\n^M" interact and son.sh: ... (2 Replies)
Discussion started by: fozay
2 Replies

5. UNIX for Advanced & Expert Users

Really weird delete problem

Hi, I've Ubuntu 8.04, and it has some files that I just cannot delete. I've tried everything, inode, fsck etc. Here is what the ls -li outputs root@ubuntu:/home/luser/.local/share/Trash/files/junk# ls -l ls: cannot access TRUNK_: No such file or directory ls: cannot access 2006_output.mv:... (11 Replies)
Discussion started by: nitin
11 Replies

6. Programming

problem with sleep command

Hi all, I have a following code,(linux) #include<stdio.h> #include<unistd.h> int main() { printf("start"); sleep(3); printf("stop"); return 0; } i am getting output as first delay startstop (5 Replies)
Discussion started by: shashi
5 Replies

7. Shell Programming and Scripting

problem using sleep command

hi all im trying to : while true do command sleep 1000 done the problem is that after the 24:00 hour the script stop any idea :) (7 Replies)
Discussion started by: lione.heart
7 Replies

8. UNIX for Dummies Questions & Answers

Terminating child script with terminating the parent script

Hi I was working on a shell script with randomly shows a page of text from a randomly selected topic .As soon as the page is displayed it callers a timer script which keeps on running indefinitely until the timer script is killed by the user. This is where I have the problem,if I press... (2 Replies)
Discussion started by: mervin2006
2 Replies

9. Shell Programming and Scripting

sleep problem

hi all i have a menu (solaris unix), and every option calls a fuction. example: Menu_Principal while do case $Opcion_UnCaracter in ... (3 Replies)
Discussion started by: DebianJ
3 Replies

10. UNIX for Dummies Questions & Answers

Weird Problem???

I have a problem I don't understand... I am trying to declare a variable, and then output the results of that variable, couldn't be simpler #!/bin/ksh VAR='Oranges' if then echo "Found Lemons" elif then echo "Found Oranges" fi The output shouold clearly be "Found Oranges", but... (2 Replies)
Discussion started by: danhodges99
2 Replies
Login or Register to Ask a Question