HELP, please. Run prog. & read stdin from script?

HELP, please. Run prog. & read stdin from script?

Post by Drew Eckhar » Sat, 17 Feb 1996 04:00:00

Quote:>I am struggling to do the following in a UNIX (Korn shell) script:
>e.g. in script
>#run myapp
>1                   <---
>2                   <---  These are variables myapp should read
>$A_Variable         <---    last one is string generated by my script

You want to use a here document.  Ie,

myapp << SOME_SYMBOL
echo "Script can resume here"


HELP, please. Run prog. & read stdin from script?

Post by Patrick Horg » Wed, 21 Feb 1996 04:00:00

You need a here script



telnet mailhost 25 << EOF
vrfy $postm
# This program reads the lines between the command and the line EOF as if
# they were standard input


   Opinions mine, not my employer's except by most bizarre coincidence.


1. PLEASE PLEASE HELP Major problem with my SCSI & Redhat 5.0 PLEASE Help

Everything ran WONDERFUL for about 4 months this machine ran several
servers it is a UDB w/ 340mb SCSI (SLOW 5mb) half inch internal hard
drive.  32 megs of true parity ram, Red hat 5.0 I get the following

NCR53-810-0: ERROR (0:48) (0-20-0) (8/33) * scripth (868:18000400).
NCR53-810-0: Script cmd = 888030000
NCR53-810-0: regdump : da 10 80 33 47 08 00 1f 01 08 00 28 80 00 08 00
NCR53-810-0: have to clear fifos

What the HELL is this and is there anyway to fix it ?  It seems to
occur when doing file writing, when i try to tar something for example
it will go into a continual unending loop displaying the above error
message.  I have refdisked, formated, and clean installed redhat and
the problem is still there :( Please help, if at all possible mail

2. a bash script to create users from a file

3. Reading a file (other than stdin) from a CShell script

4. Piping ps to kill

5. Lauch program and read stdin from script??

6. How-To Connect Windows to Linux with Dialup Networking

7. How (many ways) can a shell script read stdin?

8. Dave.Make.Money.Fast!

9. reading stdin for tcsh script

10. zsh scripting: reading from stdin if no args?

11. CGI-BIN sh script reading stdin??

12. piped data & 'read' stdin

13. Unix Security scripts & progs ???