E
Eko Budi Setiyo
--------------030709070806030702000606
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
#
#inside openPdf.rb
#
openPdf = Thread.new{ check = exec("test.bat")
openPdf.stop }
puts 'done!'
#
#inside file "test.bat"
#
contents.pdf
exit
When I run "ruby openPdf.rb"
the "done!" message only apear after close contents.pdf file
Any body know how to make openPdf.rb does have to wait for "test.bat"
file to be closed before doing "puts 'done1' "?
Regards
Eko
--------------030709070806030702000606
Content-Type: message/rfc822;
name="do not want to wait for text.bat"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="do not want to wait for text.bat"
Message-ID: <[email protected]>
Date: Thu, 13 Jan 2005 15:48:40 +0800
From: Eko Budi Setiyo <[email protected]>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Ruby Mailing List <[email protected]>
Subject: do not want to wait for text.bat
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
#
#inside openPdf.rb
#
openPdf = Thread.new{
check = exec("test.bat")
openPdf.stop
}
puts 'done!'
#
#inside file "test.bat"
#
contents.pdf
exit
When I run "ruby openPdf.rb"
the "done!" message only apear after close contents.pdf file
Any body know how to make openPdf.rb does have to wait for "test.bat"
file to be closed before doing "puts 'done1' "?
Regards
Eko
--------------030709070806030702000606--
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
#
#inside openPdf.rb
#
openPdf = Thread.new{ check = exec("test.bat")
openPdf.stop }
puts 'done!'
#
#inside file "test.bat"
#
contents.pdf
exit
When I run "ruby openPdf.rb"
the "done!" message only apear after close contents.pdf file
Any body know how to make openPdf.rb does have to wait for "test.bat"
file to be closed before doing "puts 'done1' "?
Regards
Eko
--------------030709070806030702000606
Content-Type: message/rfc822;
name="do not want to wait for text.bat"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="do not want to wait for text.bat"
Message-ID: <[email protected]>
Date: Thu, 13 Jan 2005 15:48:40 +0800
From: Eko Budi Setiyo <[email protected]>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Ruby Mailing List <[email protected]>
Subject: do not want to wait for text.bat
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
#
#inside openPdf.rb
#
openPdf = Thread.new{
check = exec("test.bat")
openPdf.stop
}
puts 'done!'
#
#inside file "test.bat"
#
contents.pdf
exit
When I run "ruby openPdf.rb"
the "done!" message only apear after close contents.pdf file
Any body know how to make openPdf.rb does have to wait for "test.bat"
file to be closed before doing "puts 'done1' "?
Regards
Eko
--------------030709070806030702000606--