[Tutor] subprocess not returning

Alan Gauld alan.gauld at btinternet.com
Tue Apr 22 21:10:29 CEST 2014

On 22/04/14 10:14, shawn wilson wrote:
> This works when I have a class for ldd and nothing else, but when I
> run it like this:
> https://gist.github.com/ag4ve/11171201
> I don't get any of the libraries and I can't figure out where it's failing.
> ['fattr', [['/testroot', 0, 0, 777], ['/bin/dash']]]
> HERE1 [/testroot]
> HERE2 [/bin/dash]
> ['ldd', ['/lib/x86_64-linux-gnu/libc.so.6', '/lib64/ld-linux-x86-64.so.2']]
> HERE2 [/lib/x86_64-linux-gnu/libc.so.6]
> ['ldd', ['/lib64/ld-linux-x86-64.so.2']]
> HERE2 [/lib64/ld-linux-x86-64.so.2]
> ['ldd', ['statically']]
> HERE1 [statically]
> HERE2 [/lib64/ld-linux-x86-64.so.2]
> ['ldd', ['statically']]
> HERE1 [statically]
> [   'filelist',
>      [['/testroot', 0, 0, 777], ['/bin/dash', 0, 0, '755'], [[[]], []]]]
> Obviously it's returning something - but no usable info.

We have no clue what you are doing. You say "this works"
but we can't see what 'this' is. Is the code on the
pastebin link the working or the broken version?

It's also a very long listing. Can you produce a shorter
example, perhaps with hard coded values that exhibits
the problem?

Alan G
Author of the Learn to Program web site

More information about the Tutor mailing list