[Coco] [coco] Shell Scripts

Bob Devries devries.bob at gmail.com
Sun Dec 16 23:29:47 EST 2007


The deldir command expects an input to it's question, so you's need to use 
the command like this:

deldir /h0/test <.1

(notice the period!!)

--
Regards, Bob Devries, Dalby, Queensland, Australia

Isaiah 50:4 The sovereign Lord has given me
the capacity to be his spokesman,
so that I know how to help the weary.

website: http://www.home.gil.com.au/~bdevasl
my blog: http://bdevries.invigorated.org/

----- Original Message ----- 
From: "George Ramsower" <georgeramsower at gmail.com>
To: <coco at lists5.maltedmedia.com>
Sent: Monday, December 17, 2007 1:17 PM
Subject: [Coco] [coco] Shell Scripts


> I've been trying to get a few OS9 commands to run in a shell script and 
> have
> found a few problems....
>
> One problem I'm having is trying to delete a directory.. I created a
> directory just for this example.
>
> Here's the result of a simple, one line shell script which reads as
> follows..
>
> OS9[T2]:list cmds/testdelete
> deldir /h0/test
>
>
> Here's the result..
>
> OS9[T2]:testdelete
>
> Deleting directory file.
> List directory, delete directory, or quit ? (l/d/q) ERROR #211
>
> OS9[T2]:
>
> So, I tried these combinations :
>
> deldir d  /h0/test
> deldir /h0/test d
>
> Nothing worked. They all three resulted in an ERROR #211
>
>>From a command line, it works as intended, of course. But I did have to 
>>choose the D option after starting it.
>
> Is there a way to do this from a shell script? ((( Shell+ v2.1)))
>
> George
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco 




More information about the Coco mailing list