This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Sun Oct 24, 2004 4:51 am
is there a way to start a atimed event in a shell script without interrupting or freezing other procs that are running???
like bind time ..
XplaiN but think of me as stupid
Papillon
Owner
Posts: 724 Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no
Post
by Papillon » Sun Oct 24, 2004 5:44 am
use
clock and
after to make your own timed proc
Elen sila lúmenn' omentielvo
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Sun Oct 24, 2004 7:06 am
well i got a problem with after cause it freezes all events.. and clock i am asuming that u mean to match
Code: Select all
clock format [clock seconds] -format {%S %M %H %d %m %Y}
i know how to match it only problem is that i need something that doesn't freeze .. my socket.. after will make the socket freeze ..
i got something .. that works but it freezes everything.. calling a proc again dies ..
calling back a proc gives me this .. even with after .. :/
ERROR --> too many nested calls to Tcl_EvalObj (infinite loop?)
could u maybe give me an example ?? simple script ..? might over looked something .. ive checked the manual several times can't find a good command to do so and i can't think of a proc that will do this utimer yes but thats nota avail in shell ://
XplaiN but think of me as stupid
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Sun Oct 24, 2004 7:52 am
% proc ver {} { return [clock seconds] }
% ver
1098618251
% after 1000 ver
after#2
%
i also tryed this but it doesn't return anything.. i kept waiting .. but .. 1000 ms = 1 sec right hehe
, but nothing happend..
XplaiN but think of me as stupid
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Mon Oct 25, 2004 9:17 am
Ofloo wrote: % proc ver {} { return [clock seconds] }
% ver
1098618251
% after 1000 ver
after#2
%
i also tryed this but it doesn't return anything.. i kept waiting .. but .. 1000 ms = 1 sec right hehe
, but nothing happend..
You didn't enter the event loop (stdin is blocking in tclsh by default) You can force an update by invoking 'update' when testing stuff.
Have you ever read "The Manual"?