[Gllug] file offset in running process

salsaman at xs4all.nl salsaman at xs4all.nl
Fri Aug 14 15:46:37 UTC 2009


On Fri, August 14, 2009 16:50, Alain Williams wrote:
> I am doing a large 'dd'. I want to know how far it has got. How do I do it
> ?
>
> lsof does not support -o (offset) under Linux.
> Strace reports nothing useful.
>
> --
> Alain Williams
> Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT
> Lecturer.
> +44 (0) 787 668 0256  http://www.phcomp.co.uk/
> Parliament Hill Computers Ltd. Registration Information:
> http://www.phcomp.co.uk/contact.php
> Past chairman of UKUUG: http://www.ukuug.org/
> #include <std_disclaimer.h>
> --
> Gllug mailing list  -  Gllug at gllug.org.uk
> http://lists.gllug.org.uk/mailman/listinfo/gllug
>
>


/proc/$pid/fdinfo/$fd has a field called pos:

if you grep for this maybe it will return what you are looking for.



Salsaman.
http://lives.sourceforge.net


-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list