Help me make a cronjob/screen command please?
- by Josip Gòdly Zirdum
Hi guys I want to set up a cronjob on reboot to do this
cd /home/admin/vivalaminecraft.com && screen -d -m -S mcscreen && mono McMyAdmin.exe
The issue is when I execute this it seems to create the screen but doesn't do the mono McMyAdmin.exe in the screen...
Is there like a then command ?
so it does 1. then 2. then 3. ?
Could someone please help out :)
So I tried this:
so I did this:
@reboot screen -dmS minecraft
@reboot cd /home/admin/vivalaminecraft.com
@reboot mono McMyAdmin.exe
It still doesn't work. The screen is created but it doesn't have the mono execution in it
I put this in it
#!/bin/bash
screen -dmS minecraft;
cd /home/admin/vivalaminecraft.com;
mono McMyAdmin.exe;
is this correct?