-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hey Guys,
I have a program that uses the loop devices. However I originally was finding the free one with: 'losetup -f'. Which returns the next free loop device. :D However, I found that some of the other distros have a version of losetup that does not include that switch. So I am trying to work up another way to get the next device. What I'm figuring is doing 'losetup -a', parsing the returned data, and incrementing it by one... However I don't know how to accomplish this. An example 'losetup -a' would be like this: [EMAIL PROTECTED] Desktop]# losetup -a /dev/loop0: [fd00]:11305639 (enc) /dev/loop1: [fd00]:11306533 (/home/nmcbride/Desktop/xxxxxxxxxxxxxxx.iso) Can anyone give me a hand? Thanks, Nate -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFIH2Oo/n+duykW6K8RAnCTAJ480KREx5udm22wFx3KbNQ08p6AeQCfcfoO IS+ZG3J8M1/oEjcHN/pLhU4= =5zQk -----END PGP SIGNATURE----- _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor