[Ndn-interest] list of chunks from ndnputchunks

Junior DONGO junior.dongo at lacl.fr
Thu Oct 19 03:00:58 PDT 2017


Thank you.

Redirecting in a file can be an option and the use a script to extract 
the names.

Also the Data segments are available (in cache) for a moment if fetched 
before the stop of the application, otherwise, no.

Regards,

Junior


On 10/19/2017 01:17 AM, Klaus Schneider wrote:
>
>
> On 10/18/2017 02:59 PM, Junior DONGO wrote:
>> Susmit, Klaus,
>>
>> thanks for your answers.
>>
>> I will try to print the vector to see.
>>
>> Using the example of Klaus, suppose I have executed the command for 2 
>> or 3 files and some time later, I want to know the names?
>
> You can redirect the stderr output for later use by using "&>"
>
> https://stackoverflow.com/questions/637827/redirect-stderr-and-stdout-in-bash 
>
>
>>
>> Another question will be, how long will the Data segments be 
>> available on NDN?
>
> I think until you quit the ndnputchunks application.
>
> Best regards,
> Klaus
>
>>
>>
>> Regard,
>>
>> Junior
>>
>>
>>
>>
>>
>>
>> On 10/18/2017 10:10 PM, Klaus Schneider wrote:
>>> If you use the -v parameter, it already shows you most of the data 
>>> name:
>>>
>>>> sudo ndnputchunks -v /test < test.txt
>>>> Loading input ...
>>>> Created 94 chunks for prefix /test
>>>> Data published with name: /test/%FD%00%00%01_1%17%7B%C1
>>>
>>> Then you just need to add a predictable block id for each chunk, like:
>>>
>>>> /test/%FD%00%00%01_1%17%7B%C1/%00%00
>>>
>>> Best regards,
>>> Klaus
>>>
>>>
>>> On 10/18/2017 08:11 AM, Susmit wrote:
>>>> ndnputchunks keeps chunks in a std::vector.
>>>> https://github.com/named-data/ndn-tools/blob/11e74eb20f917a5fb77024f57cdd65f2dd4103a2/tools/chunks/putchunks/producer.hpp#L95 
>>>>
>>>>
>>>> You can add some print statements in the code after the vector is
>>>> populated, around line 135 in producer.cpp.
>>>>
>>>> On Wed, Oct 18, 2017 at 7:57 AM, Junior DONGO 
>>>> <junior.dongo at lacl.fr> wrote:
>>>>> Hi all,
>>>>>
>>>>> Is there a way to find the list of published data using ndnputchunks?
>>>>>
>>>>> For example :
>>>>>
>>>>> ndnputchunks -p ndn:/localhost/demo/gpl3 < 
>>>>> /usr/share/common-licenses/GPL-3
>>>>>
>>>>> how to get all the name of data published by a node?
>>>>>
>>>>> Thanks for your help
>>>>>
>>>>> Junior
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Ndn-interest mailing list
>>>>> Ndn-interest at lists.cs.ucla.edu
>>>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
>>>>>
>>>>
>>>>
>>>>
>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20171019/627ff9f4/attachment-0001.html>


More information about the Ndn-interest mailing list