Results 1 to 15 of 23

Thread: Question about Cron

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336
    well, her is an other solution which I use when a script should start, check himself and exit when running.
    I use it when the first script can not be killed due to some important jobs like backups and it takes longer.

    This script starts and exit himself when pid exists.

    if [ ! -n "`pidof yourscript`" ] ; then
    echo "script not runing"
    #do your job here
    else
    echo "script running"
    #here you do nothing, therefore it ends himself when one instance is running
    fi

    have fun
    Last edited by newbiefan; 23-10-2007 at 22:05.

Similar Threads

  1. Установка RRDTool и CRON на роутер
    By dizzy128 in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 173
    Last Post: 16-04-2012, 17:35
  2. Old two USB Printers question and internet problem.
    By tiagoaleks in forum WL-500gP Q&A
    Replies: 0
    Last Post: 12-09-2007, 11:52
  3. Hide cron from log?
    By Rejan in forum WL-700g Q&A
    Replies: 2
    Last Post: 06-07-2007, 13:57
  4. unslung cron ipkg problem
    By bubieyehyeh in forum WL-HDD Q&A
    Replies: 4
    Last Post: 06-06-2006, 18:06
  5. cron op wl500/g
    By jozef in forum Dutch Discussion - Nederlands
    Replies: 1
    Last Post: 15-04-2006, 19:03

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •