Take the 2-minute tour ×

Well, let's say we have a application that runs in a console and is for both windows and linux. On windows when you double click the application a command window opens and the application runs, you see errors warnings etc in the console window and everything it does cout/print/whatever. On linux however when I run the terminal and do ./application_name I don't see any messages/couts/prints? How can I see them? It's really important for debugging purposes.

It's for SA-MP server.

share|improve this question
There's no way of knowing until you tell us what program you're trying to run. –  Michael Hampton Aug 1 '12 at 22:27
the program is samp03svr from sa-mp.com –  user144773 Aug 1 '12 at 22:34
wow really nice just because I need to know something I do not know i got immeadiately downvoted... nice 'summer of love'... :( –  user144773 Aug 1 '12 at 22:35
Sorry, it will not let me remove the downvote until you edit your post. Strange but true. –  Michael Hampton Aug 1 '12 at 22:40
Your question was just missing a very important detail, since what you describe is by no means default behavior. That'd explain the down vote, because it would have been impossible to give you an answer. Try not to take it personally :) –  slhck Aug 1 '12 at 23:20

2 Answers 2

up vote 3 down vote accepted

The documentation says that the Linux version of the SA-MP server does not normally output anything; only in case of errors will there be output.

share|improve this answer
and there is no way around it :x okay then I'll have to stick to running the server, closing it, opening the log file, and rerunning debug ;x –  user144773 Aug 1 '12 at 22:43

I know this is a relatively old question, but you can use the following linux command to view the server log:

tail -f server_log.txt

The -f parameter indicates that you want to 'follow' the file's growth. You can stop following the file by pressing CTRL+C.

(This answer assumes that you're cd'd to your SA-MP server's root directory)

If you have a separate terminal open with this tail command being run, it will track the log between restarts/closes/crashes.

share|improve this answer

Your Answer

