bug in while-do/done and rsh in shell scripts ????

From: Ken McCoy <kenm_at_apscn.k12.ar.us>
Date: Thu, 08 Jan 1998 15:56:55 +0000

Hello all,

Following is a short shell script that always bombs out after the rsh
line.

Does anyone know if this is a bug, and if so is there a way around it.

I've tried both the k and c shells to no avail.

The do loop should execute about 100 times in my example,
but after the first loop it just drops back to the command prompt.

========================================
ls|
while read line
do
  rsh xhost ls -al /soft/bin/$line
done
=====================================

Thanks

------------------------------------
Ken McCoy
Arkansas Public School Computer Net.
Received on Thu Jan 08 1998 - 22:57:35 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT