Forum Discussion
it doesn’t matter if thats shell or ssh or powershell… they are all command lines.
Also, we are not using python to replace ssh. we are using python to trigger ssh command on groundplex node.
This is part of our code in script snap
def execute(self):
self.log.info(“Executing Transform script”)
proc = Popen([“ssh”, “username@server”, “D://test.bat”], shell=False, stdout=PIPE, stderr=PIPE)
out, err = proc.communicate()
exitcode = proc.returncode
proc.kill()
self.output.write(out)
self.log.info(“Finished executing the Transform script”)
You just need to figure out how to use python to run ssh, or PowerShell or any command line.
Thanks
Han
Thanks @walkerline117, will check
@bilesh.ganguly Did you see my reply above? The Snap Statistics feature doesn’t require creating a pipeline.
- bilesh_ganguly5 years agoNew Contributor II
Related Content
- 4 months ago
- 3 years ago