What's new

Solved CGI bash script supported?

kstamand

Regular Contributor
Exploring options for my modsyslogui addon and wondering if cgi bash scripts, in say /www/user/myaddon/my.cgi, are supported via the routers web server. If yes, is there a working example I can be pointed to for reference or any pointers to help me on my way?
 
Figured out a solution that didn't require creating my own CGI. Instead, I will take advantage of the native apply.cgi hook to trigger service-event to handler. And I add a single line to the service-event file to call my script handler - because that script handler will get called anytime a service-event fires, the first that script does is to check for an NVRAM setting related to my addon. If that is missing, it exits immediately
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Back
Top