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

14 views
Skip to first unread message

4Register Tony

unread,
Dec 11, 2018, 6:57:50 PM12/11/18
to Ansible Project
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.

Dick Visser

unread,
Dec 12, 2018, 11:38:48 PM12/12/18
to ansible...@googlegroups.com
What does your playbook look like?
And what do you mean by “printing nohup log”? Is it something java specific?

Dick

On Wed, 12 Dec 2018 at 00:57, 4Register Tony <tony4r...@gmail.com> wrote:
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.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/bfce13c9-6f64-4454-bc13-e980497f5c57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

oxido A

unread,
Dec 13, 2018, 12:12:20 PM12/13/18
to ansible...@googlegroups.com
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!


For more options, visit https://groups.google.com/d/optout.


--

     _             _
             //             \\
            /'               `\
           /,'     ..-..     `.\
          /,'   .''     ``.   `.\
         /,'   :   .---.   :   `.\
        I I   :  .'\   /`.  :   I I
        I b__:   . .`~'. .   :__d I
        I p~~:   . `._.' .   :~~q I
        I I   :   ./   \.   :   I I
         \`.   :   `---'   :   ,'/
          \`.   `..     ..'   ,'/
           \`.     ``~''     ,'/
            \`               '/   
             \\             //
              ~             ~
Reply all
Reply to author
Forward
0 new messages