If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Sleep function

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-23-04, 04:21
mp218 mp218 is offline
Registered User
 
Join Date: Mar 2004
Location: Slovenia
Posts: 56
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...
Reply With Quote
  #2 (permalink)  
Old 07-23-04, 07:59
vgersh99 vgersh99 is offline
Registered User
 
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> |
+-----------------------+
Reply With Quote
  #3 (permalink)  
Old 07-23-04, 09:09
mp218 mp218 is offline
Registered User
 
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...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On