I want to start my Program (Server.exe) as soon as the raspberry starts. My command now: mono Server.exe Everything is working, but I want to see the live output from the program anytime I want by logging into the Raspberry via SSH. When I log in now, I only see a blank command window obviously. My google results show I should use screen, but I don't know how. Thanks!
Redirect your output to a file and then look into the file if you want to see what happens
mono Server.exe > file.log
Then see what happens with
tail -f file.log
It would be sensible to make sure the file is emptied so it will not full up all of your disk space. You can use logrotate to take care of that. Put a configuration file into
/etc/logrotate.d/. There are examples how to do it.