# how can pass nohup log print to target server for jar/java process using playbook?

**URL:** <https://forum.ansible.com/t/how-can-pass-nohup-log-print-to-target-server-for-jar-java-process-using-playbook/29243>\
**Category:** Ansible Project\
**Created:** [December 11, 2018, 11:57pm UTC](https://forum.ansible.com/t/how-can-pass-nohup-log-print-to-target-server-for-jar-java-process-using-playbook/29243 "2018-12-11T23:57:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![4Register\_Tony](https://avatars.discourse-cdn.com/v4/letter/4/4bbf92/32.png) [@4Register\_Tony](https://forum.ansible.com/u/4Register_Tony)\
**Post date:** [December 11, 2018, 11:57pm UTC](https://forum.ansible.com/t/how-can-pass-nohup-log-print-to-target-server-for-jar-java-process-using-playbook/29243/1 "2018-12-11T23:57:50Z")

</div>

when i was trying to pass nohup command via playbook, the target servers would not print nohup log. is here any tips to solve it? thanks in advance.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [December 13, 2018, 4:38am UTC](https://forum.ansible.com/t/how-can-pass-nohup-log-print-to-target-server-for-jar-java-process-using-playbook/29243/2 "2018-12-13T04:38:25Z")

</div>

What does your playbook look like?

And what do you mean by “printing nohup log”? Is it something java specific?

Dick

---

<div class="post-metadata">

**Author:** ![oxido\_A](https://avatars.discourse-cdn.com/v4/letter/o/7cd45c/32.png) [@oxido\_A](https://forum.ansible.com/u/oxido_A)\
**Post date:** [December 13, 2018, 5:11pm UTC](https://forum.ansible.com/t/how-can-pass-nohup-log-print-to-target-server-for-jar-java-process-using-playbook/29243/3 "2018-12-13T17:11:56Z")

</div>

I think that you can send the output into a file and then you can read it ,

**nohup**. **nohup** is a POSIX **command** to ignore the HUP (hangup) signal. The HUP signal is, by convention, the way a terminal warns dependent processes of logout. Output that would normally go to the terminal goes to a file called **nohup**.out if it has not already been redirected.

regards!
