Raised This Month: $32 Target: $400
 8% 

Help guide Error Linux not Windows (Viewing this before you posted a new thread)


Post New Thread Reply   
 
Thread Tools Display Modes
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-08-2014 , 20:34   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #61

Quote:
Originally Posted by Mavrick4283 View Post
Code:
apt-get install cron
Sry I forgot that crontab is included in the cron package
"cron is already the newest version". Seems I have it.
404UserNotFound is offline
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 01-08-2014 , 20:34   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #62

Cron is installed normal but it is not a requirement.

I think for Ubuntu server they did a "core" load so very little extra is included by default.
__________________
Mavrick4283 is offline
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 01-08-2014 , 20:35   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #63

Do

Code:
whereis crontab
and post the output in code tags.
__________________

Last edited by Mavrick4283; 01-08-2014 at 20:35.
Mavrick4283 is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-08-2014 , 20:35   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #64

Quote:
Originally Posted by Mavrick4283 View Post
Do

[code]
whereis crontab
[code]

and post the output in code tags.
Code:
crontab: /usr/bin/crontab /etc/crontab /usr/bin/X11/crontab /usr/share/man/man5/crontab.5.gz /usr/share/man/man1/crontab.1.gz
404UserNotFound is offline
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 01-08-2014 , 20:36   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #65

Ok so try

Code:
/usr/bin/crontab -e
__________________
Mavrick4283 is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-08-2014 , 20:39   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #66

Quote:
Originally Posted by Mavrick4283 View Post
Ok so try

Code:
/usr/bin/crontab -e
Code:
no crontab for root - using an empty one
888
Just like it did when I did "crontab -e" or "sudo crontab -e".

When I sign into PuTTY using my normal account, it opens up just fine and allows me to make a new crontab file, and puts it in the /tmp/ location. I've had the thing sitting in /etc/cron.daily for the past week, because I thought the crontab would run it (the hlstats-awards.pl file) on a daily basis to keep the award-giving automatic, but it never worked and the date was stuck as August 30th, 2008 until I manually ran the file.

According to Kikotte, "more stuff" needs to be added before it can be run by cron.daily.
404UserNotFound is offline
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 01-08-2014 , 20:41   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #67

Ok STOP running shit as root (sudo) it will just open you up to attacks......

As the user that is running the deamon (scripts) do crontab -e and put these in it with the correct paths....

Code:
*/5 * * * * cd /home/user/scripts/ && ./run_hlstats start >/dev/null 2>&1
15 00 * * * cd /home/user/scripts/ && ./hlstats-awards.pl >/dev/null 2>&1

PS: I would like to point out that your are not signing in to "PuTTY" but using putty as your ssh client to login to the server.
__________________

Last edited by Mavrick4283; 01-08-2014 at 20:43.
Mavrick4283 is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-08-2014 , 20:45   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #68

Problem solved! Awards have given themselves out automatically now!

Last edited by 404UserNotFound; 01-09-2014 at 00:40.
404UserNotFound is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode