Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Syntax problem' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Syntax problem
Authored by: gshenaut on Sep 20, '07 10:01:30AM
Note the nested double quotes in
ssh -q $1 "mkdir ~/.ssh 2>/dev/null; chmod 700 ~/.ssh; echo "$KEYCODE" >> ~/.ssh/authorized_keys; chmod 644 ~/.ssh/authorized_keys"

Depending on the value of KEYCODE, this may cause intermittent errors. You could change the inner ones to single quotes, or put a backslash in front of them.

Greg Shenaut

[ Reply to This | # ]