Subject: | |
From: | |
Reply To: | |
Date: | Wed, 8 May 2002 17:28:12 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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 *
|
|
|