Re: [opensuse] BASH - Need help with ssh remote directory test?
Pit Suetterlin wrote:
Hmm, I hope it's not related to the mkdir command missing the $ before DIRNAME and the scp subsequently not finding the location to copy stuff to?
Pit
That's part of it;-) But even with the fix it still fails. It looks like what is happening is that once ssh $DESTHOST '[[ -d "$DIRNAME" || $(mkdir -p $DIRNAME) ]]' is called and passed to the remote host, the remote host has no idea what $DIRNAME is and the script fails. (which makes a bit of sense). So it looks like $DIRNAME isn't expanded before being sent (which also makes sense because it is enclosed in ' ' single quotes ........ -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
David C. Rankin