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-fstab 
however 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
--

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to