On Mon, Aug 14, 2006 at 12:33:10AM -0700, Nathaniel Smith wrote: > On Mon, Aug 14, 2006 at 01:00:18AM -0400, Daniel Dickinson wrote: > > The following diff adds a new command for use in lua hooks. The command > > is called execute_redirout. I chose the name based on spawn_redir and > > execute. execute_redirout executes an os command and captures standard > > output and returns it (and a success/failure indicator). > > Why do you want this, btw? I couldn't find any motivation given here, > though maybe I missed it.
Oh, I need it to be able to use stat to get unix permissions and user and group on a file, as well as using readlink to get the target of symlinks. I'm using monotone attributes to track these. It's not strictly necessary since you can work around it, as I did with the helper script on the wiki page, but this way of doing it makes life much easier. -- GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C http://gnupg.org And that's my crabbing done for the day. Got it out of the way early, now I have the rest of the afternoon to sniff fragrant tea-roses or strangle cute bunnies or something. -- Michael Devore
signature.asc
Description: Digital signature
_______________________________________________ Monotone-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/monotone-devel
