--- Begin Message ---
Subject: |
Non-interactive mode and errors |
Date: |
Sat, 16 Jan 2016 20:03:21 +0100 |
Hello, I'm trying to use parted to get details from block devices in a
Shell Script, but when I run this for an empty removable device:
parted /dev/mydevice print
Returns:
Error: Error opening /dev/mydevice: No medium found
Retry/Cancel?
and doesn't end until user interaction.
Is there any way to avoid this, and simple get the message error and status?
Thanks.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#22386: Non-interactive mode and errors |
Date: |
Mon, 8 Feb 2016 08:45:58 -0500 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
On 1/16/2016 2:03 PM, Narcis Garcia wrote:
> Is there any way to avoid this, and simple get the message error and status?
Use script mode ( -s ).
--- End Message ---