P
POM
Posit:
I want to retrieve a directory listing (of images) on a UNIX server,
sorted by size (in descending order). I wanted to just write a simple
runtime process exec to do the job... something like this:
Process p =
Runtime.getRuntime().exec("/bin/ls -l /images | sort +4nr");
But then I saw somewhere that it will parse the exec arguments as
separate commands. Anybody have an idea that will return the desired
results.
Thanks.
I want to retrieve a directory listing (of images) on a UNIX server,
sorted by size (in descending order). I wanted to just write a simple
runtime process exec to do the job... something like this:
Process p =
Runtime.getRuntime().exec("/bin/ls -l /images | sort +4nr");
But then I saw somewhere that it will parse the exec arguments as
separate commands. Anybody have an idea that will return the desired
results.
Thanks.