| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
|
| 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? |
|
#2
|
| 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' |
![]() |
| Thread Tools | |
| Display Modes | |