Hopefully an easy one but I'm tearing my hair out.
Keeping a long story short, I have a NetAPP filer with (lets say) root
username : root
password : nobby' (the end ' is supposed to be there).
Our backup software using NDMP has thism information in its
Meanwhile I need to move data from the filer above to anothjer, for
which I would enter - on a command line from the second filer -
ndmpcopy -sa root:"nobby'" filer1:/vol/vol0/data/fred
where the double quotes indicate that the strting within is the
I can only run one such line at a time from the actual command line
and the filer permits only one login at a time.
However I can rsh commands to the filer - but my trouble here is
simply how to encompass that root:"nobby'" bit in a (bourne) shell
script such that the command issues the password as it should be ie
nobby' but the shell script doesn't get confused over either the
double quotes or the single quote.
I can't change the password to something simopler #cos that will break
How can I acheive what I need in the script?
ie how can I script
rsh ndmpcopy -sa root:"nobby'" filer1:/vol/vol0/data/fred
so that it runs like it would on the second filer and doesn't get
confused over the various quotes