Re: Ways to know number of new files after mirror

Alexander Lukyanov <[email protected]> Wed, 24 Dec 2014 16:35:01 +0400
Newsgroups gmane.network.lftp.user,gmane.network.lftp.devel
Message-ID <CANnoEwqZ1ZWgqWNyCHrtQZOB+aQzzOue-ToOWbTQSi9t=zbWpw@mail.gmail.com>
--===============5400476859501844283==
Content-Type: multipart/alternative; boundary=001a11c3fd1c32d0b7050af58562

--001a11c3fd1c32d0b7050af58562
Content-Type: text/plain; charset=UTF-8

I don't know if it would be useful, but mirror has --on-change option to
run a script after mirroring which produced a change.

2014-09-23 15:03 GMT+04:00 akshay gupta <[email protected]>:

> Hi All,
>
> I want to know how many new files are added after mirror command has
> completed. I am going to run the lftp command through java code using
> runtime exec() call. Does lftp command provide some special exit status
> code when mirror succeeds but no new files are added.
> if not can you suggest some way of knowing when mirror command produces no
> new files.
>
> Thanks,
> Akshay
>



-- 
   Alexander.

--001a11c3fd1c32d0b7050af58562
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I don&#39;t know if it would be useful, but mirror has --o=
n-change option to run a script after mirroring which produced a change.<br=
></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">2014-09-23=
 15:03 GMT+04:00 akshay gupta <span dir=3D"ltr">&lt;<a href=3D"mailto:aksha=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</sp=
an>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Hi All,<div><br></d=
iv><div>I want to know how many new files are added after mirror command ha=
s completed. I am going to run the lftp command through java code using run=
time exec() call. Does lftp command provide some special exit status code w=
hen mirror succeeds but no new files are added.=C2=A0</div><div>if not can =
you suggest some way of knowing when mirror command produces no new files.<=
/div><div><br></div><div>Thanks,</div><div>Akshay</div></div>
</blockquote></div><br><br clear=3D"all"><br>-- <br><div class=3D"gmail_sig=
nature"><div dir=3D"ltr"><div></div>=C2=A0=C2=A0 Alexander.<br></div></div>
</div>

--001a11c3fd1c32d0b7050af58562--

--===============5400476859501844283==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

--===============5400476859501844283==--