Skip to main content
edit for people coming after solution
Source Link

I am setting up game servers via SSH and was wondering if I could execute one file that could be run with arguments (like Windows Batch files) without having to type it out so long.

What I want is a file that will execute

./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2 -tickrate 128

without me having to type all that out or copy it from a wiki page every time.

Just to clarify for people coming after this has been solved, my server is running CentOS.

I am setting up game servers via SSH and was wondering if I could execute one file that could be run with arguments (like Windows Batch files) without having to type it out so long.

What I want is a file that will execute

./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2 -tickrate 128

without me having to type all that out or copy it from a wiki page every time.

I am setting up game servers via SSH and was wondering if I could execute one file that could be run with arguments (like Windows Batch files) without having to type it out so long.

What I want is a file that will execute

./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2 -tickrate 128

without me having to type all that out or copy it from a wiki page every time.

Just to clarify for people coming after this has been solved, my server is running CentOS.

edited tags; edited title
Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k

Shell Script Similarscript to Windows Batch Filerun a program with arguments

I am setting up game servers via SSH and was wondering if I could execute one file that could be run with arguments (like Windows Batch files) without having to type it out so long.

What I want is a file that will execute

./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2 -tickrate 128

./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2 -tickrate 128

without me having to type all that out or copy it from a wiki page every time.

Thanks for the help.

I am setting up game servers via SSH and was wondering if I could execute one file that could be run with arguments (like Windows Batch files) without having to type it out so long.

What I want is a file that will execute

./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2 -tickrate 128

without me having to type all that out or copy it from a wiki page every time.

Thanks for the help.

I am setting up game servers via SSH and was wondering if I could execute one file that could be run with arguments (like Windows Batch files) without having to type it out so long.

What I want is a file that will execute

./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2 -tickrate 128

without me having to type all that out or copy it from a wiki page every time.

Source Link
Loading