
There is nothing in the logs, how would I run it manually?
Thank you,
Garabed Yegavian
-----Original Message-----
From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of otrs-request@otrs.org
Sent: Sunday, October 02, 2011 5:00 AM
To: otrs@otrs.org
Subject: otrs Digest, Vol 37, Issue 2
Send otrs mailing list submissions to
otrs@otrs.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.otrs.org/cgi-bin/listinfo/otrs
or, via email, send a message with subject or body 'help' to
otrs-request@otrs.org
You can reach the person managing the list at
otrs-owner@otrs.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of otrs digest..."
Today's Topics:
1. Re: Generic Agent (Ugo Bellavance)
----------------------------------------------------------------------
Message: 1
Date: Sat, 01 Oct 2011 23:09:48 -0400
From: Ugo Bellavance
I just reinstalled a fresh otrs and went step by step through the ubuntu directions. I installed webmin because I am a newbie to linux, and so I can see what is going on here in my system a little easier!
It appears as if I have no cron jobs under the otrs user
When I run crontab -l -u otrs I get nothing.
What do I need to do to get this working?
Did you check your logs? From what I can see on my ubuntu desktop, cron should log to: /var/log/syslog. If not, have you tried executing manually the job? ------------------------------ --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs End of otrs Digest, Vol 37, Issue 2 ***********************************

Hi Garabed, You'll need to make sure your crontab is working. Reading this document will help you understand how jobs are entered in the crontab. Log into your Ubuntu server command line as the OTRS user using telnet or ssh (I use putty which is great http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html ) Once logged in type the following command to edit your crontab; crontab -e This will bring up a text editor that allows you to add entries to your crontab which will be executed by the Cron daemon. The text editor used depends on what your default text editor is set to. I believe Nano is the default and works more or less like notepad in windows but you need to press Ctrl-o to save (writeOut) and Ctrl-x to exit. Add the following line to output the date and time every minute */1 * * * * date Save the file and exit the editor. Check if cron is running using the following command /etc/init.d/cron status If cron is not running start it with the command /etc/init.d/cron status If it is running it is no harm to restart it /etc/init.d/cron restart Cron will normally log to the syslog file. You will want to watch this log file to see that it runs your date command in the next minute. Use the following command to clear the screen and then watch the syslog file for new entries; clear; tail -n 30 -f /var/log/syslog Th above command clears the screen then shows the last 30 lines of the file /var/log/syslog and forces it to stay open. The next time cron runs you should see the log entry pop up at the bottom of the list. To exit the tail view of the syslog hit Ctrl-c Let us know what you get in your syslog for cron and that will confirm whether or not it is working correctly. Rory

Edit to my last mail:
If cron is not running start it with the command
/etc/init.d/cron start
Rory
On 4 October 2011 09:54, Rory
Hi Garabed,
You'll need to make sure your crontab is working. Reading this document will help you understand how jobs are entered in the crontab. Log into your Ubuntu server command line as the OTRS user using telnet or ssh (I use putty which is great http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html ) Once logged in type the following command to edit your crontab;
crontab -e
This will bring up a text editor that allows you to add entries to your crontab which will be executed by the Cron daemon. The text editor used depends on what your default text editor is set to. I believe Nano is the default and works more or less like notepad in windows but you need to press Ctrl-o to save (writeOut) and Ctrl-x to exit. Add the following line to output the date and time every minute
*/1 * * * * date
Save the file and exit the editor.
Check if cron is running using the following command
/etc/init.d/cron status
If cron is not running start it with the command
/etc/init.d/cron status
If it is running it is no harm to restart it
/etc/init.d/cron restart
Cron will normally log to the syslog file. You will want to watch this log file to see that it runs your date command in the next minute. Use the following command to clear the screen and then watch the syslog file for new entries;
clear; tail -n 30 -f /var/log/syslog
Th above command clears the screen then shows the last 30 lines of the file /var/log/syslog and forces it to stay open. The next time cron runs you should see the log entry pop up at the bottom of the list. To exit the tail view of the syslog hit Ctrl-c
Let us know what you get in your syslog for cron and that will confirm whether or not it is working correctly.
Rory
participants (2)
-
Garabed Yegavian
-
Rory