Help me make a cronjob/screen command please?

Posted by Josip Gòdly Zirdum on Pro Webmasters See other posts from Pro Webmasters or by Josip Gòdly Zirdum
Published on 2011-11-27T09:52:06Z Indexed on 2011/11/28 2:04 UTC
Read the original article Hit count: 295

Filed under:

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?

© Pro Webmasters or respective owner

Related posts about cron