• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

how to make sentienel crontab when using dashman ??

I have just moved a MN to a new server ,,,
I installed dashman then used it to install dash in root because dashman says it is not compatible with multi user

then I installed sentinel,synced and started the MN which is now running
but dashman says that "sentinel crontab" is not enabled ,,,

when i try to manually make the crontab using putty like this:-
step 9) create a crontab entry to wake sentinel every five minutes

crontab -e

Choose Joe as your editor. Add this line to the end of the file.

* * * * * cd /.dashcore/sentinel && ./venv/bin/python bin/sentinel.py 2>&1 >> sentinel-cron.log

I run into problems ,,
joe does not open and putty complains that there is no crontab for "root"

does anyone know how i should be making this crontab ??

cheers
 
yes and i think "888" refers to something that i typed in the first time i tried to make this crontab in root

root@MN1:~# cd .dashcore
root@MN1:~/.dashcore# cd sentinel
root@MN1:~/.dashcore/sentinel# crontab -e
no crontab for root - using an empty one
888
 
joe does not open

Oh really? Then use vi or ed. :p


Seriously now, some hosting companies don’t allow access to cron.

If this is not the case, maybe you should change your default editor.

env | grep EDI
EDITOR=ed
The above shows you use the ed editor.
to change it type:
export EDITOR=vim;

The crontab files are usally stored in /var/spool/cron/crontabs
So maybe you have just created an empty crontab, for the user root.
Type crontab -e again, and if your default editor is ed then change it to an easier (for you) editor.

But first of all ask your hosting company, whether they allow you to use cron.
 
Last edited:
forget all of that and just run
Code:
dashman install sentinel
:)

And, you really shouldn't be running things as root. Or logging in as root for that matter.
 
Ok So "dashman" should work inside a new user ??

I'll Reinstall


Dont reinstall. First try "crontab -l" instead of "crontab -e"

Example of correct crontab command line code (you have to substitute the variables to the appropriate directories of course):
https://github.com/moocowmoo/dashma...2fb3d9b27aaa13/lib/dashman_functions.sh#L1241
https://github.com/moocowmoo/dashma...32fb3d9b27aaa13/lib/dashman_functions.sh#L562

If this fails, then crontab is not your only installation error, and you need to reinstall.
 
Last edited:
Na I'm going to reinstall
I did know about not using root but for some reason got it in my head that "dashman" used root ,,,now that has been put straight i'll get things sorted the way they should

thanks guys
 
Back
Top