On 27/06/2019 08:58, Ravindra Kumar Meena wrote:

     > Is there a way to set the file size for which nc should output? I
    can
     > get around minimum 500KB of file.
     > I am following this
     > https://linux.die.net/man/1/nc

    You can use dd to reduce the file size, e.g.

    dd if=input-file of=output-file count=131072

Okay. It worked. I have placed it in mis/record directory.

It is a binary file. So I directly made a push to my GitHub rtems-tools repository workplace.
https://github.com/rmeena840/rtems-tools/commit/70d527dcf8ae8a5026dd1af79e4d27c5adcbdade

Have a look.

For whatever reason this file has only 98304 bytes. The content looks all right. So, the next step is to modify the client so that it can read from a file instead of the TCP stream.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to