Run job from the command line

Here is a script that uses curl to start a Move2Alf job from the command line:

#!/bin/bash -x

URL=http://localhost:8081/move2alf
USER=admin
PASS=admin
JOBID=4

curl -b cookies.txt -c cookies.txt -d "j_username=$USER" -d "j_password=$PASS" $URL/j_spring_security_check
curl -b cookies.txt -c cookies.txt $URL/job/$JOBID/cycle/run