The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
communicating to a device with no IP address? fishman2001 IP Networking 6 04-14-2007 10:58 AM
stty erase r bishweshwar UNIX for Advanced & Expert Users 5 11-27-2006 06:10 AM
"/dev/rmt/0: No such device or address" when using mt command shorty UNIX for Dummies Questions & Answers 4 10-12-2006 03:03 AM
stty frank UNIX for Dummies Questions & Answers 1 11-08-2002 11:49 AM
stty: : Not a typewriter yls177 UNIX for Dummies Questions & Answers 4 11-06-2002 09:08 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-20-2006
nandinisagar nandinisagar is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 5
stty: : No such device or address

I encoutered the error "stty: : No such device or address" in the korn shell script log. I added STTY EARSE ^H in profile. why iam i getting that error in Korn shell

Thanks
nandinisagar
  #2 (permalink)  
Old 01-20-2006
linuxpenguin's Avatar
linuxpenguin linuxpenguin is offline Forum Advisor  
Registered User
  
 

Join Date: May 2002
Location: India
Posts: 295
Hi Nandini,
dont mind, but is that EARSE a typo in this thread, or that is what you really typed in the script. shouldn't it be erase
  #3 (permalink)  
Old 01-23-2006
nandinisagar nandinisagar is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 5
Its a typo

In the profile we have the following line

stty erase ^H

Thanks
nandinisagar
  #4 (permalink)  
Old 01-23-2006
tmarikle tmarikle is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2005
Posts: 683
This occurs on non interactive shells. Read this thread.
  #5 (permalink)  
Old 01-24-2006
nandinisagar nandinisagar is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 5
I read that posting , i don't know what to add in .profile as I am new to scripting... Can you please tell me what to add in .profile in order to avoid that message.

Thanks
nandinisagar
  #6 (permalink)  
Old 01-24-2006
mahendramahendr mahendramahendr is offline Forum Advisor  
Registered User
  
 

Join Date: Dec 2005
Location: London
Posts: 222
Is it possible for you to post your current .profile file here ??
  #7 (permalink)  
Old 01-24-2006
tmarikle tmarikle is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2005
Posts: 683
Quote:
Originally Posted by nandinisagar
I read that posting , i don't know what to add in .profile as I am new to scripting... Can you please tell me what to add in .profile in order to avoid that message.

Thanks
nandinisagar
That particular post is pretty clear on what you need to do but here is a starting point.

You will want to look for instances where you are executing commands like this in your .profile or .kshrc:
Code:
stty -o vi or stty erase ^H
and add a test like this:
Code:
if [[ $- = *i* ]]
then
    stty -o vi
    stty erase ^H
fi
If you're new to scripting and you still struggle with this example then you're going to need to post your .profile and .kshrc as mahendramahendr requested for further help.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0