Shell script question (may or may not be specific to pkgadd)

Shell script question (may or may not be specific to pkgadd)

Post by Dan Mondri » Fri, 24 Oct 1997 04:00:00

Hey guys, I've got a problem that is starting to drive me nuts.  Let's see
if anyone can help.  It's occurring on Solaris 2.x (2.4 in particular), in
a pkgadd request script, but I wonder whether the answer might be more

My request script has stdin capability (as expected), and that works fine.
However, I'm trying to list a file prior to getting input, and I am using
'more' to do this.  'more' starts and prints the first screen of the file,
says that it is 25% (or however much) done, but then abruptly exits without
giving me the chance to view the rest of the file.  I've tried invoking it
in the following methods, with no difference in behavior:

more $MYFILE
more $MYFILE <&0
(more $MYFILE)
(more $MYFILE <&0)
cat $MYFILE | more
cat $MYFILE | more <&0
(cat $MYFILE | more)
(cat $MYFILE | more <&0)

Why would 'more' not be able to continue?  Is its stdin not the same as (or
inherited from) the one in my request script?

If the answer to the above is 'Sorry, but no solution', then here's what
I'm trying to do, and let's see if there is an alternate path I can take.
The file I am viewing is actually a license agreement, which I follow up
with a question verifying that the user agrees to it.  I could just use the
'copyright' file capability associated with pkgadd, but that does not pause
between screens, and the user would not be able to see the entire file
contents.  Furthermore, I have an INSTALL script that installs multiple
packages, so I only want to present the license once from the installer.
However, I want each package to be able to present the license if the user
is using either swmtool or pkgadd directly (the scripts detect whether I am
running from the INSTALL script and bypass this step.)  One possible
solution would be to make the license file the copyright, and just have my
request script ask if they agree, but then I would need to pass some
argument to pkgadd (from my INSTALL script) to tell it to not display the
copyright agreement.  Based on the pkgadd man pages, however, I don't think
such an argument exists.

Any ideas?  Thanks in advance for your help.

Dan Mondrik


Shell script question (may or may not be specific to pkgadd)

Post by Ken Gag » Fri, 24 Oct 1997 04:00:00

Hi folks,
For the life of me I cannot remember the eeprom setting to stop a
break/halt signal through ttya.
Problem- Power off and on the term server and all suns hwos consoles are
hooked up to the term server hp to an OK prompt.
I have one set up properly, but that was many miles ago.
Ken Gage                         + "This is John Galt Speaking!"  
Globalstar Systems I&T           +                John Galt.
Qualcomm Inc.                    +
(619)651-2737 PG:(619)636-9591   +



1. Three really bizarre problems that may or may not be related

The specs:
Motherboard: ASUS P2B-D (Dual 350mhz PIIs)
SCSI Controller: Adaptec 2940UW
CD Burner: Ricoh MP-6201S (same as MP-6200S but with 2MB buffer instead
of 1MB, why isn't it 6202?)

My first problem is the following two lines appear at boot:

isa0: too many dependant configs (8)
isa0: unexpected small tag 14

I thought it might be a resource conflict.  I've pulled out cards,
disabled unecessary serial ports in the BIOS, and checked all the
resources listed in dmesg via pen and paper.  I assure you, there are no
resource conflicts that I can find. What else could it be?  I'm not
really sure if this even a problem, but I haven't been able to get rid
of these lines and it may be an indication of the cause of my other

My second problem occurs when I try to burn a CD using cdrecord.  It
seems to be working just fine until the end when it's fixating and I get
the following error:

cdrecord: Input/output error. close track/session: scsi sendcmd:
retryable error
CDB:  5B 00 02 00 00 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 138.882s timeout 480s

I've tried running cdrecord with the -fix option.  This does not result
in any errors, nor does it result in a readable disc.

My third problem is a real bummer.  It might not be my fault at all.  I
have 2 SCSI hard disks in a striped vinum RAID array.  Whenever I do
something disk-intensive, it slows my system down a lot more than it
should.  I'm not using identical drives, but the disk slices being used
are identical in size.  It also slows down considerably when I burn a
CD, and any mp3s I have playing are stopped for the duration of the

I've already invested a considerable amount of time trying to fix all of
these problems both reading and banging away at the keyboard.  I haven't
been able to make any progress, and I'm all out of ideas as to what to
try next.

2. Export Linux mail to windows

3. LOCAL: Washington DC Linux User Group May meeting (Wednesday May 21)

4. Dual head setup?

5. Shell script calling itself may hang Solaris

6. debian xfree86 cannot stat /etc/X11/X

7. Non-ASCII shell script(may be cross-compiler object)

8. NIC Having Multiple IP Addresses?

9. Expanding a shell variable that may contain shell variables.

10. Question about shell script, can you enter a script at a specific line?

11. NYC LOCAL: Wednesday 14 May 2003 GNUbies: Ari Jort on the Power of the Shell

12. Shell types (May be FAQ)

13. How may i do to compare two dates in a script ?