- Products
- Learn
- Local User Groups
- Partners
- More
CheckMates Fifth Birthday
Celebrate with Us!
days
hours
minutes
seconds
Join the CHECKMATES Everywhere Competition
Submit your picture to win!
Harmony Mobile 4:
New Version, New Capabilities
As YOU DESERVE THE BEST SECURITY
Upgrade to our latest GA Jumbo
CheckFlix!
All Videos In One Space
I'm learning how to correctly use the 'run-script' API call, in addition to using the cpauto 'run_script' wrapper. I've had success with sending simple one-line bash commands per the documented example, but haven't yet figured out the best way to pass in multiline or clish commands to run-script. Does anyone have working examples to share? Thanks!
I'm using these 2 API's
1. put-file : Check Point - Management API reference
2. run-script Check Point - Management API reference
I'm using these 2 API's
1. put-file : Check Point - Management API reference
2. run-script Check Point - Management API reference
That makes sense, thanks. I'm assuming you are pushing out a shell script via 'put-file' and then executing it with 'run-script'? How do you manage cleanup of the scripts after? Seems like a good idea, and I'll check into that more!
yes, I'm pushing out a shell script via 'put-file' and then executing it with 'run-script'.
How do you manage cleanup of the scripts after? run-script and the command to delete the file 'rm <filename>'
You can see this post about full flow of run-script : Can we get the routes from R80?
About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY