I'm having a ton of trouble figuring this one out. I've written a listener program that just sits and waits for specific packets on a port on my system. I've tested it and know that it works so now I'm just trying to hook it up to starting when my system starts.
Naturally, I'd like for this to run indefinitely (or to have the process restart periodically). I'd also like it to run without having a user logged in.
I've tried using Task Scheduler and it does indeed start the task I've created upon startup without anyone logging in...but I get no response out of the program. Here's where I'm confused. In the log of the tasks it says the task finished after ~3 seconds. If I try to run the task manually, I get the same thing. The task finishes after only a couple of seconds. Shouldn't the task not end at all? My program runs until something manually kills it, so shouldn't the task not exit out until my program is done, or is it somehow forking the process? If it is, why don't I get any response out of it?
[x] run with highest privileges
in the task.