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:
Jeff Woods <[log in to unmask]>
Reply To:
Jeff Woods <[log in to unmask]>
Date:
Wed, 8 May 2002 17:28:12 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
From a new hp3000-l friend down-under, I received the following:

> Try:
> xeq sh.hpbin.sys '-c "for x in `find .`;do;if test -d $x;then;echo
$x;fi;done"'
>
> Replace echo with chmod or chown or whatever.
> Watch the quotation marks & back ticks.

I thought to myself: "Self, that's just another way that depends on command
substitution [using `...` instead of $(...) in my example]; but... look at
those extra quotes after the -c!"  So I tried:

    xeq sh.hpbin.sys '-c "chmod a+rx $(find /OPENSSL -type d)"'

And "Voila, it works!"

Oddly, the following doesn't seem to work:

    xeq sh.hpbin.sys '-c "find /OPENSSL -type d |xargs chmod a+rx"'

So command substitution works, but I still don't know how to connect two
processes via a pipe using the shell directly from the CI.  But I don't much
care at the moment since the former example works for me.

Thanks again!  :)
--
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 *

ATOM RSS1 RSS2