[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22387: Non-interactive use and errors
From: |
Narcis Garcia |
Subject: |
bug#22387: Non-interactive use and errors |
Date: |
Thu, 28 Jan 2016 19:52:50 +0100 |
Oh thanks.
El 28/01/16 a les 17:52, Brian C. Lane ha escrit:
> On Sat, Jan 16, 2016 at 08:11:26PM +0100, Narcis Garcia wrote:
>> 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?
>
> Use script mode:
>
> parted -s /dev/blah print
>
> Any user interaction will take the 'safe' choice, not changing any data.
>