<div dir="ltr">Hello,<div><br></div><div><br></div><div>You can find some examples of shell scripts using augtool (and augparse) in <a href="https://github.com/raphink/augeas-sandbox">https://github.com/raphink/augeas-sandbox</a>.</div>
<div><br></div><div><br></div><div>Regards,</div><div><br></div><div>Raphaël</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 23, 2013 at 7:24 PM, Graham Leggett <span dir="ltr"><<a href="mailto:minfrin@sharp.fm" target="_blank">minfrin@sharp.fm</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
According to the FAQ entry at <a href="http://augeas.net/faq.html" target="_blank">http://augeas.net/faq.html</a>, 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.<br>

<br>
The closest I've found is the url <a href="http://stackoverflow.com/questions/9118123/using-sed-to-change-etc-fstab" target="_blank">http://stackoverflow.com/questions/9118123/using-sed-to-change-etc-fstab</a> however trying to follow it's example I get augtool running silently with no error, but not doing anything to the file /etc/fstab:<br>

<br>
augtool set '/files/etc/fstab/[file=/home/monica/foo]/file' /home/monica/foo<br>
augtool set '/files/etc/fstab/[file=/home/monica/foo]/spec' /dev/vg001/home-monica-foo<br>
augtool save<br>
<br>
Does anyone have a working example of augtool being run from a script?<br>
<br>
Does anyone know how to get some kind of diagnostics or debugging out of augtool, to confirm that it is actually doing anything?<br>
<br>
Regards,<br>
Graham<br>
--<br>
<br>
<br>_______________________________________________<br>
augeas-devel mailing list<br>
<a href="mailto:augeas-devel@redhat.com">augeas-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/augeas-devel" target="_blank">https://www.redhat.com/mailman/listinfo/augeas-devel</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Raphaël Pinson<br>
<div>Développeur et Formateur Infrastructure</div><div>+33 479 926 57 93</div><div><br></div><div>Camptocamp France<br>
Savoie Technolac<br>
BP 352<br>
48, avenue du Lac du Bourget<br>
73372 Le Bourget du Lac, Cedex<br>
<a href="http://www.camptocamp.com" target="_blank">www.camptocamp.com</a><br>
</div></div>
</div></div>