Current time: 07-07-2024, 12:10 AM Hello There, Guest! (LoginRegister)


Post Reply 
User-Cronjobs in ispCP
Author Message
FISA4 Offline
Member
***

Posts: 668
Joined: Feb 2008
Reputation: 15
Post: #1
User-Cronjobs in ispCP
in

http://www.isp-control.net/forum/thread-...age-2.html

hat data_stream_ru ein Howto geschrieben wie Cronjobs für User realisiert werden können.

Hat das schonmal jemand gemacht?
Ich würde es ja gerne Testen aber da ist mir zuviel russischer Vodka, Hausbären u.s.w. drin.

Das bringt mich total durcheinander. Sad

Und ich hab auch keine Ahnung wie das

Quote:Copmpile pacage with option -pedantic
funktioniert.

Vielleicht kann ja mal jemand ein sauberes HowTo (evtl. ja sogar mit Patches und besonders für mich auch noch idiotensicher) erstellen.

Gruß

FISA4
(This post was last modified: 04-18-2009 12:50 AM by FISA4.)
04-18-2009 12:49 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: User-Cronjobs in ispCP
Er meint damit wahrscheinlich "hrcon" welches Du mit der einer Option, in dem fall -pedantic compilieren musst. hrcron ließt die crons dann aus einer MySQL DB.
Hab es mir aber auch noch nicht genauer angeschaut, interessant ist!

Greez BeNe
(This post was last modified: 04-18-2009 12:57 AM by BeNe.)
04-18-2009 12:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
FISA4 Offline
Member
***

Posts: 668
Joined: Feb 2008
Reputation: 15
Post: #3
RE: User-Cronjobs in ispCP
(04-18-2009 12:56 AM)BeNe Wrote:  Er meint damit wahrscheinlich "hrcon" welches Du mit der einer Option, in dem fall -pedantic compilieren musst.

Wenn ich ja davon mal nur das geringste bisschen Ahnung hätte. Big Grin
04-18-2009 01:02 AM
Find all posts by this user Quote this message in a reply
FISA4 Offline
Member
***

Posts: 668
Joined: Feb 2008
Reputation: 15
Post: #4
RE: User-Cronjobs in ispCP
Anscheinend müssen mindestens folgende Pakete (bei Lenny) nachträglich installiert werden:

Code:
aptitude install flex libdaemon-dev libmysqlclient15-dev

hat jedenfalls die "command not found" Meldungen entfernt

Jetzt bekomm ich noch folgendes angezeigt:
Code:
alpha:~/hcron# make install
gcc -o hcrond options.o main.o -lmysqlclient -ldaemon
main.o: In function `main':
main.c:(.text+0x27): undefined reference to `optmain'
main.c:(.text+0x80): undefined reference to `debug'
main.c:(.text+0xa2): undefined reference to `debug'
main.c:(.text+0x13f): undefined reference to `debug'
main.o: In function `run_jobs':
main.c:(.text+0x3e7): undefined reference to `reload'
main.c:(.text+0x49e): undefined reference to `debug'
main.o: In function `db_connect':
main.c:(.text+0x576): undefined reference to `port'
main.c:(.text+0x57c): undefined reference to `dbnm'
main.c:(.text+0x582): undefined reference to `pass'
main.c:(.text+0x588): undefined reference to `user'
main.c:(.text+0x58e): undefined reference to `host'
main.c:(.text+0x5fd): undefined reference to `debug'
main.o: In function `db_update':
main.c:(.text+0x70d): undefined reference to `table'
main.c:(.text+0x76f): undefined reference to `table'
main.o: In function `refresh':
main.c:(.text+0x993): undefined reference to `table'
main.o: In function `run_this':
main.c:(.text+0xf45): undefined reference to `max_jobs'
main.c:(.text+0xf54): undefined reference to `max_jobs'
main.c:(.text+0xf5d): undefined reference to `debug'
main.c:(.text+0xfff): undefined reference to `allow_uidgid'
main.c:(.text+0x104b): undefined reference to `allow_uidgid'
main.c:(.text+0x10a3): undefined reference to `allow_notnice'
main.c:(.text+0x1100): undefined reference to `debug'
main.o: In function `childcare':
main.c:(.text+0x11b4): undefined reference to `debug'
main.c:(.text+0x11e0): undefined reference to `debug'
main.o: In function `trans':
main.c:(.text+0x17d1): undefined reference to `debug'
main.o: In function `pidnaam':
main.c:(.text+0x1b55): undefined reference to `pidfile'
collect2: ld returned 1 exit status
make: *** [hcrond] Fehler 1

Weiss jemand Rat?

Gruß

FISA4
04-18-2009 10:06 PM
Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #5
RE: User-Cronjobs in ispCP
Frag doch mal am besten Mr russian vodka Wink
04-18-2009 10:11 PM
Find all posts by this user Quote this message in a reply
FISA4 Offline
Member
***

Posts: 668
Joined: Feb 2008
Reputation: 15
Post: #6
RE: User-Cronjobs in ispCP
Hab den Fehler gefunden...

Das Verzeichniss muss hcrond heissen wo man "make install" drin ausführt

Ergebnis:
Code:
alpha:~/hcrond# make install
flex  -t options.l > options.c
echo \#define VERSION \"`cat VERSION`\" > version.h
gcc -std=c99 -pedantic -Wall -W   -c -o options.o options.c
<stdout>:1410: warning: âyyunputâ defined but not used
<stdout>:1453: warning: âinputâ defined but not used
gcc -std=c99 -pedantic -Wall -W   -c -o main.o main.c
main.c: In function ârun_thisâ:
main.c:480: warning: initialization discards qualifiers from pointer target type
gcc -o hcrond options.o main.o -lmysqlclient -ldaemon
cp -ai etc /
cp -i hcrond /usr/bin
alpha:~/hcrond#

(04-18-2009 10:11 PM)Lucan Wrote:  Frag doch mal am besten Mr russian vodka Wink
Neee, der sagt mir bestimmt, dass ich mir nen Hausbären zulegen soll. Big Grin

Gruß

FISA4
(This post was last modified: 04-18-2009 10:17 PM by FISA4.)
04-18-2009 10:15 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)