开发者

Ubuntu background task sockets running on Mono

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?


Did you mean

mono oserver.exe & some-another-command

?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