Thanks Eric. I'll take a stab at it. It will be instructive. But I may well be getting back.
To make my requirement more precise, I want to trigger some "handler" verb after a given interval, leaving J to carry on working normally, but to do it only once, not repeatedly. That's the only use I make of wd'timer' -- but I'm using it heavily, in essential places. Since J does not multi-task, I was talking nonsense about an "asynchronous" 6!:3. Nor will a bash script work on the Mac because with 2!:1 as well as 2!:0 J602 hangs until the shell process finishes. J701 JHS too. Try: 2!:1 'sleep 5' On Thu, Jan 5, 2012 at 4:46 PM, Eric Iverson <eric.b.iver...@gmail.com> wrote: > There is no JHS equivalent of wd'timer'. I think this would best be done in > JHS with a javascript asynch timer that does an ajax call. If you get > stumped on this, get back to me. > > On Thu, Jan 5, 2012 at 11:23 AM, Ian Clark <earthspo...@gmail.com> wrote: > >> You're right, Bill, there's no timer in j602 jconsole either. But I >> was only thinking of wd'timer...' --which I have to replace in code I >> want to port to JHS. >> >> If there isn't a timer in J7, and there isn't going to be, I'll write >> my own. A simple shell script should do it. But I always get caned >> when I develop my own solutions when a good published solution exists. >> So I like to ask around first. >> >> Sorry, Bjorn, "delay" (6!:3) is no good: it hangs J for the duration >> of the pause, which wd'timer...' doesn't. An asynchronous variant of >> 6!:3 would be nice however, and satisfy all my timing needs. >> >> On Thu, Jan 5, 2012 at 2:21 PM, bill lam <bbill....@gmail.com> wrote: >> > I guess there is no timer in j602/j701 jconsole. >> > >> > Чтв, 05 Янв 2012, Ian Clark писал(а): >> >> How do I get a timer in j701 jhs (or jconsole)? >> >> >> >> I've been assuming wd (11!:0) doesn't work at all in j701 (in j602 >> >> you'd do: 11!:0 'timer 3' for a callback in 3 secs). >> >> >> >> BTW J701 help ( >> http://www.jsoftware.com/docs/help701/dictionary/dx011.htm) >> >> still refers to 11!:0 but I assume that's just because it's been >> >> overlooked...? >> >> ---------------------------------------------------------------------- >> >> For information about J forums see http://www.jsoftware.com/forums.htm >> > >> > -- >> > regards, >> > ==================================================== >> > GPG key 1024D/4434BAB3 2008-08-24 >> > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 >> > ---------------------------------------------------------------------- >> > For information about J forums see http://www.jsoftware.com/forums.htm >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm