Subject: bug#22386: closed (Re: bug#22386: Non-interactive mode and errors)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 08 Feb 2016 13:46:02 +0000

Your bug report

#22386: Non-interactive mode and errors

which was filed against the parted package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
22386: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22386
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#22386: Non-interactive mode and errors
From: Phil Susi <[email-masked]>
To: [email-masked]
Date: Mon, 8 Feb 2016 08:45:58 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

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 ).

Subject: Non-interactive mode and errors
From: Narcis Garcia <[email-masked]>
To: [email-masked]
Date: Sat, 16 Jan 2016 20:03:21 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

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.