bug#22387: Non-interactive use and errors

Narcis Garcia <[email protected]>
Newsgroups gmane.comp.gnu.parted.bugs
Message-ID <[email protected]>
Hello, I'm trying to call parted from a ShellScript to get details from
block devices:

$ parted /dev/OneDevice print

But when I specify a removable device, it expects user interaction:
Error: Error opening /dev/OneDevice: No medium found
Retry/Cancel?

Is there any way to avoid this and get only the error message and status?

Thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.