- 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!
Check Point Proactive support
Free trial available for 90 Days!
As YOU DESERVE THE BEST SECURITY
Upgrade to our latest GA Jumbo
The 2022 MITRE Engenuity ATT&CK®
Evaluations Results Are In!
Now Available: SmartAwareness Security Training
Training Built to Educate and Engage
MITRE ATT&CK
Inside Check Point products!
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