SA-MP Forums Archive
Command line ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: Command line ? (/showthread.php?tid=475638)



Command line ? - darreugne - 14.11.2013

Hi,

Does anyone knoes if we can make command line such "./samp03svr -p 7777 -s 50" where "p" will be the port and "s" slots in linux ?!

Thanks


Re: Command line ? - Sublime - 14.11.2013

It can be possible through bash scripts, although I've seen this concept somewhere.. just can't get it


Re: Command line ? - linuxthefish - 14.11.2013

I don't think it's possible, only NPC's can be run from command line as far as I've seen.

However, if you have the server executable in ~/server1/samp03svr and a server config and gamemode in ~/server2/ then you can type "cd ~/server2 ; nohup ./samp03svr &" to run the config and gamemode from ~/server2.