Hello World!

Prerequisite: Set up the Web Interface to Cerber Grid

Follow the instructions at Getting Started - Web Interface

Follow the instructions at Getting Started - Cerber Grid

This example uses native bash, so you must be running Linux. However, a great beginner exercise would be to try out this Hello World example in javascript which is going to be platform independent.

Quick Overview of Steps:

  • Create a job and name it Hello World
  • Add a parameter to the job name: script value: echo 'Hello From Bash!'
  • Activate the Job
  • Refresh the Job until it has completed and view output

1. Create the Job

Enter a name in for the job: Hello World, select the Job Type to be: bash (native), then click Save.

2. Add the Bash code to the Job.

Add a parameter to the job

name: script
value: echo 'Hello From Bash!'

And click Add Parameter.

3. Activate the Job

Click on the Activate button to set the status Active status of the Job to true.

4. Refresh the Job until it has completed and view output

Refresh the job several times. They key thing to understand here is that the actual execution of the job is going to be nearly instantaneous, however the Controller scans for jobs every roughly 5 seconds, so there may be a lag time becuase the Job is recognized.

Now click output to view the output:

Troubleshooting

The Job never completed. - There could be several problems. A Node may not have been defined. Click on View Nodes to see if at least one Node is defined and active. The Controller may not be started. The Job may not have been Activated.

There is no Output after the Job completed - Check there error, there could be a syntax problem when you typed in the job. If the error and output is empty, submit a Bug report to Bugs