11-05-2002
I assume that you actually have something sensible in place of "<oraid>".
The stty command sends ioctl's to its stdin. You can do this:
stty -a > stty.out
but you cannot do this:
stty -a > stty.out < /dev/null
because /dev/null is not a tty device. Ther ioctl's will fail.
Some people put stty commands in their startup scripts (.profile for ksh). Ideally, they should test to see if the shell is interactive.
When you run "su -", you are asking for the startup scripts to run. But the su statement does not have stdin connected to a tty. So the stty in the start script fails and you get the error message.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. UNIX for Advanced & Expert Users
I am getting the error "not a typewriter" when my program invokes the
sscanf function. What does this error imply and how can I get past it ?
Thanks in advance. (2 Replies)
Discussion started by: jxh461
2 Replies
3. UNIX for Advanced & Expert Users
after hitting this command...on pressing r acts as a backspace character....
how to disable this function (5 Replies)
Discussion started by: bishweshwar
5 Replies
4. UNIX for Advanced & Expert Users
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
(sys10:pt:/pf>) cat 122974qqq.s
RUNAS Version 2007.10.07 Run on Dec 11 2008 10:09:36 AM
UNIX Process: 26021
Login User : root
PFW User : s08280
Not a terminal
stty: : Not a typewriter
stty: : Not a typewriter
ksh: jil: not found
ksh: sendevent: not found... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
6. OS X (Apple)
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
7. Shell Programming and Scripting
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
8. UNIX for Advanced & Expert Users
Copy Paste Issue...
Pasted some c**p of a excel...!!
Sorry Guys. Please look Below for the issue. (4 Replies)
Discussion started by: grep_me
4 Replies
9. Shell Programming and Scripting
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
LEARN ABOUT SUNOS
setusershell
getusershell(3C) Standard C Library Functions getusershell(3C)
NAME
getusershell, setusershell, endusershell - get legal user shells
SYNOPSIS
#include <unistd.h>
char *getusershell(void);
void setusershell(void);
void endusershell(void);
DESCRIPTION
The getusershell() function returns a pointer to a legal user shell as defined by the system manager in the file /etc/shells. If
/etc/shells does not exist, the following locations of the standard system shells are used in its place:
/bin/bash /bin/csh
/bin/jsh /bin/ksh
/bin/pfcsh /bin/pfksh
/bin/pfsh /bin/sh
/bin/tcsh /bin/zsh
/sbin/jsh /sbin/pfsh
/sbin/sh /usr/bin/bash
/usr/bin/csh /usr/bin/jsh
/usr/bin/ksh /usr/bin/pfcsh
/usr/bin/pfksh /usr/bin/pfsh
/usr/bin/sh /usr/bin/tcsh
/usr/bin/zsh /usr/xpg4/bin/sh
The getusershell() function opens the file /etc/shells, if it exists, and returns the next entry in the list of shells.
The setusershell() function rewinds the file or the list.
The endusershell() function closes the file, frees any memory used by getusershell() and setusershell(), and rewinds the file /etc/shells.
RETURN VALUES
The getusershell() function returns a null pointer on EOF.
BUGS
All information is contained in memory that may be freed with a call to endusershell(), so it must be copied if it is to be saved.
SunOS 5.10 30 Aug 2004 getusershell(3C)