Sounds trivial, but it's not (I don't think)

Sean Fulton sean at utoday.UUCP
Fri Sep 28 07:04:58 AEST 1990


We use a shell script and UUCP to do an automated ascii upload to a
publishing system that is pretty void of any knowledge of
communications with the outside world.

At any rate, we have a /bin/sh script that basically does:

	cu sysname <FILE

Where FILE is of the form:

~!/bin/slp10 	 			#wait 10 seconds
piles of data to be uploaded
~!/bin/slp10				#wait another 10 seconds
~.					#Hangup the telephone.

This has been somewhat reliable, but only allows for one file
per call. Given that there is a modem shortage on the remote end, this
is unacceptable.

So, does anyone have any ideas on how to do something like:

~!for a in `ls files`

... etc.

??
We're running on Xenix 2.3.3 if that makes a difference, using a TB+
over a 19200 serial line.

-- 
Sean Fulton					sean at utoday.com
UNIX Today!					(516) 562-5430
 /* The opinions expressed above are not those of my employer */



More information about the Comp.unix.shell mailing list