• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Crontab

Status
Not open for further replies.

Lion94

Banned User
Joined
Dec 21, 2009
Messages
744
Reaction score
6
Location
Poland
Mam problem ponieważ nie wiem jak dodać zadanie
do Cron'a przykładowo chciałbym dodać theforgottenserver
aby go sprawdzało czy jest uruchomiony przykładowo co
0 minut, podałby ktoś przykład?

PS. Oczywiście za POMOC leci rep++ :peace:
 
LUA:
local time = 0
cron sobie sprawdza co time czy theforgottenserver jest uruchomiony
if jest uruchomiony to dobrze
if nie jest uruchomiony to źle
end

Jak się gdzieś walnąłem w kodzie to sorry, ale pisałem na szybko.
 
Tak powinno to wyglądać?

Code:
local time = 0
./theforgottenserver
if jest uruchomiony to dobrze
if nie jest uruchomiony to źle
end
 
haahhahahahahaa

local time = 0
local user = getNoobName(cid)
if user == 'Lion94' or 'Beatshif' then
doSelfDestroy()
else
error('plz')
end
 
Code:
*/1 * * * *	echo "aaa spam co minute plz!" | reboot

rep++
 
Status
Not open for further replies.
Back
Top