![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
|||
|
|||
|
%prep is not the same as %pre... maybe there is no %pre section?
It's possible that the %{pdsdir}/shell/COMPONENT/postinstall or .../configure are causing those error messages; have you checked them for stty or su username -c '...' commands? |
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
Quote:
and I have not check for stty command. I dont know how to check for stty command can u tell me how i check for stty ? Regards, Amit |
|
#10
|
|||
|
|||
|
Just look in those scripts and see if it is there. Or maybe use grep if they are very long.
|
|
#11
|
|||
|
|||
|
Quote:
thx for yr reply. I do grep on all those script for stty but its not found. if you want to see all .profile then also i can send you. Regards, Amit |
|
#12
|
|||
|
|||
|
Try changing this line as follows:
Code:
sh -x %{pdsdir}/shell/COMPONENT/postinstall && sh -x %{pdsdir}/shell/COMPONENT/configure
|
|
#13
|
|||
|
|||
|
Quote:
Thanks for yr reply. 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 |
|
#14
|
|||
|
|||
|
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 Note also this error: Code:
+ print 'NOTE: Executing MTDBASE "configure"' /opt/avaya/pds/shell/MTDBASE/configure: line 279: print: command not found |
|||
| Google The UNIX and Linux Forums |