@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9



Comments:

<0> Can someone explain (or point me to a FAQ about) .la files? They seem to list libraries that the corresponding .so depends on, but I don't know if that's accurate.
<0> They're causing me headaches, because they embed explicit paths to libraries that have been superceded.
<1> Hi, I want to change a IP from a file. Example: change 10.0.0.1 to 192.168.200.1, but if I use: cat file.txt | sed 's/10.0.0.1/192.168.200.1/g' > file.txt the file corrupt, any tips?
<0> I think the problem is that you're sending it to the same file you're reading from.
<0> What happens is that the shell *starts* by truncating the output file - before 'cat' has a chance to read it.
<0> So cat only gets a blank file.
<0> Try cat file.txt | sed '...' > /tmp/file.tmp && mv /tmp/file.tmp file.txt
<0> That way you aren't destroying the input file until the replacement is ready.
<1> works budd thanks!
<0> glad to help.
<2> can anyone walk me through install java
<3> would anyone know the best distro independant way to have a machine reboot after x amount of runtime? maybe an init script with sleep x && reboot or shutdown -r?
<4> amount?
<3> daniel: me?
<4> Do you see anyone else here? :)



<5> reboot -r -t sec
<3> daniel: yes i see lots of people here
<5> oops
<5> shutdown -r -t sec
<5> you could call it from /etc/yourinitsystem/local
<5> eg /etc/init.d/local
<3> ic, hmm ok
<5> eg /etc/rc.d/rc.local
<5> if all else fails man shutdown
<5> why do you want this?
<3> it's a server that runs a memory leak, and needs to reboot every so often
<4> lol :)
<4> Fix the software
<3> closed sourse
<3> source even
<6> monit the process and reboot only when needed
<5> get a non closed source substitute
<5> :D
<4> Can't you simply restart the *process* instead of the system? O_o
<3> MetaPhaze_laptop: I wish there were one
<5> uniplex, what is it?
<3> MetaPhaze_laptop: a game server
<4> . . .
<3> daniel: donno if that will help
<5> uniplex, ahh bad news... what game
<4> I'm off to bed
<3> MetaPhaze_laptop: nwn
<4> See you
<5> uniplex, ??? nwn???
<6> never winter nights
<5> uniplex, i run that with no problems
<5> uniplex, how do you know it has a memory leak
<3> MetaPhaze_laptop: you run a nwn server but you didn't know I was talking about neverwinter nights when i said nwn?
<5> ??? nwn??? was me wondering why you have a problem with nwn
<3> oh
<3> sry
<5> np
<5> mine runs for well let me check my uptime... i believe it's over a month now
<3> im ***uming it's a memory leak, for 1 I've never seen a nwn server that didn't require a reboot every so often
<5> hmm... what does it do?
<3> runs sluggish
<5> what else you got on that box?
<3> MetaPhaze_laptop: it's not my box
<5> running a custom mod?
<3> yes
<5> could be the mod
<3> yah
<5> just kill nwn and restart it
<5> you don't need to take the whole box down
<3> hmm, a cron job then?
<5> yes
<3> kthx
<5> np
<6> *m o n i t* the process
<3> spike: for what? memory usage?
<5> he he... i run ut2004rpg server nwn server and sof2 server on the same box with no problems
<3> well i never seen any ut2k4 server have any probs like this
<6> uniplex: yes, I did say "monit" on purpose. there's an app called "monit" used to monitor process and restart them when conditions trigger
<6> restart or do whatever else you want. works pretty good on servers in tandem with nagios
<5> uniplex, he he no i bet not... but i've never seen any problems with nwn... and i run all 3 together with only 786 M ram



