| Title: | NetWorker |
| Notice: | kits - 12-14, problem reporting - 41.*, basics 1-100 |
| Moderator: | DECWET::RANDALL .com::lenox |
| Created: | Thu Oct 10 1996 |
| Last Modified: | Fri Jun 06 1997 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 750 |
| Total number of notes: | 3361 |
NetWorker for Digital UNIX Server V4.2B
Digital UNIX V4.0a
I'm not able to find the correct incantation to have symbol
substitution performed within a mminfo command. What construct should
I be using:
exec 4< /tmp/nw_sc_clients_$$.tmp
while read -u4 client_line
do
echo Processing client $client_line
#nsrclone -b $retention -S
mminfo -r 'ssid' \
-q 'client=${client_line}, level=full, copies=1' \
#-t 'last month'
done
exec 4<&-
to get 'client_line replaced within the -q quoted area?
Thanks!
tl
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 498.1 | SANITY::LEMONS | And we thank you for your support. | Mon Mar 17 1997 19:46 | 18 | |
Here's the answer:
exec 4< /tmp/nw_sc_clients_$$.tmp
while read -u4 client_line
do
echo Processing client $client_line
#nsrclone -b $retention -S
mminfo -r 'ssid' \
-q "client=${client_line}, level=full, copies=1" \
#-t 'last month'
done
exec 4<&-
Note the double quotes around whole -q string. Double quotes, unlike
single quotes, allow variable and command substitution to occur (p. 467
of 'UNIX Shells by Example).
tl
| |||||