We use Windows server as admin consoles for our NetApp controllers, when running scripts on 7-mode we still use rsh. Due to a recent upgrade of Server 2008 R2 to 2012 R2 we have deployed Cygwin64 for use as a shell to run rsh commands against our 7-mode controllers. All is well apart from the issue the UNIX shell has with certain domain names with characters and spaces.
When running a script to setup for e.g. a CIFS share access change, I’d use the cmd /c syntax with a path to the cmd file
Within the cmd file a few lines as an example to show the error received in Cygwin
rsh FilerA cifs shares -add testadmin$ /vol/qtree
rsh FilerA cifs access testadmin$ '#Storage Admin' full
Would anyone be able to help with the # character and a name with spaces? I tried various different methods with changing the syntax including using a \ before a space and a + in place of to no avail .
I'm unable to have these names changed at all and I’m seeking a work around.
Hi Andrew - thanks for responding. Double quotes was what I was looking for, I used single quotes to wrap the group names and never even thought to use double around entire command. Now tried it works a treat.
We do use ssh just this legacy way of running a script for 7-mode has hung around we were advised to use cygwin as an alternative but your comments will certainly be noted.