PDA

View Full Version : python (or bash) how to get a list of files on a networked (ubuntu) computer



days_of_ruin
May 22nd, 2008, 04:03 AM
Everytime I try to do it with ssh it messes up because it switches to
that computer which just messes everything up.Is there a way to do it
without messing anything up.

geirha
May 22nd, 2008, 03:13 PM
Could you elaborate on how it gets "messed up"?

And how about doing it this way?


ssh other_host "find /" >other_host.list

days_of_ruin
May 23rd, 2008, 04:10 AM
Could you elaborate on how it gets "messed up"?

And how about doing it this way?


ssh other_host "find /" >other_host.list

So can other_host.list be anything?How do I access it?

days_of_ruin
May 23rd, 2008, 04:25 AM
Okay it saves it to a file.So I just have to open the file to get the data:D
Thanks man!I owe you one.