SamRothCA / Today-Scripts

A widget for running scripts in the Today View in OS X Yosemite's Notification Center
1.57k stars 183 forks source link

Certain scripts seem to cause problems #4

Closed kergoth closed 10 years ago

kergoth commented 10 years ago

For example, this causes it to show a loading icon and never display anything: Interpreter: /bin/sh Script:

while true; do
    echo Test
    sleep 30
done

Yet top seems to work fine.

SamRothCA commented 10 years ago

The reason is, that script never terminates.

kergoth commented 10 years ago

Neither does top, and it seems to run just fine. This seems pretty useless if it can only fire off one-off scripts rather than running something continuously/periodically.

SamRothCA commented 10 years ago

Apparently top does terminate when run from Today Scripts. If you're curious as to why this is, you might try running a stack trace on it.

Anyway, sorry you aren't able to figure out any use for the widget. Regards!