- Products
- Learn
- Local User Groups
- Partners
- More
Check Point Jump-Start Online Training
Now Available on CheckMates for Beginners!
Why do Hackers Love IoT Devices so Much?
Join our TechTalk on Aug 17, at 5PM CET | 11AM EST
Welcome to Maestro Masters!
Talk to Masters, Engage with Masters, Be a Maestro Master!
ZTNA Buyer’s Guide
Zero Trust essentials for your most valuable assets
The SMB Cyber Master
Boost your knowledge on Quantum Spark SMB gateways!
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