Hello,
You can find some examples of shell scripts using augtool (and augparse) in https://github.com/raphink/augeas-sandbox. Regards, Raphaël On Tue, Apr 23, 2013 at 7:24 PM, Graham Leggett <[email protected]> wrote: > Hi all, > > According to the FAQ entry at http://augeas.net/faq.html, the augtool > command can be used to manipulate the tree from a script, but there doesn't > seem to be a link to any documentation that would describe how to do this > with working examples. > > The closest I've found is the url > http://stackoverflow.com/questions/9118123/using-sed-to-change-etc-fstabhowever > trying to follow it's example I get augtool running silently with > no error, but not doing anything to the file /etc/fstab: > > augtool set '/files/etc/fstab/[file=/home/monica/foo]/file' > /home/monica/foo > augtool set '/files/etc/fstab/[file=/home/monica/foo]/spec' > /dev/vg001/home-monica-foo > augtool save > > Does anyone have a working example of augtool being run from a script? > > Does anyone know how to get some kind of diagnostics or debugging out of > augtool, to confirm that it is actually doing anything? > > Regards, > Graham > -- > > > _______________________________________________ > augeas-devel mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/augeas-devel > -- Raphaël Pinson Développeur et Formateur Infrastructure +33 479 926 57 93 Camptocamp France Savoie Technolac BP 352 48, avenue du Lac du Bourget 73372 Le Bourget du Lac, Cedex www.camptocamp.com
_______________________________________________ augeas-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/augeas-devel
