How Can i use RbMod autostart ./rbmod.pl

Alligatoras

Administrator
Mar 31, 2016
2,570
12
2,857
381
You need to run in in a cron job

How to do that??? Simply follow the steps bellow :)
1) open an SSH client and connect as Root
2) if you don't have crontab then install it by using this command: sudo apt-get install cron
3) run this commad: sudo crontab -e
4) It will open a document. At the end type this: @reboot /path/of/the/file/rbmod.pl
5) Ctrl+O , Enter , Ctrl+X

This will run the bot on your VPS reboot
Wish that i helped you mate!!!
 
Last edited:

Alligatoras

Administrator
Mar 31, 2016
2,570
12
2,857
381
how can i make it start without when i out from putty off?

1) Open an SSH client and connect as root
2) If you don't have screen install it by using this command: sudo apt-get install screen
3) Open a new screen by using this command: screen
4) Press Enter and Enter (to start the new screen)
5) type the command to start the bot ./rbnod.pl (you need to be in the file's path - if no go there first)
6) This will start the bot in a screen!
7) Press Ctrl + A + D to close the screen (the bot will still work)
8) If you want to see the screen window use this command: screen -r

That's everything you need!!! Remember you set multiple screens if you want :)
 
Top