Weird effect of mount command in F23
Joachim Backes
joachim.backes at rhrk.uni-kl.de
Tue Oct 20 14:32:34 UTC 2015
On 20.10.2015 14:30, Ed Greshko wrote:
> On 10/20/2015 08:21 PM, Joachim Backes wrote:
>> Then how to check in a bash script when a CD is really mounted?
>
> Check the return code of the mount command?
>
> [root at meimei ~]# mount /dev/sr0 /mnt
> mount: no medium found on /dev/sr0
> [root at meimei ~]# echo $?
> 32
Hi Ed,
$? = 32 helped. Thanks for the hint.
Kind regards
Joachim Backes
--
Fedora release 23 (Twenty Three)
Kernel-4.2.3-300.fc23.x86_64
Joachim Backes <joachim.backes at rhrk.uni-kl.de>
http://www-user.rhrk.uni-kl.de/~backes/
More information about the test
mailing list