tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Problem in sh - while and rsh
@ 1996-06-27 13:33 David R Courtade
  0 siblings, 0 replies; only message in thread
From: David R Courtade @ 1996-06-27 13:33 UTC (permalink / raw)
  To: tru64-unix-managers

Good Morning (here),

I have a bit of a problem with DU 3.2c, and 3.0. I have a shell script
which reads a file and then does an rsh ( it's used for dumps, if you
care). I read the file in a while loop. The loop works fine without the
rsh, but if there is an rsh in the while loop the next read is null.
Anybody have any clue if I'm doing something wrong: I'll include an
example of the script, and the file read:

SCRIPT
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
BFILE=./taboo
ii=0
exec < $BFILE
read flsm
while [ -n "$flsm" ]
do
       ii=`expr $ii + 1`
       echo $ii
       case "$ii" in
          1)
             $flsm
          ;;

          *)
             $flsm
             echo dev,"hi Dave"
          ;;
       esac
read flsm
echo $flsm
done
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

FILE READ
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo "Hi here"
rsh node1 echo "hi node1"
rsh node1 echo "hi node1"

In this case I get the "Hi here and "hi node1" messages. If I remove the
rsh, I get all messages.

HELP Please,
==============================================================================
David R. Courtade
System Administrator
Amherst Systems Inc.
30 Wilson Rd.
Buffalo, N.Y. 14221
Phone: (716)631-0610
FAX: (716)631-0629
Email: drc@amherst.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-06-27 13:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-27 13:33 Problem in sh - while and rsh David R Courtade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox