Sep-04-2018, 01:43 PM
Hi Experts ,
I am trying to run simple command but getting an error
I am trying to run simple command but getting an error
import spur import spur.ssh try: shell = spur.SshShell(hostname="EDQDVTAPP01.XXXXXX.com",port=22,username="applogs",password="XXXXXX",missing_host_key=spur.ssh.MissingHostKey.accept) with shell: result = shell.run("ls") print (result) except spur.ssh.ConnectionError as error: print (error.original_traceback) raise
Error:Traceback (most recent call last):
File "unix_server_test.py", line 25, in <module>
result = shell.run("ls")
File "C:\Users\pubhatia\AppData\Local\Programs\Python\Python36\lib\site-packages\spur\ssh.py", line 166, in run
return self.spawn(*args, **kwargs).wait_for_result()
File "C:\Users\pubhatia\AppData\Local\Programs\Python\Python36\lib\site-packages\spur\ssh.py", line 206, in spawn
raise NoSuchCommandError(command[0])
spur.errors.NoSuchCommandError: Command not found: l. Check that l is installed and on $PATH