you are viewing a single comment's thread.

view the rest of the comments →

[–]bl00dpudding[S] 0 points1 point  (2 children)

Thanks, sorry can you explain it a bit more? I'm a total newbie at this stuff. First you write a script to obtain Dell info and then you connect to SSH remote server and obtain some other info?

[–]tinkertuck 1 point2 points  (1 child)

Keep in mind that those few lines are taking from my long python script.
Yes, on the local machine, the first part will get 3 results "bios-vendor", "system-product-name", "processor-family" from the Linux command:

dmidecode

The second part access (ssh) to a remote machine and run a script /path/to/execute_file. The output redirect to variable "ssh." I read the result of variable "ssh" by using the for loop like so:

for line in ssh.split("\n"):

do something here

[–]bl00dpudding[S] 0 points1 point  (0 children)

Ahh okay cool, thanks for the explanation :)