Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

The 4th edition of the Campaign Community Lens newsletter is out now!
SOLVED

How to run a shell script placed in server through Javascript?

Avatar

Level 2

As a part of requirement, i need to run a shell script in Adobe campaign v7. Is it possible to call a shell script placed in server from javascript?? Or please provide any other alternatives.

The main function of this shell script is to transpose certain rows of file into column and then pass it to Adobe campaign. So without using Shell script, is there any other way to do transpose of row to column in Adobe campaign??

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

For operators with the createProcess right, it's execCommand() in workflow js.

Script should be executable by the neolane user.

You can also read the file in js with loadFile() or similar, then it's just iterating and setting fileT[col][row] = file[row][col];

Thanks,

-Jon

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

For operators with the createProcess right, it's execCommand() in workflow js.

Script should be executable by the neolane user.

You can also read the file in js with loadFile() or similar, then it's just iterating and setting fileT[col][row] = file[row][col];

Thanks,

-Jon