Creating dated folder name in SMB share

I can't seen to figure this out. Let's say I want to create a folder with the name "August2017". In regular terminal prompt I can type

mkdir `date +%B%Y`

But when I'm connected to a SMB share (at the smb: prompt), the command doesn't translate properly. A folder gets created but the name is `date

What's the correct syntax to get this working?

Thanks!

Welcome to the forum.

Both "variable expansion" and "command substitution" are performed by the shell, with which you do not interact when running the smbclient , which in turn doesn't know anything about e.g. the shell variables.
You could try using a "here document":

smbclient  //server/share password <<EOF
mkdir $(date)
EOF

Thanks Rudi. That's actually what I was trying. But it seems once within the smb commands it takes everything literally. Even with your suggestion, mkdir $(date) produces a folder called $(date)

No, I can't confirm that. When testing above, it created a directory 12.08.17 , because the "here document" is executed and expanded by the shell.

Whoops, you are right. I must have done something wrong the first time I tried. I appreciate the help!