stty errors


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers stty errors
# 1  
Old 02-06-2006
stty errors

Hi folks,

I run a script in rsh on HP-UX v2 (B.11.23 U 9000/800) and each time I have "su - user" in my program I'm getting the following output on the screen:
Code:
stty: : Unknown error
process not attached to terminal
Usage:  who [-rbtpludAasHTqRmW] [am i] [utmp_like_file]

r       run level
b       boot time
t       time changes
p       processes other than getty or users
l       login processes
u       useful information
d       dead processes
A       accounting information
a       all (rbtpludA options)
s       short form of who (no time since last output or pid)
H       print header
T       status of tty (+ writable, - not writable, x exclusive open, ? hung)
q       quick who
R       print host name
W       print Entries in wtmps

Any suggestions how to overcome it?

Thanks in advance,
Nir
# 2  
Old 02-06-2006
Are you running this script through cron? If yes, the problem could be this: When you do 'su - user', the user's profile files are parsed. There could be commands in the profile that require to be run from a terminal.
# 3  
Old 02-06-2006
This script is not run by cron.
The "su" user is ias and its .cshrc looks as the following:
Code:
if ($?prompt) then
set nobeep
set history=50
set savehist=50
set system='hostname'
stty erase ^h
set filec
set noclobber ignoreeof
if ( `who am i | wc -w` >= 5 ) then
   setenv DISPLAY `who am i | cut -d"(" -f2 | cut -d")" -f1`
endif
endif
setenv ORACLE_BASE /home/ias
setenv ORACLE_HOME $ORACLE_BASE/v10.1.2
setenv ORACLE_SID DB10g
setenv ORACLE_TERM vt100
setenv NLS_LANG AMERICAN_AMERICA.UTF8
setenv LD_LIBRARY_PATH $ORACLE_HOME/lib:/usr/lib:$ORACLE_HOME/webcache/lib
setenv LD_LIBRARY_PATH $ORACLE_HOME/Apache/Apache/libexec:$LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH $ORACLE_HOME/icache/lib:$LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH $ORACLE_HOME/6iserver/reports60/lib:$LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH $ORACLE_HOME/6iserver/forms60/lib:$LD_LIBRARY_PATH

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to use stty?

Hi , I have shell scripting in linux box. This script is mentioned that should be run under the one particular user. If you run that mentioned user location then it is working fine.... Suppose if you are trying run from some other user like as mentioned below sudo su - gxadm -c script.sh ... (1 Reply)
Discussion started by: Mani_apr08
1 Replies

2. Shell Programming and Scripting

stty: : I/O Error

Hi all, I am stuck on a shell script issue and need your inputs: I have a parent script A.ksh which call in another script B.ksh. At the start of the B.ksh, we export the .profile of another user and then call Informatica jobs. Issue When I run my jobs from the command prompt, it works... (1 Reply)
Discussion started by: fromrishi
1 Replies

3. OS X (Apple)

Using stty

Hello, I am trying to configure a serial port, for mac os x 10.6. I believe I can use the stty command to look at serial port configuration and or change the serial port settings. I read the man page, but I don't really know what I am doing. Any help? (0 Replies)
Discussion started by: jamesapp
0 Replies

4. UNIX for Advanced & Expert Users

stty: : Not a typewriter -- Help please

Hi All, I have been runing the same set of program using the same auto profile for an year. Now when i run the same set of process , i getting the below error Not a terminal stty: : Not a typewriter stty: : Not a typewriter ksh: jil: not found ksh: sendevent: not found logout... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies

5. UNIX for Dummies Questions & Answers

Major OS errors/Bash errors help!!!!

Hi all, dummy here.... I have major errors on entering the shell. On login I get: -bash: dircolors: command not found -bash: tr: command not found -bash: fgrep: command not found -bash: grep: command not found -bash: grep: command not found -bash: id: command not found -bash: [: =: unary... (12 Replies)
Discussion started by: wcmmlynn
12 Replies

6. UNIX for Dummies Questions & Answers

stty tcgetattr errors

Hi, I have an app that runs Oracle 8.1.7 residing on a AIX 4.3 ML 10 . preiodically app sends out a status log like the one displayed below. Lately I have noticed this stty:tcgetattr message in the log. Script that writes this output calls sqlplus, gets the required count and writes output to... (8 Replies)
Discussion started by: Student37
8 Replies

7. AIX

Adapter Errors and Link Errors

$ errpt | more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR 3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR B8113DD1 ... (2 Replies)
Discussion started by: mcastill66
2 Replies

8. UNIX for Advanced & Expert Users

Adapter Errors and Link Errors

$ errpt | more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR 3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR B8113DD1 ... (0 Replies)
Discussion started by: mcastill66
0 Replies

9. UNIX for Dummies Questions & Answers

stty

I am trying to set my backspace key as the erase key right now I have to type CONTROL-H to delete. Can you please tell me the command to set my backspace as the erase key...... (1 Reply)
Discussion started by: frank
1 Replies

10. UNIX for Dummies Questions & Answers

stty: : Not a typewriter

stty: : Not a typewriter the above error comes after i execute the script below o hpux B.11.00 #!/usr/bin/ksh /bin/su - <oraid> -c "svrmgrl" << EOF connect internal startup exit EOF echo "# End "`date +%D" "%T` >> time.log (4 Replies)
Discussion started by: yls177
4 Replies
Login or Register to Ask a Question