LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-12-2008, 06:49 AM   #1
amit_pansuria
Member
 
Registered: Sep 2006
Posts: 73

Rep: Reputation: 15
got stty: standard input: Invalid argument


Helo when I install my
rpm package I got the following errors

stty: standard input: Invalid argument
stty: standard input: Invalid argument
stdin: is not a tty
stty: standard input: Invalid argument".



what to do to avoid such errors


Regards,
Amit
 
Old 08-12-2008, 08:43 AM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,300
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by amit_pansuria View Post
what to do to avoid such errors
Try installing with administrator privileges. You might need to be root to run stty successfully.
 
Old 08-12-2008, 08:57 AM   #3
amit_pansuria
Member
 
Registered: Sep 2006
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by David1357 View Post
Try installing with administrator privileges. You might need to be root to run stty successfully.
Helo Davind thex for replying me.

I m installing as a root user only but still got same error

"stty: standard input: Invalid argument
stty: standard input: Invalid argument
stdin: is not a tty
stty: standard input: Invalid argument".


Regards,
Amit
 
Old 08-12-2008, 10:15 AM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,300
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by amit_pansuria View Post
I m installing as a root user only but still got same error
What does the output of "tty" produce?
 
Old 08-12-2008, 01:06 PM   #5
raconteur
Member
 
Registered: Dec 2007
Location: Slightly left of center
Distribution: slackware
Posts: 276
Blog Entries: 2

Rep: Reputation: 44
There's something amiss in your package, or you're attempting to install it from a process that doesn't have an attached tty (such as cron or udev, perhaps). The error is most likely in the installer script.
 
Old 09-18-2008, 01:37 AM   #6
amit_pansuria
Member
 
Registered: Sep 2006
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by David1357 View Post
What does the output of "tty" produce?
helo i m building my rpm package.
in that for one particular RPM package
I m running some script when i install rpm

I done sh -x %{pdsdir}/shell/COMPONENT/postinstall && sh -x %{pdsdir}/shell/COMPONENT/configure

I found one things that I have total 10 rpm package and I got this stty error message in particular one packages.

another observation is that under configure function I m running

different shell scripts using su - admin -c commands..

when I install this particular package I got the following messages.


rpm -install DBASE-4.1.0.0.23-4.1.0.0.23-1.i386.rpm

export VDIR=/opt/avaya/pds
+ VDIR=/opt/avaya/pds
+ export VOICEDIR=/opt/avaya/pds
+ VOICEDIR=/opt/avaya/pds
+ export PATH=/usr/bin:/usr/rbin:/usr/sbin:/opt/avaya/pds/bin:/opt/avaya/pds/shell:::/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
+ PATH=/usr/bin:/usr/rbin:/usr/sbin:/opt/avaya/pds/bin:/opt/avaya/pds/shell:::/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
+ export ORACLE_HOME=/opt/dbase/OraHome1
+ ORACLE_HOME=/opt/dbase/OraHome1
+ exitval=0
++ /bin/basename /opt/avaya/pds/shell/DBASE/configure
+ FNAME=configure
+ print 'NOTE: Executing DBASE "configure"'

/bin/basename /opt/avaya/pds/shell/MTDBASE/configure
+ FNAME=configure
+ print 'NOTE: Executing MTDBASE "configure"'
/opt/avaya/pds/shell/MTDBASE/configure: line 279: print: command not found
+ case $FNAME in
+ configure
+ exitval=0
+ su - admin -c /opt/avaya/pds/etc/start_db
stty: standard input: Invalid argument
stty: standard input: Invalid argument
stdin: is not a tty
stty: standard input: Invalid argument


now tell me what should i do

Regards,
Amit
 
Old 09-18-2008, 02:06 PM   #7
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,300
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by amit_pansuria View Post
+ su - admin -c /opt/avaya/pds/etc/start_db
Do you even have a user named "admin" on your system?
 
Old 09-19-2008, 12:55 AM   #8
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
Consider any errant commands added to any shell startup files. Sometimes users add interactive commands to shell startup files and don't understand why the problems occur during (what they don't know to be) non-interactive shells.
 
Old 09-19-2008, 03:20 AM   #9
amit_pansuria
Member
 
Registered: Sep 2006
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by David1357 View Post
Do you even have a user named "admin" on your system?
yes I have admin user on my system

Amit
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Accept(): Invalid Argument bonhomme Programming 6 07-14-2012 10:12 PM
IPTABLES - Invalid argument initialdrifteg6 Linux - Networking 1 03-06-2008 06:23 PM
message sending failed : Error[22 ] invalid argument .....but each and every argument rakeshranjanjha Linux - Software 2 01-07-2008 11:22 PM
KDSKBENT: Invalid Argument tommytomato Linux - Newbie 6 08-27-2004 10:23 PM
stty: standard input: Inappropriate ioctl for device fwalthard Linux - General 0 07-14-2003 02:55 AM


All times are GMT -5. The time now is 11:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration