# How to copy very long(5000+ lines) out-put of commands to files

**URL:** <https://forum.ansible.com/t/how-to-copy-very-long-5000-lines-out-put-of-commands-to-files/23666>\
**Category:** Ansible Project\
**Created:** [February 7, 2017, 2:45pm UTC](https://forum.ansible.com/t/how-to-copy-very-long-5000-lines-out-put-of-commands-to-files/23666 "2017-02-07T14:45:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satish](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Satish](https://forum.ansible.com/u/Satish)\
**Post date:** [February 7, 2017, 2:45pm UTC](https://forum.ansible.com/t/how-to-copy-very-long-5000-lines-out-put-of-commands-to-files/23666/1 "2017-02-07T14:45:55Z")

</div>

Hello Team,

I am using ios\_command module in a playbook. With this module we executes different commands (i.e. show version, show ISIS neighbor, show users etc…) on routers and collect respective output in text file. To copy out-put in a text file we use “copy” module. And whole playbook executed properly for all 58 commands except 2 commands.

These 2 commands have very long((5000+ lines)) output. Because of this playbook didn’t return output of these two commands.

**Can anyone support me to collect very long output in a text file.**

I am playing with the following Playbook ::
