Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sleep 2 hours ??

Status
Not open for further replies.

malpa

Technical User
Feb 8, 2004
122
CO
Hi,

1.I want that my program stops for 2 hours after that it continues.


BEGIN{
.........
}
{
"date" | getline date
split(date,a," ")
split(a[4],h,":")
if (h[1]== 23}{"sleep 2hours"}
.........
}

2. Is there another way to do this??

Thanks

malpa.
 
Something like this ?
system("sleep 7200")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Hi,

Thanks it works fine!

malpa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top