Hi everyone. Im working on windows10. I want to write a c++ code for my linux service.
In my code, i want to use some linux commands.
Here is it, find /var/log -name "*.log" -type f -mtime +30
How can i do it? Im looking for system function but i failed.
Also i want to ask, how can i run my windows code on my linux service.
Im a newbei. If i ask stupid questions sorry for it.
Thank you for all.
But even after you've written your daemon, you still need to plug it into the hosts service manager. Most linux distro use systemd, then there's also openrc for everything else. https://systemd.io/ https://en.wikipedia.org/wiki/OpenRC
Don't despair, writing code to plug into the Window SCM is not fun either.