process substitution in tcsh

This is a discussion on process substitution in tcsh within the shell forums in Operating Systems category; hi, I want to klog to several cells simultaneously in order to save the password typing to each of them separately. In ksh I can do it like this: print password | tee >( klog -pipe username -c austin.ibm.com) \ >( klog -pipe username -c apd.pok.ibm.com) \ >( klog -pipe username -c awd.austin.ibm.com) Unfortunately I'm not free to use ksh, how can this be done in tcsh?...

Go Back   Database Forum > Operating Systems > shell

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-27-2008, 03:04 AM
Default process substitution in tcsh

hi,
I want to klog to several cells simultaneously in order to save the
password typing to each of them separately.

In ksh I can do it like this:
print "password" | tee >( klog -pipe username -c austin.ibm.com) \
>( klog -pipe username -c apd.pok.ibm.com) \
>( klog -pipe username -c awd.austin.ibm.com)


Unfortunately I'm not free to use ksh, how can this be done in tcsh?


Reply With Quote
  #2  
Old 08-27-2008, 04:13 PM
Default Re: process substitution in tcsh

rnscue wrote:
> hi,
> I want to klog to several cells simultaneously in order to save the
> password typing to each of them separately.
>
> In ksh I can do it like this:
> print "password" | tee >( klog -pipe username -c austin.ibm.com) \
> >( klog -pipe username -c apd.pok.ibm.com) \
> >( klog -pipe username -c awd.austin.ibm.com)

>
> Unfortunately I'm not free to use ksh, how can this be done in tcsh?
>
>


Only possible by storing into a variable.
set pw="password"
echo "$pw" | klog -pipe ...
echo "$pw" | klog -pipe ...
....

--
echo imhcea\.lophc.tcs.hmo |
sed 's2\(....\)\(.\{5\}\)2\2\122;s1\(.\)\(.\)1\2\11g;1 s;\.;::;2'
Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 12:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.