Sponsored Content
Full Discussion: Stty help in korn shell
Top Forums UNIX for Advanced & Expert Users Stty help in korn shell Post 302996453 by Corona688 on Wednesday 26th of April 2017 11:53:05 AM
Old 04-26-2017
Thank you for trying to format your post, you're very close, please use code tags instead of bold tags, that is the Image button.

The problem is, stty doesn't make sense for anything which doesn't have a terminal.

I'm surprised ~/.profile is being executed for non-interactive logins though. Often there's code to avoid that. What do you have in ~/.kshrc ? And ~/.profile for that matter?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Korn Shell

Hi I am new to shell programming. I need help to write a script to monitor a process on Sun OS. If the process fails then call a oracle procedure. i check the process if running by typing ps -ef | grep ESP | grep -v grep root 29002 1 0 Mar 18 ? 7:20... (4 Replies)
Discussion started by: gpanesar
4 Replies

2. Shell Programming and Scripting

KORN Shell - Spawn new shell with commands

I want to be able to run a script on one server, that will spawn another shell which runs some commands on another server.. I have seen some code that may help - but I cant get it working as below: spawn /usr/bin/ksh send "telnet x <port_no>\r" expect "Enter command: " send "LOGIN:x:x;... (2 Replies)
Discussion started by: frustrated1
2 Replies

3. Shell Programming and Scripting

how to convert from korn shell to normal shell with this code?

well i have this code here..and it works fine in kornshell.. #!/bin/ksh home=c:/..../ input=$1 sed '1,3d' $input > $1.out line="" cat $1.out | while read a do line="$line $a" done echo $line > $1 rm $1.out however...now i want it just in normal sh mode..how to convert this?... (21 Replies)
Discussion started by: forevercalz
21 Replies

4. UNIX for Dummies Questions & Answers

bourne shell or korn shell?

Hi, I have a script that uses "nohup" command to execute a korn shell script. Which one is the correct shell to use bourne shell or korn shell to execute a korn shell? and why? Thanks in advanced. (2 Replies)
Discussion started by: XZOR
2 Replies

5. UNIX for Dummies Questions & Answers

what are some different commands in c shell and korn shell??

I am doing this simple script using c shell and korn shell. The commands I use are fgrep , ls, and also some redirecting. Is there any difference in using both of these commands in c shell and korn shell? Thanks and sorry for the stupid question. (1 Reply)
Discussion started by: EquinoX
1 Replies

6. Shell Programming and Scripting

how can i call one korn shell from a shell

Hi guys, please help me I have a ksh script (second picture down), in that script I define the function DATECALC. Now I want to use this function KSH in a program shell. How can I call this ksh from my shell program? My shell program is... in the first two lines I tried to call... (1 Reply)
Discussion started by: acevallo
1 Replies

7. Shell Programming and Scripting

korn shell

I am using korn shell but I want to have my prompt to represnent that of my C shell because I like it better. Is there anyway to do this? (1 Reply)
Discussion started by: vthokiefan
1 Replies

8. Shell Programming and Scripting

How to activate Korn Shell functionnalities in Bourne Shell

Hi All I have writing a Korn Shell script to execute it on many of our servers. But some servers don't have Korn Shell installed, they use Borne Shell. Some operations like calculation don't work : cat ${file1} | tail -$((${num1}-${num2})) > ${file2} Is it possible to activate Korn Shell... (3 Replies)
Discussion started by: madmat
3 Replies

9. Shell Programming and Scripting

Bourne shell & Korn shell

Could some one tell me the difference btw Bourne shell and the Kshell? Which is more flexible and reliable in terms of portability and efficiency. When i type the following command .. $ echo $SHELL yields me /bin/sh Does this tells me that I am in Bourne shell. If yes, how can i get... (6 Replies)
Discussion started by: bobby1015
6 Replies

10. Shell Programming and Scripting

New to korn shell

