Hi, I need to get the PID value out of a variable(containing hash data) using BASH. eval errors because of the array inside of it. This script is on an iPhone.
eval "$(launchctl list com.3radicateRD)"
eval: line 10: syntax error near unexpected token `('
eval: line 10: ` "ProgramArguments" = ('
------------------------------------------------------
{
"Label" = "com.3radicateRD";
"LimitLoadToSessionType" = "System";
"OnDemand" = false;
"LastExitStatus" = 0;
"PID" = 6810;
"TimeOut" = 30;
"ProgramArguments" = (
"bash";
"/var/mobile/Library/3radicateRD/3radicateRD";
);
};