[Coco] [coco] Shell Scripts

Robert Gault robert.gault at worldnet.att.net
Tue Dec 18 10:28:21 EST 2007


tim lindner wrote:
> George Ramsower <georgeramsower at gmail.com> wrote:
> 
> 
>>Is there a way to do this from a shell script? ((( Shell+ v2.1)))
> 
> 
> Yes.
> 
> deldir /h0/test
> d
> 
> 
> Notice the single d on the second line. The DELDIR command will inherit
> the standard input (ie the script file) from the shell executing it. So
> the DELDIR command will recieve the 'd' and continue with it's
> operation.
> 

This initially did not work for me, error 215. Now it is working and I 
think the trick is there must be another line in the script. The next 
line can be anything, blank or text, but it needs to be there.



More information about the Coco mailing list