The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Splitting a Larger File Into Mutiple Smaller ones. madhubt_1982 Shell Programming and Scripting 1 03-22-2008 07:10 AM
Cutting a large log file in to smaller ones MrTangent Shell Programming and Scripting 11 11-07-2007 03:55 AM
Grab a smaller and larger value Raynon Shell Programming and Scripting 3 10-11-2007 03:23 AM
Smaller splash graphic kduffin Post Here to Contact Site Administrators and Moderators 2 11-20-2003 09:03 PM
sleep Anna UNIX for Dummies Questions & Answers 5 07-10-2001 08:52 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 04-07-2006
Registered User
 

Join Date: Apr 2006
Posts: 7
Anything smaller than sleep 1

I'm writting a shell script to email customers invoices.
after each RCPT to: email@address.com, i've put in a sleep 1 command,
but with 2000 customers to email and about 5 or 6 of these sleep commands it can take a very long time.

Is there any smaller amount of time the sleeper can sleep for that 1 second?
Reply With Quote
Forum Sponsor
  #2  
Old 04-07-2006
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,609
Is that you are going to mail the same subject and content to all the n-receipients?

then a single mailx command would do !!!

First of all why do you need a sleep command when you are sending mails to n-receipients!!!
Reply With Quote
  #3  
Old 04-07-2006
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
He may be looking at his queue getting backed up and wants the sleep to avoid it - not that it matters much. The system should just queue them up and send them out.

You can do a sleep 0. That will 'slow' it down for the time that it takes the system to run the sleep command (milliseconds) and then continue on.
Reply With Quote
  #4  
Old 04-07-2006
Registered User
 

Join Date: Apr 2006
Posts: 7
Thank

Yep thats brilliant. Why didn't I just think out of the box!!
Thanks
Reply With Quote
  #5  
Old 04-07-2006
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,614
Also it could be that each of his 2000 customers gets a different invoice.

A couple solution are mentioned in this thread.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0