need help with this bind script.. please !
Barry Margolin
barmar at bbnplanet.com
Tue Feb 29 19:35:39 UTC 2000
In article <002501bf82e8$25d060a0$2b360fc2 at library.eiec.org>,
Duane Cox <dcox at coxnetwork.com> wrote:
>
>I have this script that should reload the named server on a ns2 machine..
>(named is running as a user "named") But it is not working, could someone
>point me in the right direction... this script is executed on ns1 which
>logs into
>ns2 via ssh and reloads the daemon..
>
>ssh -l named 192.168.1.2 "PID2=`cat /var/run/named/named.pid`; kill -1 $PID2"
Because you use double quotes, the backticks and $PID2 are being expanded
in the original shell where that command executes, rather than the remote
shell. Changed the double quotes to single quotes.
--
Barry Margolin, barmar at bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
More information about the bind-users
mailing list