How can I move the script to a thread?
Code: Select all
set zipper [thread::create {
puts "Starting zipper thread"
exec bash.script
}]
Code: Select all
set zipper [thread::create {
puts "Starting zipper thread"
exec bash.script
}]
I think there is a Thread package. However I am not familiar with it. Maybe someone else here will comment on it.haferbrei wrote: ...
How can I move the script to a thread?
...
Code: Select all
...
# Description:
#
# This script is for other scripters to use as a replacement
# for the "exec" command so that they may execute commands to
# the system in the background. (non-blocking mode)
...
i tried it with &, but it doesnt help at all. I get the message (!) timer drift -- spun 2 minuteswillyw wrote:
I'm fuzzy on this - been a long time - but you can use the
open
command with pipes to deal with this.