Sorry for bumping such an old thread, but I have exactly the same problem and the suggested solution does not work for me. I can't find newer threads about this problem.
I am trying to get a simple calendar to pop up for a few seconds when I press my middle mouse button. I am using Fluxbox v18.104.22.168 on Fedora 13, and this is the code in my Fluxbox' keys-file:
OnDesktop Mouse2 :ExecCommand aterm -e cal -3
Using the suggested script does not change anything for me, the window appears for a millisecond but closes again. Adding " &" behind the command doesn't help, also when I run the command from terminal. I think it occures with programs that don't need input after the command, because ls does not work either:
while su does work:
Ideally I want the window with calendar to be open for as long as I press the middle mouse button, but a timeout of a few seconds would also do.
The temporary solution I found is running Gdeskcal with this
time-out script, but I don't like the program and want to use cal.
Can anyone help?