Quantcast
Channel: Question and Answer » startup
Viewing all articles
Browse latest Browse all 33

How can I start a file-processing daemon? [closed]

$
0
0

How can I run a script-based tool which will process files continuously downloaded to given directory as they arrive? I’d like to minimize delay (~1 second is OK), script can have own infinite loop.

I know a few ways, like:

  • autologin user with .bashrc or .profile calling my script
  • fork script from cron, then ignore if it is already running
  • use init scripts somehow (I guess it varies between distributions)

What method would work best?


Viewing all articles
Browse latest Browse all 33

Trending Articles