Reputation: 4427
Basically I have this server app I built in vc#, and for some reason when I run the task like this
mono oserver.exe &
It continues to run, but I can't connect to it. But if I just call it normally like this
mono oserver.exe
it works fine? Is there a better way to do this that works? Or maybe certain things that mono can't do in the background? Not sure. Any ideas?
Upvotes: 0
Views: 402
Reputation: 4427
Actually what I ended up finding out was that the working directory of the app changed as I moved the app from forground to background with fg and bg. I have no idea why this would happen, but making absolute paths in my app allowed my app to run in the backgound. I also used mono oserver & > /dev/null.
Upvotes: 0