GNU bug report logs - #22386
Non-interactive mode and errors

Previous Next

Package: parted;

Reported by: Narcis Garcia <informatica <at> actiu.net>

Date: Sat, 16 Jan 2016 19:11:02 UTC

Severity: normal

Done: Phil Susi <psusi <at> ubuntu.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Narcis Garcia <informatica <at> actiu.net>
To: bug-parted <at> gnu.org
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.





This bug report was last modified 9 years and 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.