LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-21-2015, 05:12 AM   #1
DoME69
Member
 
Registered: Jan 2008
Posts: 189

Rep: Reputation: 16
stty: standard input: Input/output error [bash]


While use the below command at bash script I get stty error

Quote:
load=`mqhost -h $lnx | egrep $lnx | awk '{print$4}'`
Quote:
stty: standard input: Input/output error
Can anyone know how to solve this case?
 
Old 05-21-2015, 05:20 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,981

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
looks like one of the commands failed (probably the first one)
 
Old 05-21-2015, 06:26 AM   #3
DoME69
Member
 
Registered: Jan 2008
Posts: 189

Original Poster
Rep: Reputation: 16
the command is working.
 
Old 05-21-2015, 07:18 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,875
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
Your 'mqhost' might call stty(1) for some reason. strace -f is your friend
 
Old 05-21-2015, 09:03 AM   #5
DoME69
Member
 
Registered: Jan 2008
Posts: 189

Original Poster
Rep: Reputation: 16
Sorry I'm newbie how can i use it?
 
Old 05-21-2015, 09:10 AM   #6
DoME69
Member
 
Registered: Jan 2008
Posts: 189

Original Poster
Rep: Reputation: 16
I think I got this error since 'mqhost' is tcsh script.

is there any way to run is?
 
Old 05-21-2015, 09:11 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,981

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
see man strace, but actually it is quite simple:
strace -f -o <your_log_file> <original_command>
 
2 members found this post helpful.
Old 05-22-2015, 12:14 AM   #8
DoME69
Member
 
Registered: Jan 2008
Posts: 189

Original Poster
Rep: Reputation: 16
Thanks solved
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Working with Standard Input, Output & Error in Linux LXer Syndicated Linux News 0 12-04-2014 02:31 PM
shell script question,standard input,output,error cola Programming 4 04-15-2010 01:11 AM
got stty: standard input: Invalid argument amit_pansuria Programming 8 09-19-2008 03:20 AM
bash: INPUT/OUTPUT error when remoting in saanjac Linux - Newbie 2 08-08-2008 03:38 PM
stty: standard input: Inappropriate ioctl for device fwalthard Linux - General 0 07-14-2003 02:55 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration