I'm not sure if I understand your question. But there is no tutorial or best practices for scout in particular. What you certainly can do is connect to the osgi console and do all the osgi magic there is. And for that you would certainly find some tutorials (i.E ).
To your second question: You could export your server as a jetty-application. So you would get (for windows a exe) an application which, i think, could be registered as service in windows or be startet from a cron-job in unix.
If you are looking for a way to run the Scout client application from a command line in headless mode (i.e. without GUI), this can certainly be accomplished. Simply replace the main application class of your product by your own implemention of IApplication. If you don't open a GUI inside the start method, you are already running "headless". When there is a backend to be called, you probabely want to include some Subject.doAs() stuff. Have a look at AbstractSwingApplication to get the idea.