How to send push notifications with Shell Scripts
Updated on March 29, 2026
Signalgrid makes it straightforward to send notifications from Shell Scripts. The platform uses a simple model built around your client_key, a target channel, and a few core fields such as title, body, type, and optional critical.
Shell scripts are still everywhere. Signalgrid makes it easy to add simple notification delivery to scheduled tasks, maintenance jobs, and system scripts.
The following example sends a simple notification with Shell Scripts.
#!/bin/sh
TITLE="Nightly Job"
BODY="The scheduled task finished successfully"
curl -s -X POST https://api.signalgrid.co/v1/push -d "client_key=${SIGNALGRID_CLIENT_KEY}" -d "channel=${SIGNALGRID_CHANNEL}" -d "title=${TITLE}" -d "body=${BODY}" -d "type=SUCCESS"client_keychanneltitlebodytypeINFO, WARN, SUCCESS, or CRITcriticalKeeping credentials outside your code is usually the better move.
export SIGNALGRID_CLIENT_KEY=your_client_key
export SIGNALGRID_CHANNEL=your_channel_tokenShell scripts are still everywhere. Signalgrid makes it easy to add simple notification delivery to scheduled tasks, maintenance jobs, and system scripts.