Sudo with Nodejs scripts?
Is it possible to run nodejs scripts in Max 8 with superuser privileges?
The short answer is to get a node server I cobbled together a couple of years to run! For some reason it only works if I use sudo. It uses sockets.io which seems to be the offending section, not sure why. Port 3000.
There are workarounds but I’m thinking I should probably rebuild it and try to actually understand it this time!
Heya, it's not possible to run node script with sudo, from Max. Unless there's a _very_ compelling reason to change that, it's not likely to be something we add.
Well how else am I going to get your bank details every time you stream Ed Sheehan on Spotify?
Lol that's a good point, hadn't considered that!
I'm attempting to use qlmanage via child_process and it appears that it needs a sudo command to display correctly. Not sure that's compelling but it would be nice to be able to prompt the user for a password...
+1
In my case I have a custom node server which includes web and socket serving, and interacts with Max. In order for it to open and use ports 80 and 443, it needs superuser permissions. I suppose I could detach the node server, and create a JSON client in Max, but I'd really like to keep the whole thing a Max-driven project.