Store cartridge_pid in bash variable