I installed the gcloud sdk in AC server, and I can run the 'gcloud -v' by the user 'neolane' in the command console:
But it always failed to run in Adobe campaign by the execCommand method:
var command='gcloud -v';
try{
var res=execCommand(command,true);
} catch(e){
logError("Error: "+e);
}
logInfo(">>"+res)
Error logs:
Does anyone know reason why the command cannot be executed by the same user in the same server? thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
The gcloud command isn't in neolane's PATH env var.
Use the absolute path for it, e.g. /opt/gcloud/bin/gcloud (`which gcloud` to get the path), or add the path for it to customer.sh (env.sh if that's missing).
Thanks,
-Jon
Hi,
The gcloud command isn't in neolane's PATH env var.
Use the absolute path for it, e.g. /opt/gcloud/bin/gcloud (`which gcloud` to get the path), or add the path for it to customer.sh (env.sh if that's missing).
Thanks,
-Jon
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies