I'm trying to run a linux command (with pipes)
using something like:
Runtime.getRuntime().exec("rpm -qa | grep "Uploader" | xargs rpm --queryformat "%{VERSION}" -q");
but i get as result only the output of the "rpm -qa"
can you help?
thanks
I'm trying to run a linux command (with pipes)
using something like:
Runtime.getRuntime().exec("rpm -qa | grep "Uploader" | xargs rpm --queryformat "%{VERSION}" -q");
but i get as result only the output of the "rpm -qa"
can you help?
thanks