Helpers for Adobe Campaign Shell execCommand
Copy the content of fco:sh.js into a new Javascript Code named fco:sh
.
In a workflow Javascript activity, in a WebApp, etc ; use following code:
loadLibrary('fco:sh');
sh.exec('pwd');
Output:
12/02/2020 10:41:49 AM js sh.exec: pwd
12/02/2020 10:41:49 AM js XSV-350201 Execute the command 'pwd' with user ''.
12/02/2020 10:41:49 AM js /usr/local/neolane/nl6/var/your_instance_name