Richard W.M. Jones
2013-Feb-25 17:47 UTC
[Libguestfs] virt-ls question (was: Re: libguestfs)
On Mon, Feb 25, 2013 at 06:31:36PM +0100, Khan Ferdous Wahid wrote:> Hi, > I would like to know if it is possible to "Find everything modified in the > last 10 minutes" as you did for last 7 days in > > virt-ls -lR -d guest --time-days / | awk '$6 <= 7'You can use: virt-ls -lR -d guest --time-relative / | awk '$6 <= 10'> Where should I look for it? Which source file contains the code? Thank you.The source is here: https://github.com/libguestfs/libguestfs/blob/master/cat/virt-ls.c#L813 Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
Khan Ferdous Wahid
2013-Feb-26 09:31 UTC
[Libguestfs] virt-ls question (was: Re: libguestfs)
Thank you very much for your quick reply. On Mon, Feb 25, 2013 at 6:47 PM, Richard W.M. Jones <rjones at redhat.com>wrote:> On Mon, Feb 25, 2013 at 06:31:36PM +0100, Khan Ferdous Wahid wrote: > > Hi, > > I would like to know if it is possible to "Find everything modified in > the > > last 10 minutes" as you did for last 7 days in > > > > virt-ls -lR -d guest --time-days / | awk '$6 <= 7' > > You can use: > > virt-ls -lR -d guest --time-relative / | awk '$6 <= 10' > > > Where should I look for it? Which source file contains the code? Thank > you. > > The source is here: > > https://github.com/libguestfs/libguestfs/blob/master/cat/virt-ls.c#L813 > > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat > http://people.redhat.com/~rjones > Read my programming blog: http://rwmj.wordpress.com > Fedora now supports 80 OCaml packages (the OPEN alternative to F#) >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libguestfs/attachments/20130226/73446e4a/attachment.htm>
Richard W.M. Jones
2013-Feb-26 11:47 UTC
[Libguestfs] virt-ls question (was: Re: libguestfs)
On Mon, Feb 25, 2013 at 05:47:12PM +0000, Richard W.M. Jones wrote:> On Mon, Feb 25, 2013 at 06:31:36PM +0100, Khan Ferdous Wahid wrote: > > Hi, > > I would like to know if it is possible to "Find everything modified in the > > last 10 minutes" as you did for last 7 days in > > > > virt-ls -lR -d guest --time-days / | awk '$6 <= 7' > > You can use: > > virt-ls -lR -d guest --time-relative / | awk '$6 <= 10'Actually that's seconds, not minutes. Try .. '$6 <= 10*60' instead. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#)