python - Parallel SSH sending inverted commas when running command -


been @ few days , haven't been able resolve, im sure im doing stupidly!

when use following command mikrotik router:

from future import print_function pssh.pssh_client import parallelsshclient

hosts = ['192.168.101.1']

client = parallelsshclient(hosts,user='admin',password='123456')

output=client.run_command('/ip service enable 0',use_shell=false)

for line in output['192.168.101.1'].stdout: print(line)

however when sending inverted commas around command , mikrotik throwing error(expected command name (line 1 column 1)) expecting command without inverted commas.

i had set "use_shell=false" , im getting output mikrotik command didnt run (expected command name (line 1 column 1). if dont use no error mikrotik command still wasnt running.

when use other pssh (the 1 not installed using pip) on command line command works fine , doesnt send inverted commas , runs successfully

any appreciated


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -