HP3000-L Archives

May 2002, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Michael Abootorab <[log in to unmask]>
Reply To:
Michael Abootorab <[log in to unmask]>
Date:
Wed, 8 May 2002 18:56:47 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (65 lines)
Hi,

you can use the listfile command to list all directories:

listfile @,6;seleq=[filedes='dir']> outfile

(I am not sure if its filedes or ftype , please check syntax)

and for every entry in outfile do a chmod.

I hope this is releavant to your question.

Thnaks
Michael

On Wed, 8 May 2002 15:16:52 -0700, Jeff Woods <[log in to unmask]> wrote:

>Hi, folks.
>
>I'm trying to automate an installation script that will be run from the MPE
>(6.5 and later) CI which needs to do both (MPE) CI and (POSIX shell) sh
>sorts of things.  I've been able to make it all work except for one
>important line, which in the shell would be:
>
>    find /SOMEACCT -type d |xargs chmod a+rx
>
>Since the list of pathnames to found directories isn't huge a workable
>equivalent is:
>
>    chmod a+rx $(find /SOMEACCT -type d)
>
>I've been able to handle the rest of my shell commands by calling the POSIX
>command directly; eg:
>
>    xeq chown.hpbin.sys "-R MGR.SOMEACCT:SOMEACCT /SOMEACCT"
>    xeq tobyte.hpbin.sys "-at $oldpass some_POSIX_file"
>
>I've tried wrapping the above "find" and "chmod" examples with the shell's
>-c construct, eg:
>
>    xeq sh.hpbin.sys "-c chmod a+rx $(find /SOMEACCT -type d)"
>
>but I don't seem able to use piping or command substitution with using the
>-c mechanism.  I also don't seem able (or at least "haven't figured out
>how") to invoke a shell script (eg, a "#!/bin/sh" type script) from the CI.
>
>Does anyone have any suggestion(s) how from a CI script to accomplish the
>task of setting the permissions on all HFS directories under an account?
>The only solution I've found so far is to hard-code the list of directory
>names in the script or to duplicate the simple logic inherent in the
>find&&chmod examples above via several lines of relatively complex CI code
>which I believe would be far more susceptible to logic and runtime errors.
>
>Thanks!
>--
>Jeff Woods
>[log in to unmask]
>Quintessential School Systems
>
>* To join/leave the list, search archives, change list settings, *
>* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2