zsh-users
 help / color / mirror / code / Atom feed
* sched behaviour: execute only after <return>
@ 2006-11-24 10:27 holger.dinkel
  2006-11-24 10:47 ` Nikolai Weibull
  2006-11-24 11:35 ` Peter Stephenson
  0 siblings, 2 replies; 5+ messages in thread
From: holger.dinkel @ 2006-11-24 10:27 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 1467 bytes --]

Hello List,

i was wondering if the behaviour of 'sched' was what everybody
expects: At least i was startled, when i found out, that it does not
"really" schedule my jobs...

an example:

 > sched +0:01 date +%R

should wait one minute and then print the current date. As long as i
don't use the shell, i don't get a feedback (no output from 'date'). I
have f.i. to press <enter>. This is perfectly fine for me.  
However, the result from 'date' is not what i expected:

assume it was exactly high noon, when i typed in the command from above:

 12:00> sched +0:01 date +%R

then i would wait for exactly two minutes until i press <return>. I would 
think the 'date' command was executed at 12:01 and be printed at 12:02:

 
 12:02> <pressing enter>
   12:01

instead i get:
 
 12:02> "pressing enter>
   12:02

which means, that the 'date' command was executed NOT at 12:01 but at 12:02!

[i hope this example isn't too confusing... ;-} ]

Can someone please tell me if and how this behaviour can be changed?

I mean, what good is a scheduling service if i need to be around to
press a key to trigger it???

How do you guys schedule your jobs?

Many thanks in advance!


Holger


PS: zsh ROCKS!

PPS:

> zsh --version
zsh 4.3.2 (i686-pc-linux-gnu)

i have (amongst others) the following options set in my .zshrc:
setopt MONITOR
setopt NOTIFY 

... but i have also tried it without these...without success.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-24 15:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-24 10:27 sched behaviour: execute only after <return> holger.dinkel
2006-11-24 10:47 ` Nikolai Weibull
2006-11-24 11:35 ` Peter Stephenson
2006-11-24 14:09   ` holger.dinkel
2006-11-24 15:50     ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).