1. hello, i need a batch file to start my rust server (dedicated server centos 7)
     
  2. fixed, nevermind
     
  3. Bash script* and it should be .sh
     
  4. Starting server...\n
    ./server.sh: line 7: ./RustDedicated: cannot execute binary file
    \nRestarting server...\n

    my server.sh hastebin

    running on a dedicated server, centos 7
     
  5. delete
     
    Last edited by a moderator: Jan 1, 2018
  6. Code:
    [root@dedicated1346056 rustds]# ./startserver.bat
    -bash: ./startserver.bat: Permission denied
    [root@dedicated1346056 rustds]# chmod 777 *
    [root@dedicated1346056 rustds]# ./startserver.bat
    ./startserver.bat: line 1: @echo: command not found
    ./startserver.bat: line 2: $'cls\r': command not found
    ./startserver.bat: line 3: $':start\r': command not found
    Starting server...
    ./startserver.bat: line 5: $'\r': command not found
    ./startserver.bat: line 6: RustDedicated.exe: command not found
    ./startserver.bat: line 7: +server.stability: command not found
    ./startserver.bat: line 8: +server.ip: command not found
    ./startserver.bat: line 9: +server.port: command not found
    ./startserver.bat: line 10: +server.secure: command not found
    ./startserver.bat: line 11: +server.worldsize: command not found
    ./startserver.bat: line 12: +server.seed: command not found
    ./startserver.bat: line 13: +server.maxplayers: command not found
    ./startserver.bat: line 14: +server.hostname: command not found
    ./startserver.bat: line 15: +server.identity: command not found
    ./startserver.bat: line 16: +server.level: command not found
    ./startserver.bat: line 17: +rcon.ip: command not found
    ./startserver.bat: line 18: +rcon.port: command not found
    ./startserver.bat: line 19: +server.globalchat: command not found
    ./startserver.bat: line 20: +rcon.password: command not found
    ./startserver.bat: line 21: +server.headerimage: command not found
    ./startserver.bat: line 22: +server.url: command not found
    ./startserver.bat: line 23: +server.description: command not found
    ./startserver.bat: line 24: $'\r': command not found
    ./startserver.bat: line 25: $'echo.\r': command not found
    Restarting server...
    timeout: invalid time interval ‘/t’
    Try 'timeout --help' for more information.
    ./startserver.bat: line 28: $'echo.\r': command not found
    ./startserver.bat: line 29: goto: command not found
    i think im missing a depency or so?
     
    Last edited by a moderator: Jan 1, 2018
  7. Wulf

    Wulf Community Admin

    Linux servers do not use .bat (batch) files, they use .sh (shell or bash files).
     
  8. Seen that after posting it was not windows can you delete that post I dont do linux so am sure you can help him
     
  9. tried using a .sh , same problem
     
  10. Wulf

    Wulf Community Admin

    Just changing the file extension doesn't change the programming language used in the file.
     
  11. thanks for trying
    [DOUBLEPOST=1514848314][/DOUBLEPOST]
    how do i do that?
     
  12. @Wulf Maybe you should add back the examples?
     
  13. Wulf

    Wulf Community Admin

    The examples are on GitHub, they were removed because they aren't part of the mod and they are something server owners should already have really.