View Full Version : ruby program
munna_dude
January 27th, 2007, 03:51 AM
hi all
how can i terminate the ruby program after 20sec. by programatically
please show me the way
thank you
rob
January 27th, 2007, 05:13 AM
You could start a thread and have it sleep 20 seconds, then have it exit everything, but there is probably a more elegant way to do it. I'm just thinking of something off the top of my head.
lovende
June 28th, 2007, 04:54 AM
example i have 1 file the content is
000120000% "njkhuiisaaa" /001102000^10100
000110000% "njhdhdydd " /001102000^10200
000130000% "njkhusdsds" /001102000^10300
check if the line 1 the code is 10100 then the string that i want to show in the output file is "TAMAN DAMANSARA"
then 10200 == "SRI SERDANG"
then 10300 == "JUSCO"
then if the line is > 40 mean have more then 40 line the output will show/write to second page....
anyone can help me......
tq
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.