Running scripts in a docker

10 views
Skip to first unread message

Naveen Rajamannar

unread,
Mar 27, 2023, 11:05:03 AM3/27/23
to OWASP ZAP User Group
Hi I am trying to run some scripts with have print statements in the docker as shown in the image, how do I know if it is running and does the print statements show up in terminal? how to output statements.
Screenshot 2023-03-27 at 8.32.49 PM.png

Simon Bennetts

unread,
Mar 27, 2023, 11:52:33 AM3/27/23
to OWASP ZAP User Group
I just tried this:
  • echo "print('hi');" > test.sh
  • ./zap.sh -cmd -script test.js
The output was:

Found Java version 11.0.18
Available memory: 7851 MB
Using JVM args: -Xmx1962m
hi

So it looks like your script is not working.

Cheers,

Simon
Reply all
Reply to author
Forward
0 new messages