Cronjob läuft nicht auf OpenSuse 11.2

Hilfe zu Znuny Problemen aller Art
Locked
startknopf
Znuny newbie
Posts: 15
Joined: 23 Nov 2009, 09:06
Znuny Version: 2.4.5

Cronjob läuft nicht auf OpenSuse 11.2

Post by startknopf »

Moin,

Ich versuche nun schon seid Tagen die Cronjobs zum laufen zu bekommen aber es geht einfach nicht.

Ich habe OpenSuse 11.2 auf Betriebssystem und habe mir anschließend die RPM Datei heruntergeladen. Dann habe ich in OpenSuse 11.2 die fehlenden Pakete installiert sowie alle benötigten Perl Module. Anschließend habe ich die OTRS RPM Datei installiert und die Datenbank über die Weboberfläche installiert. Danach konnte ich ohne Probleme auf die Oberfläche von OTRS nach eingabe der Login Daten zugreifen. Dann habe ich die Emailadressen, Benutzer und Gruppen, Ques und Auto Antworten eingeben und unter Postmaster Pop3 die Postfächer angegeben.

Ich habe dann eine Email an die Adresse geschrieben und gewartet, das per Cronjob das Postfach abgerufen wird bestimmt 30min, aber es tat sich nichts. Ich bin dann auf der Console in den Cronjob Ordner und habe die Zeit von 10 Minuten auf 2 Minuten geändert. Habe dann Cron und OTRS neu gestartet. Nichts ist geschehen und ich konnte im logfile des Mailsservers keinen Eintrag über einen connect von OTRS feststellen.

Fehlermeldung bei neustart von OTRS:

Code: Select all

helpdesk:/opt/otrs/var/log # /etc/init.d/otrs restart
Shutting down OTRS
 Disable /opt/otrs/bin/PostMaster.pl ... done.
 Shutting down cronjobs ... failed!  <--------------------------------------------------hier
