Hi All,
I am trying to create a folder with "&" in itz name (Ex: TS_&_ABC) with the help of perl's ssh command in another server. The exact command I am triggering in the code is
ssh("-i",$identity_file,"abc.abc.net","mkdir -p /opt/abc/mailboxes/mail/TS_&_ABC");
This creates a folder "TS_" but throws up an error
sh: line 1: _ABC: command not found.
We have already tried enclosing the folder name with single-quotes like
ssh("-i",$identity_file,"abc.abc.net","mkdir -p /opt/abc/mailboxes/mail/'TS_&_ABC'");
Apart from this we had also tried by putting a backslash before the "&"
But no use.
Please help how we can escape the "&" symbol in the perl's ssh command.
Thanks in advance
Regards,
Anand.