using terminal commands to launch agents