I am new to korn shell and slowly learning. Is there a way to have a parent script prompt for input and then execute a child script and return the output then move forward and ask for more input and then execute the next child script? I think the answer is no but thought i would ask. (2 Replies)
Discussion started by: cptkirkh
2 Replies
STTY(1) 						      General Commands Manual							   STTY(1)

NAME
stty - set terminal parameters SYNOPSIS
stty [-ag] stty encoded-form stty speed ispeed speed ospeed speed cs5 cs6 cs7 cs8 [-]parenb [-]parodd [-]hupcl [-]cstopb [-]cread [-]clocal [-]ignbrk [-]brkint [-]ign- par [-]parmrk [-]inpck [-]istrip [-]inlcr [-]igncr [-]icrnl [-]ixon [-]ixoff [-]ixany [-]opost [-]onlcr [-]xtabs [-]onoeot [-]isig [-]icanon [-]iexten [-]echo [-]echoe [-]echok [-]echonl [-]noflsh [-]lflusho eof=c eol=c erase=c erase=c intr=c kill=c quit=c susp=c start=c stop=c rprnt=c lnext=c flush=c min=n time=n rows n cols n cooked raw [-]evenp [-]parity [-]oddp [-]nl ek sane DESCRIPTION
Stty shows or changes the parameters of the terminal connected to standard input. Stty takes a myriad of arguments most of which are mapped directly to the flags and special characters described in tty(4), so we won't describe them here. Stty has three forms of operation. First, without any arguments stty shows all terminal attributes that are different from the default state. Option -a makes stty print all terminal attributes, and -g lets stty print the attributes in a special encoded form, a simple row of colon separated hexadecimal numbers. In the second form of operation stty takes an encoded form as produced by the -g option and sets the terminals attributes to its decoded value. In the third form stty interprets a series of flags and parameters settings and modifies the terminal attributes accordingly. Flags can be given as icanon or -icanon for instance, either setting or clearing the ICANON flag. Special character values can by set like intr=^C for example, which sets the interrupt character to CTRL-C. You can either use a real CTRL-C, or the two characters `^' and `C'. In any case it is probably necessary to use quotes to guard it from the shell: intr='^C'. A number alone is interpreted as a baud rate setting for both the input and output rate. The input or the output rate can be set sepa- rately with use of the ispeed and ospeed prefixes to the number. The character size can be set with cs5, cs6, cs7 or cs8. The MIN and TIME value, and the number of rows and columns of the window can also be set using one of the keywords min, time, rows or cols, followed by a decimal number that is the value of the setting. Stty accepts several keywords that are not named by corresponding flags or parameters in tty(4). They set several attributes at once: cooked Same as icrnl ixon opost onlcr isig icanon iexten echo, setting all the attributes that are needed for line oriented mode. raw Same as -icrnl -ixon -opost -onlcr -isig -icanon -iexten -echo, setting all the attributes for a raw data channel. evenp parity These synonyms are equal to cs7 parenb -parodd, setting the line to 7 bits even parity. oddp Same as cs7 parenb parodd, setting the line to 7 bits odd parity. -parity -evenp -oddp All synonyms for cs8 -parenb, setting the line to 8 bits, no parity. nl Same as icrnl, setting carriage return to line feed input translation. -nl Same as -icrnl -inlcr -igncr, disabling any carriage return or line feed handling. ek Set the ERASE and KILL special characters back to the default. sane Set all attributes to the default except things like the line speed and parity, because their "sane" value is probably what it is right now. The default values are compiled into stty from the <termios.h> include file. Use stty sane; stty -a to know what they are. FILES
/etc/ttytab The init field of this file may contain an stty command to set the attributes to match an attached RS232 terminal or modem. SEE ALSO
tty(4), ttytab(5). NOTES
The cooked, raw, rows and cols keywords are Minix additions beyond the keywords defined by POSIX. Rows and cols are common UNIX exten- sions, however. There are more Minix specific flags that match the Minix specific attributes described in tty(4). AUTHOR
Kees J. Bot (kjb@cs.vu.nl) STTY(1)
All times are GMT -4. The time now is 10:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy