#!/bin/bash # Login and save cookie curl -s -L -c cookie.txt -X POST -F 'email=admin@example.com' -F 'password=password' http://localhost/login.php > /dev/null # Initialize the process # First, delete any existing instance for this person and process to ensure a clean slate curl -s -L -b cookie.txt -X POST -F 'person_id=9' -F 'process_id=4' -F 'delete_existing=1' http://localhost/_init_single_instance.php > /dev/null # Get instance details curl -s -L -b cookie.txt "http://localhost/_get_instance_details.php?person_id=9&process_id=4"