saturn run Wrapper
The saturn run command wraps your scripts and automatically handles pings.
How It Works
```bash saturn run --token YOUR_TOKEN -- ./backup.sh ```
Steps:
- Send start ping
- Run command
- Capture exit code and duration
- Send success or fail ping
- Exit with same code as command
Options
```bash --token TOKEN Monitor token (required) --monitor ID Monitor ID or name ```
Examples
```bash
Basic
saturn run --token pg_abc123 -- ./backup.sh
With custom command
saturn run --token pg_abc123 -- npm run build
Complex command
saturn run --token pg_abc123 -- bash -c "cd /app && ./build.sh && ./test.sh"
From crontab
0 3 * * * saturn run --token pg_abc123 -- /path/to/backup.sh ```
Next Steps
- Installation — Install the CLI
- CLI Reference — All commands