monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] [PATCH] New lua command execute_redirout which exec


From: Daniel Dickinson
Subject: Re: [Monotone-devel] [PATCH] New lua command execute_redirout which executes an os command and captures standard output
Date: Mon, 14 Aug 2006 15:34:17 -0400
User-agent: Mutt/1.5.9i

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

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]