Find the answer to your Linux question:
Results 1 to 4 of 4
Srry, my english is not so good, thats why the title was so poor.... I have a file on a linux server (Debian without desktop enviorement), and this file i ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    42

    Script that executes every minute?

    Srry, my english is not so good, thats why the title was so poor....

    I have a file on a linux server (Debian without desktop enviorement), and this file i want to send to an ftp server every minute. How can i create a script that does that?

    Please help me

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    You can use cron to accomplish that task. If you want it to run every minute without exception you can use all * as the time.
    Code:
    * * * * * /path/to/script

  3. #3
    Linux Newbie
    Join Date
    Oct 2006
    Posts
    101
    probably a less correct way:

    Code:
    #!/bin/bash
    
    while [ 1 = 1 ]
    do
      sleep 60
      #insert script here...
    done
    --Erik

  4. #4
    Just Joined!
    Join Date
    Jan 2007
    Posts
    42
    Quote Originally Posted by bigtomrodney
    You can use cron to accomplish that task. If you want it to run every minute without exception you can use all * as the time.
    Code:
    * * * * * /path/to/script

    Working just fine Thank u so much!

Posting Permissions

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