The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
expect and stty paths are different and resulting in error. The Nemi UNIX for Dummies Questions & Answers 6 07-17-2008 08:50 AM
Exiting from script when error occurs Sreejith_VK Shell Programming and Scripting 4 04-25-2008 12:53 AM
error occurs while some users login rrlog HP-UX 0 08-12-2007 01:55 PM
Error when installing GCC chrisanto_2000 SUN Solaris 1 06-21-2007 03:00 AM
error while installing gcc sveera SUN Solaris 1 06-21-2005 10:05 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #15  
Old 09-19-2008
Registered User
 

Join Date: Jul 2007
Posts: 91
Quote:
Originally Posted by Annihilannic View Post
Well this is obviously the part that is causing the problem:

Code:
+ 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
So have a look at the admin user's profile scripts, that is probably where you will find the stty commands. You can safely ignore those errors if you wish, but they look messy. You could also consider removing the - from the su command if you don't really need to load that user's profile. It is also possible, but unlikely, that the stty commands are in the start_db script.

Note also this error:

Code:
+ print 'NOTE: Executing MTDBASE "configure"'
/opt/avaya/pds/shell/MTDBASE/configure: line 279: print: command not found
print is a ksh-specific command, so if your scripts are not going to run under ksh then you should use echo instead.

you are right.
there is no stty command found in start_db .
In admin user .profile there are stty commands found .

like

alias reset='stty erase \^h kill \^u intr \^c'

stty erase \^h kill \^u intr ^C
stty cs8 -istrip -parity

so what action I need to take for this stty

anyway thx very much for yr support.
Regards,
Amit
Reply With Quote
Forum Sponsor
  #16  
Old 09-21-2008
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 920
I already explained what you should do in my post above.
Reply With Quote
  #17  
Old 09-24-2008
Registered User
 

Join Date: Jul 2007
Posts: 91
Quote:
Originally Posted by Annihilannic View Post
I already explained what you should do in my post above.
Helo
thx for your support

Now problem is

I need to run start_db and other script as admin user

I changed admin profile where stty command as follow
if [ -t 0 ]
then
stty erase \^h kill \^u intr ^C
fi

but still got the same errors

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

One thing is sure that because of admin user profile loaded when these script are running thats why errors occurs.I checked that by removing - from su admin. But I want to run these scripts as admin user thats my requiremnts


Regards,
Amit
Reply With Quote
  #18  
Old 09-24-2008
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 920
Even if you remove the - the scripts are still run as the admin user. I think that is your safest option if the scripts are working like that.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:53 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0