Results 1 to 3 of 3

Thread: Sleep function

  1. #1
    Join Date
    Mar 2004
    Location
    Slovenia
    Posts
    56

    Unanswered: Sleep function

    I used sleep function to check every 5 sec the number of files in certain directory.

    now, when I run certain process that sends the files from the directory, my script slows down the process. When I stopped the script, the process was running faster again.

    Is it this from the sleep function?
    Back to the basics...

  2. #2
    Join Date
    Apr 2004
    Location
    Boston, MA
    Posts
    325
    What do [bold]you[/bold] think?

    Maybe you should check your 'script' to see what it's actually doing and to see it can be optimized.
    vlad
    +-----------------------+
    | #include <disclaimer.h> |
    +-----------------------+

  3. #3
    Join Date
    Mar 2004
    Location
    Slovenia
    Posts
    56

    function

    1.) only this

    function

    x= 120
    while (( x>0 ))
    do
    ls /OUTPUT |wc -l
    sleep 5
    let x=x-1
    done
    Back to the basics...

Posting Permissions

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