Starting OTRS
 Checking Apache ... done.
 Checking MySQL ... done.
 Checking database connect... (It looks Ok!).
 Enable /opt/otrs/bin/PostMaster.pl ... done.
 Checking otrs spool dir...  done.
 Creating cronjobs (source /opt/otrs/var/cron/*) ... done.

Bei klicken auf ausführen hat es funktioniert und die Mail landetet auf dem Dashboard und in der richtigen Que. Ein ausführen von crontab -l -u otrs zeigte mir alle installierten cron die "angeblich" ausgeführt würden, aber dem ist ja nicht so.

Ich habe hier im Forum nun schon alle Threads durchgelesen egal ob Windows oder andere LinuxSysteme und auch Goggle half mir nicht weiter.

Weiß hier vielleicht noch jemand Rat?

Gruß

Christian
Testphase | OTRS 2.4.5 mit OpenSuse 11.2 auf ESXi 4
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Cronjob läuft nicht auf OpenSuse 11.2

Post by ferrosti »

Ist der otrs-user in der passwd bzw. shadow eingetragen?
Hat der User überhaupt die Berechtigung cron-jobs auszuführen?

Wenn Du einen pseudojob dort einträgst, ohne Ausgabe nach /dev/null sondern in eine Datei, was passiert dann?

Was ist die Ausgabe bei einem 'rcotrs restart-force' ?
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
startknopf
Znuny newbie
Posts: 15
Joined: 23 Nov 2009, 09:06
Znuny Version: 2.4.5

Cronjob läuft nicht auf OpenSuse 11.2

Post by startknopf »

ausgabe von rcotrs restart-force

Code: Select all

Shutting down OTRS
 Disable /opt/otrs/bin/PostMaster.pl ... done.
 Shutting down cronjobs ... failed!
 Cleaning up session and log cache ... done.
Shutting down OTRS (completely)
 Shutting down Apache ... done.
 Shutting down MySQL ... done.
                                                                                                                 done
Starting OTRS (completely)
 Starting Apache ... done.
 Starting MySQL ... done.
Starting OTRS
 Checking Apache ... done.
 Checking MySQL ... done.
 Checking database connect... (It looks Ok!).
 Enable /opt/otrs/bin/PostMaster.pl ... done.
 Checking otrs spool dir...  done.
 Creating cronjobs (source /opt/otrs/var/cron/*) ... done.

und in der /etc/passwd steht der OTRS Benutzer drin:

Code: Select all

otrs:x:1001:65534:OTRS System User:/opt/otrs/:/bin/false
Testphase | OTRS 2.4.5 mit OpenSuse 11.2 auf ESXi 4
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Cronjob läuft nicht auf OpenSuse 11.2

Post by ferrosti »

Ich bin der Meinung den selben Fehler hatten wir auch, als wir den Server umgezogen haben. Leider ist unser Linux Admin gerade nicht verfügbar und ich habe nicht so die tiefgehenden Kenntnisse.

Das war irgendeine Sache, wo ich im Leben nicht drauf gekommen wäre, aber das will ja nichts heißen...

Probier erstmal, dass die Einträge in der /etc/shadow auch richtig sind und ich bin mir nicht sicher ob das sowas blödes wie der login-prompt war, dass er den von /bin/false auf /bin/bash gestellt hat. Kann das gerade nicht prüfen.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
startknopf
Znuny newbie
Posts: 15
Joined: 23 Nov 2009, 09:06
Znuny Version: 2.4.5

Cronjob läuft nicht auf OpenSuse 11.2

Post by startknopf »

wäre nett wenn du ihn dann einmal fragen würdest und noch mal bescheid gibts. Ich hab das mit /bin/bash mal geändert geht aber nach wie vor noch nicht.

Danke
Testphase | OTRS 2.4.5 mit OpenSuse 11.2 auf ESXi 4
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Cronjob läuft nicht auf OpenSuse 11.2

Post by ferrosti »

Kann es sein, dass Du die crontab im System selbst editiert hast und nicht über "crontab -e -u otrs" ?

Mach mal ein "crontab -r -u otrs". Dann geh in das %OTRSHOME%/bin Verzeichnis und installier die crontab mittels des "Cron.sh" scriptes neu. Starte vorsichtshalber otrs neu mittels "rcotrs restart-force". Gibt es immer noch Fehlermeldungen?

Sonst wieder mit dem Befehl oben die crontab für otrs löschen und einen Dummy-Eintrag machen. Du solltest die Fehlernachrichten aus der crontab per "MAILTO="..."" an eine Adresse schicken, bzw an root. Alternativ kannst Du auch mal prüfen, ob der otrs User auf /var/spool/cron und seine Datei überhaupt zugreifen darf.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
startknopf
Znuny newbie
Posts: 15
Joined: 23 Nov 2009, 09:06
Znuny Version: 2.4.5

Cronjob läuft nicht auf OpenSuse 11.2

Post by startknopf »

Hallo,

ja in der Tat habe ich diese per Hand geändert. Im Verzeichniss /opt/otrs/var/cron habe ich die Datei "postmaster_mailbox" geändert und den Eintrag von 10 Minuten auf 2 Minute verkleinert.

Code: Select all

# fetch emails every 2 minutes
*/2 * * * *    $HOME/bin/PostMasterMailbox.pl >> /dev/null
Die Cron.sh habe ich dann als "root" mit

Code: Select all

./Cron.sh start otrs
gestartet.

Nun sehe ich in der crontab des otrs benutzers die angelegten Croneinträge

Code: Select all

crontab -l -u otrs
Beim Neustart von OTRS kommen folgende Einträge:

Code: Select all

rcotrs restart-force

Shutting down OTRS
 Disable /opt/otrs/bin/PostMaster.pl ... done.
 Shutting down cronjobs ... failed!
 Cleaning up session and log cache ... done.
Shutting down OTRS (completely)
 Shutting down Apache ... done.
 Shutting down MySQL ... done.
                                                                                                                                                    done
Starting OTRS (completely)
 Starting Apache ... done.
 Starting MySQL ... done.
Starting OTRS
 Checking Apache ... done.
 Checking MySQL ... done.
 Checking database connect... (It looks Ok!).
 Enable /opt/otrs/bin/PostMaster.pl ... done.
 Checking otrs spool dir...  done.
 Creating cronjobs (source /opt/otrs/var/cron/*) ... done.
Die Rechte unter /var/spool/cron/ sind:

Code: Select all

drwxr-xr-x 2 root root 4096 Nov 30 16:15 lastrun
drwx------ 2 root root 4096 Nov 30 16:22 tabs
Da könnte der Hund begraben sein oder?

Gruß

Christian
Testphase | OTRS 2.4.5 mit OpenSuse 11.2 auf ESXi 4
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Cronjob läuft nicht auf OpenSuse 11.2

Post by ferrosti »

Nein, damit hast Du nicht die crontab per Hand verändert, sondern die crontab Vorlagen von OTRS. Das ist ein Unterschied. Die crontab per Hand ändern wäre, wenn Du diese unter /var/spool/cron geändert hättest.

Die Datei
/var/spool/cron/tabs/otrs
sollte mit 664 berechtigt sein (rw, r, r).
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
startknopf
Znuny newbie
Posts: 15
Joined: 23 Nov 2009, 09:06
Znuny Version: 2.4.5

Cronjob läuft nicht auf OpenSuse 11.2

Post by startknopf »

Hallo,

ja ist sie

Code: Select all

-rw-r--r-- 1 root root 5462 Nov 30 16:22 otrs
Testphase | OTRS 2.4.5 mit OpenSuse 11.2 auf ESXi 4
startknopf
Znuny newbie
Posts: 15
Joined: 23 Nov 2009, 09:06
Znuny Version: 2.4.5

Cronjob läuft nicht auf OpenSuse 11.2

Post by startknopf »

Hallo,

ich habe bisher all deine Vorschläge abgearbeitet bis auf das Dummy File anlegen. Was meinst du damit genau?

Desweiteren kann ich den User otrs über die Shell nicht wechseln "su otrs" obwohl ich in den "/etc/passwd" von false auf bash gewechselt habe.

Was könnte man noch tun?

Gruß

Christian
Testphase | OTRS 2.4.5 mit OpenSuse 11.2 auf ESXi 4
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Cronjob läuft nicht auf OpenSuse 11.2

Post by ferrosti »

Mit Dummy Eintrag meine ich, dass Du einfach einen Befehl in die crontab schreiben solltest (per 'crontab -e -u otrs'), der auf alle Fälle funktioneren müsste. Zudem solltest Du die MAILTO Adresse setzen, um die Ausgabe ansehen zu können.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
startknopf
Znuny newbie
Posts: 15
Joined: 23 Nov 2009, 09:06
Znuny Version: 2.4.5

Cronjob läuft nicht auf OpenSuse 11.2

Post by startknopf »

Also die MAILTO habe ich gesetzt aber ich habe bis jetzt noch keine Email erhalten.

Sieht fasst so aus als ob der Cron überhaput nicht läuft?
Testphase | OTRS 2.4.5 mit OpenSuse 11.2 auf ESXi 4
startknopf
Znuny newbie
Posts: 15
Joined: 23 Nov 2009, 09:06
Znuny Version: 2.4.5

Cronjob läuft nicht auf OpenSuse 11.2

Post by startknopf »

Was hat es vorallem mit dieser Zeile auf sich?

Code: Select all

Shutting down cronjobs ... failed!
Testphase | OTRS 2.4.5 mit OpenSuse 11.2 auf ESXi 4
startknopf
Znuny newbie
Posts: 15
Joined: 23 Nov 2009, 09:06
Znuny Version: 2.4.5

Cronjob läuft nicht auf OpenSuse 11.2

Post by startknopf »

problem wurde gelöst.

das Verzeichniss /opt/otrs war mit den falschen Dateirechten ausgestattet. Warum auch immer war es mit root:root.

Dies habe ich geändert in otrs:nogroup und nun funktionieren die cronjob.

Gruß

Christian
Testphase | OTRS 2.4.5 mit OpenSuse 11.2 auf ESXi 4
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Cronjob läuft nicht auf OpenSuse 11.2

Post by ferrosti »

Sag nicht, Du hast die Oberfläche noch nicht getestet oder führst Apache mit root Rechten aus?
Das wäre sonst definitiv aufgefallen.

Die Berechtigungen solltest Du über das script $OTRSHOME/bin/SetPermissions.sh neu setzen, damit diese auch für alle Dateien gelten.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
david
Znuny newbie
Posts: 15
Joined: 27 Jan 2010, 08:52
Znuny Version: 2.4.6

Cronjob läuft nicht auf OpenSuse 11.2

Post by david »

hallo,

welche command muss man ausführen um die berechtigungen von dem folder zu ändern?


lg

und vielen dank im voraus david
OTRS 2.4.6
openSuSE 11.2 auf ESX 3.0.3
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Cronjob läuft nicht auf OpenSuse 11.2

Post by jojo »

ferrosti wrote: Die Berechtigungen solltest Du über das script $OTRSHOME/bin/SetPermissions.sh neu setzen, damit diese auch für alle Dateien gelten.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
david
Znuny newbie
Posts: 15
Joined: 27 Jan 2010, 08:52
Znuny Version: 2.4.6

Cronjob läuft nicht auf OpenSuse 11.2

Post by david »

das habe ich jetzt gemacht aber das funktioniert leider nicht.

jetzt funktioniert das web interface auch nichtmehr

:/opt/otrs/Kernel # /opt/otrs/bin/SetPermissions.sh /opt/otrs otrs wwwrun
SetPermissions.sh <$Revision: 1.35 $> - set OTRS file permissions
Copyright (C) 2001-2009 xxx, http://otrs.org/\n
bin/SetPermissions.pl <1.10.2.1> - set OTRS file permissions
Copyright (C) 2001-2009 xxx, http://otrs.org/
Setting permissions on /opt/otrs
Setting permissions on /opt/otrs/var
Setting permissions on /opt/otrs/bin/*
Setting permissions on /opt/otrs/scripts/*.pl
Setting permissions on Kernel/Config.pm
Setting owner rw and group ro permissions on /opt/otrs/
Setting owner rw and group ro permissions on /opt/otrs/.procmailrc
Setting owner rw and group ro permissions on /opt/otrs/.fetchmailrc
OTRS 2.4.6
openSuSE 11.2 auf ESX 3.0.3
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Cronjob läuft nicht auf OpenSuse 11.2

Post by jojo »

Dann ist Dein System wohl nicht korrekt aufgesetzt...
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
david
Znuny newbie
Posts: 15
Joined: 27 Jan 2010, 08:52
Znuny Version: 2.4.6

Cronjob läuft nicht auf OpenSuse 11.2

Post by david »

hallo,

nachdem ich folgendes command "chown otrs:www -R *" ausgeführt habe funktioniert die web interface wieder.

sobald ich aber wieder "SetPermissions.sh /opt/otrs otrs wwwrun" funktioniert die web interface nicht und die cron jobs auch nicht

ich bekomme noch immer folgende fehler meldung:

rcotrs restart
Shutting down OTRS
Disable /opt/otrs/bin/PostMaster.pl ... done.
Shutting down cronjobs ... failed! -----------------------------------------------das hier
Starting OTRS
Checking Apache ... done.
Disabled: database check!
Checking database connect... (It looks Ok!).
Enable /opt/otrs/bin/PostMaster.pl ... done.
Checking otrs spool dir... done.
Creating cronjobs (source /opt/otrs/var/cron/*) ... done.

-->> http://test/otrs/index.pl <<--
done
S
OTRS 2.4.6
openSuSE 11.2 auf ESX 3.0.3
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Cronjob läuft nicht auf OpenSuse 11.2

Post by jojo »

www und wwwrun sind schonmal unterschiedliche User, dann ist es kein Wunder das das Webinterface nicht mehr lief.

was sagt denn crontab -l -u otrs ?

was ein ls -la /opt/otrs/var/cron ?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Cronjob läuft nicht auf OpenSuse 11.2

Post by ferrosti »

SetPermissions.sh { Homedirectory des OTRS Benutzers } { OTRS Benutzer } { Webserver Benutzer } [ Gruppe des OTRS Benutzers ] [ Gruppe des Webserver Benutzers ]

@jojo
www ist die "normale" Gruppe des wwwrun, zumindest in SuSE Systemen. Der chown Befehl und die SetPermissions müssten also eigentlich korrekt sein.

Ist wwwrun Mitglied der Gruppe www?

Vor dem restart solltest Du prüfen, ob es für den User otrs auch eine crontab gibt (crontab -l -u otrs) und ob Du nicht aus Versehen den cron Daemon nicht gestartet hast (rccrond). Du könntest auch noch einen "rcotrs restart-force" machen, dann kann man sehen ob apache oder mysql noch was zu sagen haben.

Mach bitte mal für beides eine Ausgabe und poste diese hier.
Dann mach bitte nach dem chown Befehl und nach dem SetPermissions.sh jeweils ein "ls -la" im OTRS-ROOT und im Kernel Unterverzeichnis.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Cronjob läuft nicht auf OpenSuse 11.2

Post by ferrosti »

*argh*
Zwei Doofe ein Gedanke...

Hätte Deinen Post zu Ende lesen sollen.
Sorry @jojo
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
david
Znuny newbie
Posts: 15
Joined: 27 Jan 2010, 08:52
Znuny Version: 2.4.6

Cronjob läuft nicht auf OpenSuse 11.2

Post by david »

crontab -l -u otrs
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/opt/otrs/var/tmp/cron installed on Wed Jan 27 19:11:24 2010)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
# --
# cron/aaa_base - base crontab package
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: aaa_base.dist,v 1.7 2009/02/16 20:35:25 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# Who gets the cron emails?
MAILTO="root@localhost"
# --
# cron/fetchmail - fetchmail cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: fetchmail.dist,v 1.10 2009/02/16 20:53:10 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# fetch every 5 minutes emails via fetchmail
#*/5 * * * * [ -x /usr/bin/fetchmail ] && /usr/bin/fetchmail -a >> /dev/null
#*/5 * * * * /usr/bin/fetchmail -a --ssl >> /dev/null
# --
# cron/generic_agent - GenericAgent.pl cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: generic_agent.dist,v 1.12 2009/02/16 20:53:10 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# start generic agent every 20 minutes
*/20 * * * * $HOME/bin/GenericAgent.pl >> /dev/null

# example to execute GenericAgent.pl on 23:00 with
# Kernel::Config::GenericAgentMove job file
#0 23 * * * $HOME/bin/GenericAgent.pl -c "Kernel::Config::GenericAgentMove" >> /dev/null
# --
# cron/generic_agent - GenericAgent.pl cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: generic_agent-database.dist,v 1.8 2009/02/16 20:55:11 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# start generic agent every 10 minutes
*/10 * * * * $HOME/bin/GenericAgent.pl -c db >> /dev/null
# --
# cron/pending_jobs - pending_jobs cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: pending_jobs.dist,v 1.11 2009/02/16 20:55:11 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# check every 120 min the pending jobs
45 */2 * * * $HOME/bin/PendingJobs.pl >> /dev/null
# --
# cron/postmaster - postmaster cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: postmaster.dist,v 1.9 2009/02/16 20:55:11 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# check daily the spool directory of OTRS
#10 0 * * * * [ -e /etc/init.d/otrs ] && /etc/init.d/otrs cleanup >> /dev/null; [ -e /etc/rc.d/init.d/otrs ] && /etc/rc.d/init.d/otrs cleanup >> /dev/null
10 0 * * * $HOME/bin/otrs.cleanup >> /dev/null
# --
# cron/postmaster_mailbox - postmaster_mailbox cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: postmaster_mailbox.dist,v 1.2 2009/02/16 20:55:11 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# fetch emails every 10 minutes
*/10 * * * * $HOME/bin/PostMasterMailbox.pl >> /dev/null
# --
# cron/rebuild_ticket_index - rebuild ticket index for OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: rebuild_ticket_index.dist,v 1.9 2009/02/16 20:55:11 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# just every day
01 01 * * * $HOME/bin/RebuildTicketIndex.pl >> /dev/null
# --
# cron/session - delete old session ids of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: session.dist,v 1.11 2009/02/16 20:55:11 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# delete every 120 minutes old/idle session ids
55 */2 * * * $HOME/bin/DeleteSessionIDs.pl --expired >> /dev/null
# --
# cron/unlock - unlock old locked ticket of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: unlock.dist,v 1.10 2009/02/16 20:55:11 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# unlock every hour old locked tickets
35 * * * * $HOME/bin/UnlockTickets.pl --timeout >> /dev/null


ls -la /opt/otrs/var/cron
total 48
drwxrwxr-x 2 otrs nogroup 4096 2010-01-26 11:42 .
drwxrwxr-x 12 otrs nogroup 4096 2010-01-26 11:43 ..
-rw-rw-r-- 1 otrs nogroup 426 2010-01-11 21:09 aaa_base
-rw-rw-r-- 1 otrs nogroup 562 2010-01-11 21:09 fetchmail
-rw-rw-r-- 1 otrs nogroup 676 2010-01-11 21:09 generic_agent
-rw-rw-r-- 1 otrs nogroup 505 2010-01-11 21:09 generic_agent-database
-rw-rw-r-- 1 otrs nogroup 485 2010-01-11 21:09 pending_jobs
-rw-rw-r-- 1 otrs nogroup 630 2010-01-11 21:09 postmaster
-rw-rw-r-- 1 otrs nogroup 501 2010-01-11 21:09 postmaster_mailbox
-rw-rw-r-- 1 otrs nogroup 481 2010-01-11 21:09 rebuild_ticket_index
-rw-rw-r-- 1 otrs nogroup 504 2010-01-11 21:09 session
-rw-rw-r-- 1 otrs nogroup 488 2010-01-11 21:09 unlock
OTRS 2.4.6
openSuSE 11.2 auf ESX 3.0.3
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Cronjob läuft nicht auf OpenSuse 11.2

Post by jojo »

Cronjobs laufen also...
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Cronjob läuft nicht auf OpenSuse 11.2

Post by ferrosti »

Die Gruppe im $OTRS-HOME/var/cron ist bei mir allerdings auf 'www' gesetzt.

Im rc script wird für restart einfach ein stop und ein start im Batch durchgeführt. Der Fehler bei Dir taucht im stop auf.
Schau mal bitte nach, ob im /etc/sysconfig/otrs für den $OTRS_CRON_USER der Wert " -u otrs " gesetzt ist.

Wenn ein "type -a crontab" UND ein "crontab -u otrs -l" erfolgreich ist, dann sollte der Fehler beim rcotrs restart für die crontab eigentlich nicht auftreten.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
david
Znuny newbie
Posts: 15
Joined: 27 Jan 2010, 08:52
Znuny Version: 2.4.6

Cronjob läuft nicht auf OpenSuse 11.2

Post by david »

hallo,

ja der $OTRS_CRON_USER Wert ist auf " -u otrs " gesetzt.

ausgabe von type -a crontab ist crontab is /usr/bin/crontab
ausgabe von crontab -u otrs -l ist die selbe wie die die ich vorher gepostet habe.

lg

david
OTRS 2.4.6
openSuSE 11.2 auf ESX 3.0.3
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Cronjob läuft nicht auf OpenSuse 11.2

Post by ferrosti »

Und nochmal:
Ist der user wwwrun Mitglied der Gruppe www?

Code: Select all

yast users
Im Filter die Systemgruppen mit anzeigen lassen und nicht nur lokale Benutzer.

Hast Du überhaupt eine SuSE Distri?

Dann bitte prüfen, ob otrs eine shell für die Anmeldung hat:

Code: Select all

cat /etc/passwd|grep otrs
Hinten sollte /bin/bash stehen. Wenn das nicht so ist, dann für diesen Fall einmal kurz ändern und zum Schluss wieder auf /bin/false setzen.

Userkennung nach otrs ändern:

Code: Select all

su - otrs
In das Verzeichnis wechseln, wo es die Probleme gibt...
Beliebige Datei anlegen:

Code: Select all

touch file.tst
Funktioniert das?
Wenn nicht, funktioniert das Lesen von Dateien in dem Ordner?

Zurück zum root user kommst Du mit 'exit'.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
david
Znuny newbie
Posts: 15
Joined: 27 Jan 2010, 08:52
Znuny Version: 2.4.6

Cronjob läuft nicht auf OpenSuse 11.2

Post by david »

ja der user wwwrun ist member der gruppe www

ich benutze opensuse 11.2

cat /etc/passwd|grep otrs
otrs:x:1001:65534:OTRS user:/opt/otrs/:/bin/bash

su - otrs
otrs@SVRTICKET00PROD:~>


/opt/otrs/> touch file.tst
touch: cannot touch `file.tst': Permission denied

/opt/otrs/> cat README
# --
# README - readme file of OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: README,v 1.35.2.2 2009/10/30 10:51:07 mb Exp $
# --
lesen funktioniert.
OTRS 2.4.6
openSuSE 11.2 auf ESX 3.0.3
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Cronjob läuft nicht auf OpenSuse 11.2

Post by ferrosti »

Wenn ich mir das so genau anschaue, dann funktionieren die cronjobs bei Dir doch...
Das einzige wo otrs meckert, ist beim Stoppen, bzw. Entfernen der Crontab für OTRS. Das wiederum würde ich auf einen Fehler im Script schieben.

Ich schätze, dass das RC Script die Rückgabe aus dem "type -a crontab" falsch interpretiert. Dafür kenne ich mich in der bash Programmierung aber nicht gut genug aus.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
Igor1312
Znuny newbie
Posts: 34
Joined: 24 Feb 2010, 17:18
Znuny Version: 2.2.6

Cronjob läuft nicht auf OpenSuse 11.2

Post by Igor1312 »

Hi ferrosti,

woran erkennst du (an diesen Postings hier), dass die cronjobs laufen?

Ich habe das selbe Problem wie der Themanstarter. otrs 2.4.7 auf openSuse funktioniert bestens.
Nur die Cronjobs laufen nicht :(
PostMasterMailbox.pl per Hand gestartet funktioniert.
Alles andere, was hier geschrieben wurde, kann ich so unterschreiben. Außer "su - otrs" meldet "su: incorrect password", weshalb ich diesen Test nicht machen kann.

@david:
Läuft das denn nun bei dir? Und was hast du gemacht?

Tschö,
Igor
Otrs 2.4.7 auf openSuse 11.2 in VirtualBox unter Windows Server 2003
Igor1312
Znuny newbie
Posts: 34
Joined: 24 Feb 2010, 17:18
Znuny Version: 2.2.6

Cronjob läuft nicht auf OpenSuse 11.2

Post by Igor1312 »

Bei mir lags daran, dass der otrs User ein Passwort hatte. Nachdem das gelöscht war, liefen auch die Cronjobs.
Weiter habe ich den otrs User in die gleiche Gruppe gesetzt, wie der User, unter dem Apache läuft (hier wwwrun.www).

Tschö,
Igor
Otrs 2.4.7 auf openSuse 11.2 in VirtualBox unter Windows Server 2003
stanhale
Znuny newbie
Posts: 16
Joined: 08 Feb 2010, 12:09
Znuny Version: 2.4.6

Cronjob läuft nicht auf OpenSuse 11.2

Post by stanhale »

Hallo,

ich hatte nach der Migration auf eine neue Maschine mit Open SuSe 11.2 auch dieses Problem.
Scheinbar dauert der Start des cron-daemons zu lange.
Die Lösung war bei mir, im OTRS-Startscript (/etc/init.d/otrs) im Startbereich ein "sleep 15" zu ergänzen, ab da hatte ich kein Problem mehr.
-----------------------------------------------------------------------------------------------------------------------
Produktivsystem: openSUSE 11.2 32 Bit || OTRS 3.1.5 || MySQL 5 || Apache2 auf VMWare ESXI 5.0
garwen
Znuny expert
Posts: 260
Joined: 03 Feb 2009, 16:51
Znuny Version: 2.4.7

Re: Cronjob läuft nicht auf OpenSuse 11.2

Post by garwen »

Ich hab das exakt gleiche Problem auch unter openSuSE 11.2:
OTRS1:/etc # rcotrs restart-force

Code: Select all

Shutting down OTRS
 Disable /opt/otrs/bin/PostMaster.pl ... done.
[color=#FF0000] Shutting down cronjobs ... failed![/color]
 Cleaning up session and log cache ... done.
Shutting down OTRS (completely)
 Shutting down Apache ... done.
 Shutting down MySQL ... done.
                                                                                                                          done
Starting OTRS (completely)
 Starting Apache ... done.
 Starting MySQL ... done.
Starting OTRS
 Checking Apache ... done.
 Checking MySQL ... done.
 Checking database connect... (It looks Ok!).
 Enable /opt/otrs/bin/PostMaster.pl ... done.
 Checking otrs spool dir...  done.
 Creating cronjobs (source /opt/otrs/var/cron/*) ... done.

  -->> http://OTRS1/otrs/index.pl <<--
bin dann den Vorschlägen hier gefolgt:
OTRS1:/etc # cat passwd

Code: Select all

wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
otrs:x:1001:1000:OTRS System User:/opt/otrs:/bin/false
OTRS1:/etc # cat shadow

Code: Select all

wwwrun:*:14550::::::
otrs::14664:1:99999:14:::
OTRS1:/etc # cat group

Code: Select all

www:x:8:root,otrs
otrs:x:1000:otrs,root,wwwrun
OTRS1: # crontab -l -u otrs

Code: Select all

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/opt/otrs/var/tmp/cron installed on Fri Jul 16 08:11:17 2010)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
# --                                                                          
# cron/aaa_base - base crontab package                                        
# Copyright (C) 2001-2009 xxx, http://otrs.org/                           
# --                                                                          
# $Id: aaa_base.dist,v 1.7 2009/02/16 20:35:25 tr Exp $                       
# --                                                                          
# This software comes with ABSOLUTELY NO WARRANTY. For details, see           
# the enclosed file COPYING for license information (AGPL). If you            
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.        
# --                                                                          

# Who gets the cron emails?
MAILTO="root@localhost"    
# --                       
# cron/fetchmail - fetchmail cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --                                               
# $Id: fetchmail.dist,v 1.10 2009/02/16 20:53:10 tr Exp $
# --                                                     
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you 
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --                                                                  

# fetch every 5 minutes emails via fetchmail
#*/5 * * * * [ -x /usr/bin/fetchmail ] && /usr/bin/fetchmail -a >> /dev/null
#*/5 * * * *    /usr/bin/fetchmail -a --ssl >> /dev/null                    
# --                                                                        
# cron/generic_agent - GenericAgent.pl cron of the OTRS                     
# Copyright (C) 2001-2009 xxx, http://otrs.org/                         
# --                                                                        
# $Id: generic_agent.dist,v 1.12 2009/02/16 20:53:10 tr Exp $               
# --                                                                        
# This software comes with ABSOLUTELY NO WARRANTY. For details, see         
# the enclosed file COPYING for license information (AGPL). If you          
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.      
# --                                                                        

# start generic agent every 20 minutes
*/20 * * * *    $HOME/bin/GenericAgent.pl >> /dev/null

# example to execute GenericAgent.pl on 23:00 with
# Kernel::Config::GenericAgentMove job file       
#0 23 * * * $HOME/bin/GenericAgent.pl -c "Kernel::Config::GenericAgentMove" >> /dev/null
# --                                                                                    
# cron/generic_agent - GenericAgent.pl cron of the OTRS                                 
# Copyright (C) 2001-2009 xxx, http://otrs.org/                                     
# --                                                                                    
# $Id: generic_agent-database.dist,v 1.8 2009/02/16 20:55:11 tr Exp $                   
# --                                                                                    
# This software comes with ABSOLUTELY NO WARRANTY. For details, see                     
# the enclosed file COPYING for license information (AGPL). If you                      
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.                  
# --                                                                                    

# start generic agent every 10 minutes
*/10 * * * *    $HOME/bin/GenericAgent.pl -c db >> /dev/null
# --                                                        
# cron/pending_jobs - pending_jobs cron of the OTRS         
# Copyright (C) 2001-2009 xxx, http://otrs.org/         
# --                                                        
# $Id: pending_jobs.dist,v 1.11 2009/02/16 20:55:11 tr Exp $
# --                                                        
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you 
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --                                                                  

# check every 120 min the pending jobs
45 */2 * * *    $HOME/bin/PendingJobs.pl >> /dev/null
# --                                                 
# cron/postmaster - postmaster cron of the OTRS      
# Copyright (C) 2001-2009 xxx, http://otrs.org/  
# --                                                 
# $Id: postmaster.dist,v 1.9 2009/02/16 20:55:11 tr Exp $
# --                                                     
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you 
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --                                                                  

# check daily the spool directory of OTRS
#10 0 * * * * [ -e /etc/init.d/otrs ] && /etc/init.d/otrs cleanup >> /dev/null; [ -e /etc/rc.d/init.d/otrs ] && /etc/rc.d/init.d/otrs cleanup >> /dev/null                                                                                                                
10 0 * * *  $HOME/bin/otrs.cleanup >> /dev/null                                                                                      
# --                                                                                                                                 
# cron/postmaster_mailbox - postmaster_mailbox cron of the OTRS                                                                      
# Copyright (C) 2001-2009 xxx, http://otrs.org/                                                                                  
# --                                                                                                                                 
# $Id: postmaster_mailbox.dist,v 1.2 2009/02/16 20:55:11 tr Exp $                                                                    
# --                                                                                                                                 
# This software comes with ABSOLUTELY NO WARRANTY. For details, see                                                                  
# the enclosed file COPYING for license information (AGPL). If you                                                                   
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.                                                               
# --                                                                                                                                 

# fetch emails every 10 minutes
*/10 * * * *    $HOME/bin/PostMasterMailbox.pl >> /dev/null
# --                                                       
# cron/rebuild_ticket_index - rebuild ticket index for OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/        
# --                                                       
# $Id: rebuild_ticket_index.dist,v 1.9 2009/02/16 20:55:11 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# just every day
01 01 * * * $HOME/bin/RebuildTicketIndex.pl >> /dev/null
# --
# cron/session - delete old session ids of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: session.dist,v 1.11 2009/02/16 20:55:11 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# delete every 120 minutes old/idle session ids
55 */2 * * *    $HOME/bin/DeleteSessionIDs.pl --expired >> /dev/null
# --
# cron/unlock - unlock old locked ticket of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: unlock.dist,v 1.10 2009/02/16 20:55:11 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# unlock every hour old locked tickets
35 * * * *  $HOME/bin/UnlockTickets.pl --timeout >> /dev/null
OTRS1:/opt # ls -la /opt/otrs/var/cron

Code: Select all

total 48
drwxrwxr-x  2 otrs www 4096 Feb 26 14:05 .
drwxrwxr-x 13 otrs www 4096 Apr 26 10:25 ..
-rw-rw-r--  1 otrs www  426 Feb  6 00:37 aaa_base
-rw-rw-r--  1 otrs www  562 Feb  6 00:37 fetchmail
-rw-rw-r--  1 otrs www  676 Feb  6 00:37 generic_agent
-rw-rw-r--  1 otrs www  505 Feb  6 00:37 generic_agent-database
-rw-rw-r--  1 otrs www  485 Feb  6 00:37 pending_jobs
-rw-rw-r--  1 otrs www  630 Feb  6 00:37 postmaster
-rw-rw-r--  1 otrs www  501 Feb  6 00:37 postmaster_mailbox
-rw-rw-r--  1 otrs www  481 Feb  6 00:37 rebuild_ticket_index
-rw-rw-r--  1 otrs www  504 Feb  6 00:37 session
-rw-rw-r--  1 otrs www  488 Feb  6 00:37 unlock
Ausgeführt habe ich auch

Code: Select all

Setpermissions.sh /opt/otrs otrs wwwrun otrs www
in /etc/sysconfig/otrs ist $OTRS_CRON_USER auf " -u otrs " gesetzt

dann den Test von ferrosti

Code: Select all

OTRS1:/opt # cat /etc/passwd|grep otrs                   
otrs:x:1001:1000:OTRS System User:/opt/otrs:/bin/false         
OTRS1:/opt # vi /etc/passwd                              
OTRS1:/opt # su - otrs                                   
otrs@OTRS1:~> touch /opt/otrs/file.tst
touch: kann "/opt/otrs/file.tst" nicht berühren: Keine Berechtigung
otrs@OTRS1:~> cat README                                     
# --                                                               
# README - readme file of OTRS                                     
# Copyright (C) 2001-2009 xxx, http://otrs.org/                
# --                                                               
# $Id: README,v 1.35.2.2 2009/10/30 10:51:07 mb Exp $              
# --                                                               
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you 
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --                                                                  
Habe ich noch etwas vergessen ?
Hat jemand inzwischen noch weitere Erkenntnisse woran das liegt ?
Bin echt ratlos und sollte das System mal laufen bekommen. Cheffe wird ungeduldig :/
MfG
~Fredy

Produktiv: OTRS 3.0.11/ openSUSE 11.4 / Apache2, MySQL5 / Exchange 2010
creator79
Znuny newbie
Posts: 1
Joined: 15 Mar 2011, 16:00
Znuny Version: 3.0.6

Re: Cronjob läuft nicht auf OpenSuse 11.2

Post by creator79 »

Ja, das ist ein Bug in dem rc-script bzw. in /etc/init.d/otrs Zeile 244

Da steht:

Code: Select all

if type -a crontab 2&>/dev/null && crontab $OTRS_CRON_USER -r ; then
"type -a crontab 2&>/dev/null" evaluiert immer zu false (weshalb auch immer, das hat glaube ich was mit den Redirection Regeln der Bash zu tun).
Daher wird das anschließende crontab -r auch nicht ausgeführt, was dazu führt, dass immer noch die Cronjobs laufen.

Derzeit bleibt nur ein beherztes rccron stop, um ganz sicher zu gehen oder aber das manuelle ausführen von

Code: Select all

crontab -u the_otrs_user_name -r
Ich kam leider noch nicht dazu einen Bugreport oder gar Patch zu erstellen.
Bei letzterem fehlt mir noch die Idee, wie die Entwickler das denn genau haben wollen...
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: Cronjob läuft nicht auf OpenSuse 11.2

Post by ferrosti »

Klar, da hätte man auch eher drauf kommen können.

Die Umleitung 2&>/dev/null ist völliger Murks.

Schreib das bitte mal nach

Code: Select all

type -a crontab 2>/dev/null
oder

Code: Select all

which crontab 2>/dev/null
oder

Code: Select all

type -a crontab 2>/dev/null|wc -l
um.

Ich habe hier im Moment kein System laufen, auf dem ich das testen kann.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
Locked