How to run nohup and write its pid file in a single bash statement

后端 未结 3 1589
刺人心
刺人心 2021-01-30 08:26

I want to run my script in background and then write its pid file. I am using nohup to do this.

This is what i came up with,

nohup ./myprogram.sh > /d         


        
3条回答
提交回复
热议问题