uncertain how to get do shell script to run

Hi
I have this line of code that forces smb shares to smb1, as there are some connectivity issues with smb2, I am trying to get it to run in a do shell script, but it keeps giving me this error, and i’m not sure how to fix it, can some one please
advise me on what I need to change.

do shell script "echo "[default]" >> ~/Library/Preferences/nsmb.conf; echo "smb_neg=smb1_only" >> ~/Library/Preferences/nsmb.conf"

cheers

Hi,

I believe you need to escape your quotes after echo in both places in your script. Example:


do shell script "echo \"[default]\" >> ... "

thank you, that was exactly it

do shell script "echo \"[default]\" >> ~/Library/Preferences/nsmb.conf; echo \"smb_neg=smb1_only\" >> ~/Library/Preferences/nsmb.conf"