How to control background process in linux

view story

http://stackoverflow.com – I need to write a script in Linux which can start a background process using one command and stop the process using another. The specific application is to take userspace and kernel logs for android. following command should start taking logs $ mylogscript start following command should stop the logging $ mylogscript stop Also, the commands should not block the terminal. For example, once I send the start command, the script run in background and I should be able to do other work on terminal. Any pointers on how to implement this in perl or python would be helpful. EDIT: Solved: http (HowTos)