IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Wanted linux Startscript, root start a script for a user
frechdachs
post Apr 3 2012, 07:22 PM
Post #1


Group Icon Corporal

Group: Members

Joined: 13-January 12
From: 59821 Arnsberg
Member No.: 125813



QUELLTEXT
#!/bin/sh
    #created by Fr3chD8chs
    su server1
    echo "angemeldet als server1"
    wait 5
    cd "/home/server1/enemy-territory/"
    echo "ins Homevezeichnis gewechselt"
    wait 5
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
    exec ./etded.x86 "$@" +set net_ip xxx.xxx.xxx.xxx +set net_port 279xx +set fs_game nitmod +exec server.cfg &
    exit

    echo "Et-Server server1 gestartet"
    wait 5

    su server2
    echo "angemeldet als server2"
    wait 5
    cd "/home/server2/enemy-territory/"
    echo "ins Homevezeichnis gewechselt"
    wait 5
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
    exec ./etded.x86 "$@" +set net_ip xxx.xxx.xxx.xxx +set net_port 279xx +set fs_game nitmod +exec server.cfg &
    exit

    echo "Et-Server server2 gestartet"
    wait 5

    su server3
    echo "angemeldet als server3"
    wait 5
    cd "/home/server3/enemy-territory/"
    echo "ins Homevezeichnis gewechselt"
    wait 5
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
    exec ./etded.x86 "$@" +set net_ip xxx.xxx.xxx.xxx +set net_port 279xx +set fs_game nitmod +exec server.cfg &
    exit

    echo "Et-Server server3 gestartet"
    wait 5

    su server4
    echo "angemeldet als server4"
    wait 5
    cd "/home/server4/enemy-territory/"
    echo "ins Homevezeichnis gewechselt"
    wait 5
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
    exec ./etded.x86 "$@" +set net_ip xxx.xxx.xxx.xxx +set net_port 279xx +set fs_game nitmod +exec server.cfg &
    exit

    echo "Et-Server server4 gestartet"
    wait 5

    echo "Et-Server server4 gestartet"
    wait 5
    echo "Viel Spass beim Spielen"
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 14th November 2024 - 01:44 PM