Witam, mam postawiony serwer gry na shellu, jednak gdy po restarcie komputera musze go włączac od nowa, jaka jest komenda na to ? Słyszalem o crontab, szukalem o tym w googlach ale nie znalazlem odpowiedzi, z góry dziękuje.
Może startx :?: Spróbuj, może zadziała.
xauth: creating new authority file /home/yogil/.Xauthority
Using authority file /home/yogil/.Xauthority
Writing authority file /home/yogil/.Xauthority
Using authority file /home/yogil/.Xauthority
Writing authority file /home/yogil/.Xauthority
Fatal server error:
PAM authentication failed, cannot start X server.
Perhaps you do not have console ownership?
When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
Please report problems to xfree86@xfree86.org.
Pomoże mi ktoś ?
Jak edytuje Crontab to nie moge tego zapisać
może jednak nie? startx odpowiada za x serwer
Zief
Napisałem skrypciuszek };> który zrobi to co chcesz, dodasz go tylko do crona żeby co jakiś czas sprawdzał czy gra działa:
#!/bin/bash
psx=`ps x | grep -c X`
if ["$psx" = "0"]
then
echo -n "Odpalamy gre"
X
else
echo -n "Gra juz dziala..."
fi
Ty tylko w miejsce X wstaw nazwe procesu gry
Zmień tytuł na konkretny używając funkcji
Inaczej temat poleci do śmietnika.
poczytaj o screen
Ok działa, dzięki za pomoc
@UP
Czytałem o screenie.