Web Hosting Talk







View Full Version : bash scripting - game server installer


BMurtagh
02-18-2003, 11:28 PM
hello, i'm coding a bash script with menu to install game server specific items. for example, menu option 1 = HLDS_L, menu option 2 = HLGuard, etc. i'm curious to see which way fellow scripters would recommend me doing from that point after the user picks the option from the menu. ie: does the installer run with command line arguments for the user to install it on, ip, port, map, etc. or does the script get input from the person running the script which is then stored in variables and the script goes on that. please let me know which way you would recommend.

luxline
02-19-2003, 07:18 AM
run the menu, use "case" to then start off the correc installer. I dont think anyone would get in any variables BEFORE the menu, unless those variables are always the same for each option.

BMurtagh
02-19-2003, 10:52 AM
no, i already have that. i'm saying after they pick like option 1 to install HLGuard, it would ask them for the user to install to, etc. thought about it last night and that seems the best way to do it.