WebHosting Paid by #1Payday.Loans


   The ROCK Linux project has been discontinued in 2010. Here are the old data for the historical record!

[02:49] kasc_ (n=kasc@dslb-084-060-099-154.pools.arcor-ip.net) joined #rocklinux.
[02:53] kasc (n=kasc@dslb-084-060-100-004.pools.arcor-ip.net) left irc: Read error: 104 (Connection reset by peer)
[02:53] Nick change: kasc_ -> kasc
[04:40] owl (n=owl@193.93.28.218) got netsplit.
[04:44] rockbot joined #rocklinux.
[04:46] _Ragnar_ (i=loki@216.250.77.230) joined #rocklinux.
[04:47] mnemoc (n=amery@kilo105.server4you.de) joined #rocklinux.
[04:50] owl (n=owl@193.93.28.218) joined #rocklinux.
[04:50] th (n=th@bozeman.hbsn.de) joined #rocklinux.
[04:53] toberkel (n=toberkel@toberkel.net) joined #rocklinux.
[05:59] netrunner (n=andreas@anvame.net) joined #rocklinux.
[06:40] blindcoder (i=blindcod@tor/session/direct/x-4eccdb022b692adc) joined #rocklinux.
[08:47] <blindcoder> moin
[10:10] blindy (i=blindcod@pallas.crash-override.net) left #rocklinux.
[10:48] <fake> moin
[10:51] <daja77> moin
[10:52] Action: daja77 hates lawnmovers in the morning
[10:55] <fake> lawnmovers?
[10:55] <fake> lawnmowers?
[10:55] <daja77> erh yes
[10:55] <daja77> <- sleepy
[10:56] <fake> there was a fire down the street this morning
[10:57] <daja77> isreal bombing vienna now?
[10:57] <fake> it smells like burnt plastic everywhere
[10:57] <daja77> d'oh
[10:57] <fake> no, just a small fire, nothing too spectacular
[10:57] <daja77> but burned plastic smells awful
[11:00] <fake> jep.
[11:24] sai (n=sai@tmpnat1.honeywell.com) joined #rocklinux.
[11:24] <sai> hi
[11:26] <fake> hi sai ;)
[11:26] <sai> I running a java program using shell script. My java program reads input from STDIN. But when i try to run the shell script from cron, the java program stops. 
[11:27] <sai> any idea
[11:28] <fake> make sure JAVA_HOME is set in the shell script
[11:28] <fake> the environment set exported by cron is limited, and doesn't include all of /etc/profile
[11:28] <sai> yes, I export all the classpath and env variable before running that script.
[11:29] <fake> what's the output you get?
[11:29] <sai> No output because its running as background process
[11:30] <fake> cron mails the output of scripts 
[11:30] <fake> if you don't want to configure mail on the host, you can also call java like this:
[11:30] <fake> java ... 2>&1 > /tmp/my-temporary-logfile.txt
[11:30] <sai> Yes, The mistery is the java program stops gracefully. 
[11:31] <sai> Yes i tried that also.
[11:31] <fake> there is no error?
[11:31] <sai> yes
[11:31] <fake> well, then i guess you application is to be examined ;)
[11:31] <sai> even in /var/log/cron i checked
[11:31] <fake> *your
[11:32] <sai> thats right. But is it that, when a program runs in background and expects input from STDIN, will get terminated automatically
[11:34] <fake> that may be true.
[11:34] <sai> Ok.
[11:34] <fake> you can do something like:
[11:34] <fake> java blabla 2>&1 > my_logfile < my_inputfile
[11:35] <sai> ok let me try
[11:35] <fake> where my_inputfile is the input the program expects...
[11:35] <sai> actually program is expecting only a ENTER
[11:35] <fake> then just do:
[11:35] <sai> no characters
[11:36] <fake> java blabla < echo ""
[11:36] <fake> or, to be explicit, you could do:
[11:36] <fake> java blabla < echo -en "\n"
[11:36] <fake> though echo "" does the same.
[11:36] <fake> or 
[11:36] <fake> echo "" | java blabla
[11:36] <sai> Ok, the program logic is something life connect(), then wait for enter, then disconnect
[11:37] <sai> like*
[11:37] <fake> do you have the source?
[11:37] <sai> If that enter goes it will stop.
[11:37] <sai> I am sorry i can show it. 
[11:37] <sai> cannot*
[11:38] <fake> that's not the problem, if you have the source, just patch out the readline
[11:38] <fake> or getch or whatever
[11:38] <sai> ok, and what will be there in place of that
[11:38] <fake> like.... nothing?
[11:38] <fake> why wait for a keypress?
[11:39] <fake> you could detect wether STDIN is connected, i guess
[11:39] <fake> something like
[11:39] <sai> Ok, thats because when we press ENTER the program will stop. Till than it wait for recieving messages from the MQ server
[11:39] <fake> if (!System.in.isClosed()) System.in.getch();
[11:39] <fake> aaaah
[11:39] <fake> ok
[11:39] <fake> now i get it
[11:40] <fake> and you can modify the source?
[11:40] <sai> yah i can 
[11:40] <fake> why don't you remove that whole enter-to-exit thing and make it Ctrl+C instead?
[11:40] <fake> then you'd just need to do...while(1=1)
[11:41] <daja77> not while(true)?
[11:41] <sai> yup that a good idea. But how a program will identify that Ctrl+C is pressed
[11:41] <fake> you need a regulated shutdown?
[11:42] <sai> yes, otherwise it will throw a exception in the MQ server logs
[11:43] <fake> the Destructor of the object containing static void main should be called
[11:43] ija (n=ija@84.19.223.199) joined #rocklinux.
[11:43] <fake> it should... at least.
[11:43] <fake> another options is to open a shutdown port
[11:43] <fake> *option
[11:43] <fake> like tomcat does
[11:44] <fake> you start a java thread listening on a port bound only to 127.0.0.1, if you telnet to it and send a magic word, the program will initiate shutdown 
[11:45] <sai> ok
[11:45] <fake> just a thought.
[11:46] <sai> in case of destructor
[11:47] <fake> let me try that quickly, i'm not sure
[11:47] <sai> are you saying have all the close statements in the desctructor and when i do ctrl+c
[11:47] <sai> destructor will be called
[11:48] <sai> and a graceful close of all the MQ streams will be done
[11:49] <fake> wait a second.
[11:49] <sai> ya
[11:53] <fake> Java has no destructor or similar concept
[11:53] <fake> damn
[11:53] Action: fake did too much C++ lately.
[11:55] <sai> can't we use finally...i am not sure
[11:55] <sai> finally block i mean
[11:56] <fake> i'll try
[11:56] <sai> ok
[11:57] <fake> otoh, there is System.in.available() 
[11:57] <fake> btw
[11:57] <fake> you can check wether STDIN is avalible with that
[11:57] <sai> ok
[11:58] <fake> no, finally does not work, because Ctrl+C doesn't throw an exception
[11:59] <fake> i don't see why you want to run a server with cron, anyways...
[11:59] <sai> hmmmm
[11:59] <fake> the shutdown port option seems to be the cleanest solution
[12:00] <fake> you could do it like this:
[12:00] <sai> yah
[12:00] <fake> when System.in.availible() is true, you could do the Exit-on-Enter thing
[12:00] <fake> and if it isn't, start a java thread listening on a port as described above
[12:00] <fake> that way, you can start and stop the server via cron.
[12:01] <fake> and now i'd really like to know why you ask java questions in #rocklinux ;)
[12:02] <daja77> :)
[12:02] <sai> Because I am running java program in linux Crond
[12:03] <fake> rock linux crond ?
[12:03] <fake> ;)
[12:04] <sai> no fedora core 
[12:04] <fake> ... see? ;-)
[12:04] <sai> ;-)
[12:05] <sai> Thanks a lot  I will try that
[12:05] <fake> good luck!
[12:05] <sai> have a nice day
[12:06] <owl> moin
[12:06] <fake> if you need a sample implementation, i did one once...
[12:06] <sai> can you paste on the terminal
[12:06] <fake> but it was one of my first java programs, so it probably sucks
[12:06] <sai> no problems
[12:07] <fake> sai: see this: https://forums.winamp.com/showthread.php?s=71e9fe1b33d4728200ea2e249fd61e86&threadid=177935&goto=nextnewest
[12:08] <fake> first google hit for "java shutdown port thread howto"
[12:08] <sai> sure
[12:08] <daja77> hm guess my first java programm was sth with beans, a webservice that did the euclid algorithm remote :D
[12:09] <fake> hi owl!
[12:09] <fake> hi daja77 
[12:09] <daja77> hi fake :)
[12:13] sai (n=sai@tmpnat1.honeywell.com) left #rocklinux ("Leaving").
[12:33] huebi (n=huebi@gw-sectoor-office.fra.dsl.sectoor.net) joined #rocklinux.
[12:33] <huebi> Moin
[12:34] <fake> huebi!
[12:34] <fake> moin!
[12:35] <huebi> Moin fake
[12:35] <owl> hi huebi !
[12:35] <huebi> hi owl
[12:57] daja77_ (n=daja77@dslb-088-072-045-075.pools.arcor-ip.net) joined #rocklinux.
[13:08] daja77 (n=daja77@88.72.42.146) left irc: Read error: 110 (Connection timed out)
[13:34] <th> no
[13:34] <th> that's huebi?
[13:36] <huebi> moin th
[13:36] <huebi> jo, genau der :-)))
[13:38] <fake> seems like it
[13:38] <fake> .fra.
[13:38] <fake> could really be him ;)
[13:40] <th> the last but one stable tree maintainer ;)
[13:43] <daja77_> i thought the last was you
[13:45] <esden> moin
[13:45] <owl> hi esden 
[13:46] <esden> huebi: ??? hallooo! dich hat man ja lange nicht gesehen!
[13:47] <esden> hehe ... I refactored my common lisp robots implementation ... and it got another 50 lines shorter
[13:47] <esden> and better readable what is the most amazing thing
[13:57] <daja77_> you want to make hannes happy :)
[14:13] <th> daja77_: the last. but not the "last but one"
[14:13] <daja77_> ic
[14:13] <daja77_> i started with 1.7 :)
[14:14] stf^rocklinux (n=user@M1369P030.adsl.highway.telekom.at) joined #rocklinux.
[14:15] <stf^rocklinux> moin
[14:15] <fake> moin stf^rocklinux 
[14:15] <huebi> Ich habe mal den letzten cvs tree ausgepackt. Irgendwie war der letzte upload April 2003. Jetzt bastel ich einen svn-Server zusammen, portiere den Kram und dann will ich damit mal wieder weiter machen. Sollte sich eigendlich lohnen, da die ganze Sache ja schon recht stabil war.
[14:16] <huebi> cvs-tree vom 1.6pre3
[14:16] <owl> .oO( i have hallus... )
[14:16] <fake> huebi: we are currently releasing v3
[14:16] <fake> huebi: check out the release candidate 2, see $TOPIC
[14:16] <th> hehe
[14:16] <th> he's making fun of us ;)
[14:17] <th> huebi: i remember the c3 where we two released the pre3 :)
[14:17] Action: daja77_ rolling on the floor
[14:17] <huebi> :-)
[14:18] <fake> though i didnt make fun, please help testing the RC ;)
[14:18] <daja77_> hm do we have the old grub again?
[14:19] <fake> yes.
[14:19] <daja77_> nice
[14:19] <stf^rocklinux> keyboard layout selection doesn't work in KDE :(
[14:20] <fake> in the RC2?
[14:20] treo (n=xfman@C8bc7.c.pppool.de) joined #rocklinux.
[14:20] <stf^rocklinux> no, in RC1 and previous builds ...
[14:20] <stf^rocklinux> I can't download RC2 atm...
[14:21] <fake> let me check...
[14:21] <fake> öäü
[14:21] <fake> oh jesus
[14:21] <fake> it works here
[14:21] <fake> and now the z is where the y should be
[14:21] <stf^rocklinux> the list of available layouts in kcontrol is empty here
[14:22] Action: fake booting rc
[14:23] <huebi> 14:19:19 (1.83 MB/s) - `crystal-r7734-20060713.iso' saved [698159104/698159104]
[14:24] <fake> huebi: nice ;)
[14:25] <huebi> cu ;-))
[14:25] huebi (n=huebi@gw-sectoor-office.fra.dsl.sectoor.net) left irc: "leaving"
[14:30] <fake> stf^rocklinux: ack, it's the same here
[14:30] <fake> must be the update to 3.5.3
[14:30] <fake> i'm running 3.5.2
[14:31] <stf^rocklinux> hm, I'm going to check the KDE changelog...
[14:34] <fake> and i'm going to read the .log file
[14:34] <fake> and add the bug to the wiki page.
[14:48] stf^rocklinux (n=user@M1369P030.adsl.highway.telekom.at) left irc: Remote closed the connection
[14:49] stf^rocklinux (n=user@M1369P030.adsl.highway.telekom.at) joined #rocklinux.
[14:57] stf^rocklinux (n=user@M1369P030.adsl.highway.telekom.at) left irc: Remote closed the connection
[15:00] stf^rocklinux (n=user@M1369P030.adsl.highway.telekom.at) joined #rocklinux.
[15:01] <stf^rocklinux> hm, just replaced kdebase-3.5.3 with -3.5.2 in the RC1 installation, and keyboard selection works again...
[15:01] <stf^rocklinux> anyway, gotta have lunch now :)
[15:04] <th> undoing the kde353 update?
[15:09] <fake> hm...
[15:10] Action: fake is looking
[15:10] <fake> stracing my running build vs. RC
[15:12] <fake> /usr/X11R6/lib/X11/locale/locale.alias
[15:13] <fake> hm
[15:13] <fake> exactly the same in both installations
[15:16] <fake> /usr/X11R6/lib/X11/locale/locale.dir
[15:17] <fake> also the same
[15:17] <fake> that's the source
[15:17] <fake> /usr/X11R6/lib/X11/xkb/rules/xfree86.lst
[15:18] <fake> also the same. grrr...
[15:22] <fake> it's a missing link
[15:22] <fake> well, not a link, but a search path
[15:22] <fake> in RC, it's not looking in /usr/X11R6/lib/X11/xkb/rules anymore, just /etc/X11/xkb/rules
[15:29] rocklogbot (i=blindcod@pallas.crash-override.net) left irc: Remote closed the connection
[15:33] <fake> https://websvn.kde.org/tags/KDE/3.5.3/kdebase/kxkb/x11helper.cpp?rev=544025&view=markup
[15:33] <fake> it should check it though
[15:34] <fake> ha!
[15:37] <fake> boy, i'm so good.
[15:37] <fake> https://websvn.kde.org/branches/KDE/3.5/kdebase/kxkb/x11helper.cpp?rev=523699&r1=516051&r2=523699
[15:38] <fake> that's why it worked before.
[15:38] <fake> the first entry in the search path is returned, that has a 'xkb' subdirectory.
[15:38] <fake> up until 3.5.2, /etc/X11 wouldn't have worked, because the trailing '/' was missing in the search path list
[15:39] <owl> bye
[15:39] owl (n=owl@193.93.28.218) left irc: "committing suicide. bye"
[15:39] <fake> now it works, because that's fixed, and we do have a /etc/X11/xkb directory. but the rules directory is not in there!
[15:41] Action: fake looking at where XLIBDIR
[15:41] <fake> comes from
[15:57] ija_ (n=ija@84.19.222.254) joined #rocklinux.
[15:59] ija (n=ija@84.19.223.199) left irc: Nick collision from services.
[15:59] Nick change: ija_ -> ija
[17:10] <esden> daja77_: I already made hannes happy starting to learn lisp ... ;)
[17:10] <esden> but now not only he is happy ... I am also happy that I did 
[17:19] <fake> stf^rocklinux: xorg package on gems.rocklinux.org/repo/fake is updated
[17:42] <fake> hm...
[17:43] <fake> stf^rocklinux: are you here?
[18:01] <mnemoc> blindcoder: hi, did you somehow delete vi from the buildserveR? ,-)
[18:05] <mnemoc> blindcoder: uhm, sorry... it was my build :\
[18:20] <fake> stf^rocklinux: there is a problem with :legacy package creation and directories containing only symlinks being removed
[18:22] <fake> stf^rocklinux: and others
[18:26] <fake> stf^rocklinux: the var/adm/cksums/somepackage:legacy package has only the cksums-file of the non-legacy packages in it
[18:28] treo (n=xfman@C8bc7.c.pppool.de) left irc: "safe the Planet, kill yourself"
[19:18] <fake> hm
[19:28] <esden> niah, niah .... a chinese company cracked the skype protocol ... nice https://politics.slashdot.org/article.pl?sid=06/07/14/1514226&from=rss
[19:32] <fake> "Even if it was possible to do this, the software code would lack the feature set and reliability of Skype,"
[19:32] <fake> WUAHAHAHA
[19:32] <fake> "feature set and reliability"
[19:32] <fake> "Even if it was possible to do this, the software code would lack the feature set and reliability of MY ANUS!"
[19:39] <fake> skype will go down...
[19:52] <daja77_> lol
[19:54] <fake> stf^rocklinux: you build the :legacy package on the assumption that the flist and cksum and md5sum files are in the same order
[19:58] <fake> which they aren't necessarily
[19:59] Action: fake wants to rewrite mine in c++
[20:01] <fake> don't worry, i wont...
[20:15] <esden> fake: then rewrite it in lisp *GG*
[20:36] owl (n=owl@193.93.28.218) joined #rocklinux.
[20:36] <owl> re guys
[20:56] <fake> ok
[20:57] <fake> i'm going fix this with an avl tree
[20:57] <fake> re hi owl
[21:07] <stf^rocklinux> re
[21:07] <owl> thx. 
[21:08] <stf^rocklinux> sry, I'm currently busy with fighting an ant plague in this 100-year old house, and other non-ROCK related things...
[21:12] <fake> yes, ant is java-related ;)
[21:12] <stf^rocklinux> fake: if it only were that simple :D
[21:14] <stf^rocklinux> fake: so do you have a fix ready for the keyboard thing? maybe move the xkb/rules dir to /etc/X11?
[21:23] <stf^rocklinux> fake: I have already planned to rewrite the legacy package patch... but that could take some time. maybe it's better to skip it for now.
[21:29] <fake> stf^rocklinux: already in sm
[21:30] <fake> stf^rocklinux: the patch to get the keyboard list working. problem description is here:
[21:30] <fake> https://websvn.kde.org/branches/KDE/3.5/kdebase/kxkb/x11helper.cpp?rev=523699&r1=516051&r2=523699
[21:30] <fake> read the backlog...
[21:30] <fake> i'm doing the legacy stuff
[21:31] <stf^rocklinux> hm, I read the links, but didn't see any fix other than reverting the one change shown there...
[21:32] <fake> the fix in submaster just removes the /etc/X11/xkb directory, it's unneded, and breaks the layout selection in this case
[21:34] <stf^rocklinux> anyway, thx for fixing this :)
[21:35] <stf^rocklinux> I'm afk again...
[21:36] <owl> narf. i need inspiration now... gimme coffee in a pub, a textbook and good music. aeh. no. 'll give it myself. bbl. or not. we'll see. bye ^^
[21:41] <fake> bye owlita
[22:32] stf^rocklinux (n=user@M1369P030.adsl.highway.telekom.at) left irc: Read error: 110 (Connection timed out)
[00:00] --- Sat Jul 15 2006