<3> spike: does it have a minimum runtime option? so noone can exploit it in such a way?
<3> MetaPhaze_laptop: nice
<5> uniplex, can't you set the server to reload when empty?
<6> uniplex: yes, you can set mostly any sort of condition
<3> spike: ok i will look into that
<3> MetaPhaze_laptop: I donno I'll consider that too
<5> uniplex, right... glad to help
<3> thx
<7> hi there
<7> how can i boot in fedora so that it will not go to GNOME it fill go to text mode or console mode
<7> ?
<8> kernel20: disable the *dm from init.
<9> downloading mandriva free 2006 :P
<10> does anyone know if there's a way to limit apt-get's bandwidth ?
<11> how do i set xchat to auto-accept dcc files ??
<7> ?
<7> unix_infidel:?
<8> kernel20: ?
<12> I need some help with a sort command. Here's what I'm getting.
<12> I'm sorting a file with lines that look like "26.14+26.20" "26.21+28.1" and so on...
<12> I've got it to sort by the number before the "+" sign, but it's doing some of them incorrectly. FOr instance it puts "26.24+26.20" before "26.3+26.13" I need it to go the other way. I've already got it so that it does 5.x before 10.x [single digit before double digit]
<12> If that made any sense. :)
<12> I tried sort with -t + and -k 1,1 but I'm not sure if that's what I need or if I was even using it correctly.
<13> doubletwist: it is sorting before the "+" if "26.24+26.20" is before "26.3+26.13"
<13> comparing 26.24 to 26.3
<12> Yes I want it to sort before the +, but to consider 26.3 before 26.24 is that possible? or do I need to replace all the single digit numbers after the . to be .03 or whatever?
<12> The dot isn't really acting as a decimal in this list.
<12> I suppose I can just replace all the '.'s with :'s.
<12> Nope that didn't work either.
<12> so much for writing a 'simple' script for this. :)
<13> doubletwist: oh so 26.3 is coming before 26.24?
<12> Yes it needs to.
<12> those numbers are designating page:line so 26.3 is page 6 line 3. 26.24 is page 6 line 24.
<13> does -r with sort fix it?
<12> no that just reverses the entire thing.
<13> doubletwist: so what exactly needs sorting?
<12> Well it's a list of page:line designations. so 8:19+9:1 is a designation of page 8 line 19 through page 9 line 1.
<12> I need the list sorted by the beginning of the designation.
<12> Normally we only have a couple so it's been done manually, but we have a ton to do next week so I'd rather just script it. :)
<13> paste 3 lines on how sort is displaying it... (please juste 3) :)
<12> 26:21+28:1
<12> 26:3+26:13
<12> 28:17+28:25
<12> the 26:3 needs to be before the 26:21 though.
<12> I'm about to test it if all the single digit's have 03 instead of just 3. [not sure how I'll do that as a batch, but just to see if it works]
<12> yeah it works with 03...
<12> Guess now I have to figure out how to replace all the single digit numbers [only after the :'s] to add a leading zero...
<14> hello all--- I would like to issue the command xm create xen.cfg as if it were in an xterm session without actually being in an xterm session this command causes a xen virtual machine to be started. I would like a xen vm to start on boot into xfce and also be available to launch thru a menu icon...without actually launching an xterm session...anyone have any idea how to do this?
<13> doubletwist: printf
<12> never used it. I'll check it out. Thanks.
<3> doubletwist: good luck with that one lol. sure it's possible.
<15> doubletwist: echo "26:3+26:13" |sed '/:[0-9]/s/[0-9]+/0&/' #26:03+26:13
<3> gnubien: what if 13 was 6
<15> doubletwist: this maybe better: echo "26:3+26:13" |sed '/:[0-9]+/s/[0-9]+/0&/'
<15> uniplex: didnt catch that exception
<3> awk -F'[:+]' '$2~/^[0-9]$/{$2=0$2}$4~/^[0-9]$/{$4=0$4}{print$1":"$2"+"$3":"$4}'
<15> nice
<3> not really lol
<16> uh. uniplex code.
<16> eye cancer
<16> but hey, it works
<3> TheBonsai: you got a better method?
<16> no. i just always wonder how your code works :>
<3> if(TheBonsai~/no/)print "stfuthenlthxbye"
<3> :>
<16> hrh
<16> doubletwist: try to pipe it through | while IFS=:+ read one two three four; do printf "%02d:%02d+%02d:%02d\n" $one $two $three $four; done
<3> more efficient method maybe, but a slower tool doing it :>
<17> Hello
<16> the tool is bash (i ***umed he uses bash)
<16> no external program
<17> I have a quick question about DoD wiping.
<16> but sure, gawk is the fastest awk i've seen so far
<17> I had ran a DoD disk on one of my computers. And when I try running my ubuntu or XP disk. it stops at the unloading part.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #linuxhelp
or
Go to some related logs:

#perl
#awk
#css
#linux
#debian-private irc key
#perl
Ubuntu 3d Rage Pro 215GP
#suse
there are stopped jobs mythtv
kill bulio



Home  |  disclaimer  |  contact  |  submit quotes