![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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!!! |
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||
|
|||
|
Thank
Yep thats brilliant. Why didn't I just think out of the box!!
Thanks |
|
#5
|
||||
|
||||
|
Also it could be that each of his 2000 customers gets a different invoice.
A couple solution are mentioned in this thread. |
||||
| Google The UNIX and Linux Forums |