php - spawn an entirely separate process in linux via bash -


i need have script execute (bash or perl or php, do) command , exit, while other command still runs , exits on own. schedule via @ command, curious if there easier way.

#!/bin/sh  your_cmd &  echo "started your_cmd, exiting!" 

similar constructs exists perl , php, in sh/bash easy run command in background , proceed.

edit

a source generic process manipulation start scripts under /etc/init.d. sorts of neat tricks such keep track of pids, executing basic start/stop/restart commands etc.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -