LINUX How to create Deamon Shell

Make a deamon shell auto svn update :
1. Open shell terminal
2. vim autoUpdate.sh 
3. Add contents:
#!/bin/sh
while :; do
 # your code here
 svn update
 sleep 5
done

4. Save autoUpdate.sh
    :x!
5. Change mod to run
    chmod 755 autoUpdate.sh
6. Run Deamon
    ./ autoUpdate.sh&

Comments

Popular posts from this blog

LINUX Move and copy files using SSH

PHP Predefined Variables

Java : Variables Declaring