Learn how to create and run your first automated script in Cronium. This guide walks you through the complete process from setup to execution.
Make sure you have access to a Cronium instance and can sign in to the dashboard.
For remote execution, you'll need SSH access to a server. Local execution works without this.
Familiarity with bash, Python, or Node.js scripts will be helpful but not required.
Start by accessing the Events section in your Cronium dashboard.
Tip: If you don't see the "Create Event" button, check that you have the necessary permissions. Contact your administrator if needed.
Fill in the basic information for your event. Start with something simple for your first event.
My First EventBash ScriptA simple hello world script to test CroniumBest for system administration and file operations
Great for data processing and API integrations
Perfect for JavaScript-based automation
For webhook calls and API testing
Now add the script content. For your first event, we'll create a simple script that demonstrates basic functionality.
Copy and paste this script into the script editor:
#!/bin/bash
# Your first Cronium event
echo "Hello from Cronium!"
echo "Event started at: $(date)"
echo "Running on server: $(hostname)"
# Check current directory
echo "Current directory: $(pwd)"
# Show current user
echo "Running as user: $(whoami)"
# Create a simple log entry
echo "$(date): First event executed successfully" >> /tmp/cronium-first-event.log
# Display system information
echo "System uptime:"
uptime
echo "Event completed successfully!"If you have servers configured, select one from the dropdown. If not, you can run this locally or skip server selection for now.
Before scheduling your event, let's test it to make sure everything works correctly.
Click "Save Event" to store your configuration.
Click the "Run Now" button to execute your event immediately.
Check that the output looks similar to the example above. The exact values will vary based on your server and current time.
Success! If you see output similar to the example, your event is working correctly. You're ready to schedule it for automatic execution.
Now that your event works, let's schedule it to run automatically.
Go back to your event and click "Edit", then navigate to the Schedule section.
Run every 5 minutes:
*/5 * * * *Run daily at 2 AM:
0 2 * * ** * * * *0 * * * *0 0 * * *0 9 * * 10 0 1 * **/15 * * * *Make sure the event status is set to "Active" and save your changes.
Check that your script has execute permissions and that the user has access to required files.
Verify that all required tools and dependencies are installed on the target server.
Ensure the event is set to "Active" status and check the cron expression syntax.
You've successfully created and scheduled your first Cronium event. You now have the foundation to build more complex automation workflows.