1131580999 M * Bertl hey gerrit! 1131581004 J * Johnnie ~john@acs-24-154-53-217.zoominternet.net 1131581011 M * Bertl welcome Johnnie! 1131581093 M * Hollow hey guys 1131581104 M * Johnnie Howdy. 1131581106 M * Bertl evening Hollow! 1131581205 M * Hollow hey Bertl, i'd like to implement the new init thing in util-vserver soon.. how long would it take to implement it in kernel? 1131581229 M * Bertl which version (gimme a view details) 1131581259 M * Hollow in my cleaned up version, it has no version until now... 1131581267 M * Hollow probably 0.40? ;) 1131581388 M * Bertl no, what I meant is, we discussed a view 'versions' .. which one do you refer to ... 1131581401 M * Bertl s/versions/alternatives/ 1131581424 M * Hollow well, i don't have a preference.. but i think the "kernel starts init" approach sounds good, no? 1131581797 M * dos000 darn .. first time start up of the guest is as slow as it can get .. not sure what i have done 1131581829 M * dos000 is it dns issues maybe ... i dont have a dns entry for the guest 1131581872 M * Bertl dos000: very likely 1131582054 M * Bertl Hollow: well, okay, any ideas about the setup procedure? 1131582151 M * Bertl I mean, we can start with a shot in the dark ... and you write some tools, then we adjust to the requirements, if you prefer that? 1131582206 M * Hollow well, since i'm not the expert it would be best probably 1131582218 M * Bertl okay, so be it ... 1131582238 M * Hollow we should also do it unchained 1131582259 M * Hollow because it is planned to do most things unchained in the cleaned up version 1131582285 Q * Johnnie Remote host closed the connection 1131582295 M * Bertl if the kernel starts init, how would you 'chain' it? 1131582304 M * dos000 Bertl, the step by step guidde does not mention dns editing but i see it in another place. 1131582319 M * Bertl dos000: maybe add it there too? 1131582322 M * dos000 which has no in depth info 1131582346 M * dos000 i meant it does not explain what to edit .. just says add a record 1131582351 M * Hollow well, not like vcontext --create --xid 123 -- vinit --start, but like vcontext --create --xid 123 && vinit --start --xid 123 ;) 1131582366 M * Hollow so you should be able to start init only from context 0 1131582367 M * Bertl dos000: you know how dns works and what to configure? 1131582409 M * dos000 noob not how to configure :-( 1131582431 M * dos000 scary zone files 1131582438 M * Bertl no, just the resolver 1131582452 M * Bertl either /etc/hosts or /etc/resolv.conf 1131582454 M * dos000 oh .. resolv.conf ! 1131582466 M * dos000 cool 1131582504 M * Bertl in any case, you should be able to handle a guest like a normal linux server 1131582513 M * Bertl (just don't bother with hardware stuff :) 1131582793 M * dos000 i am just warming up with the ip issues .. once i figure it i should be on my way ! 1131582826 M * Bertl networking happens on the host, guests can be restricted to a number of IPs (1-16) 1131582867 M * dos000 where is the conf for the guest stored ? on the host ? 1131582874 M * dos000 guest ip i mean 1131582889 M * Bertl yep, in the config tree (usually /etc/vservers/) 1131582898 M * Bertl (see the flower page for details) 1131582907 M * dos000 i was looking under the guest 1131582912 M * dos000 ok 1131583044 J * Aiken_ ~james@tooax6-114.dialup.optusnet.com.au 1131583401 Q * Aiken Ping timeout: 480 seconds 1131583523 Q * hallyn_ Quit: leaving 1131583538 M * dos000 Bertl, forgive me i am trying to assign 192.168.* addresses to the guests while the host has one public address do you know pointers to docs that explain this setup ? 1131583605 M * Bertl you simply use SNAT, daniel_hozac will give you the line :) 1131583756 J * Johnnie ~john@acs-24-154-53-217.zoominternet.net 1131583812 M * dos000 google magic iptables -t nat -A POSTROUTING -s -j SNAT --to 1131583906 M * Bertl dos000: yup, looks good :) 1131583973 M * dos000 Bertl, is SNAT enabled by default on the patches ? i am using 2.0.1 1131584003 M * Bertl depends on your kernel config 1131584021 M * dos000 stok 2.6.14 1131584084 M * dos000 CONFIG_BRIDGE_EBT_SNAT=m 1131584312 M * Bertl that's for bridging only 1131584328 M * Bertl the basic option is full nat IIRC 1131584659 M * dos000 do i need to recompile or what ? 1131584732 M * Bertl upload your .config file or look for CONFIG_IP_NF_NAT=y 1131584736 M * Bertl or module 1131584829 M * dos000 CONFIG_IP_NF_NAT=m 1131584829 M * dos000 CONFIG_IP_NF_NAT_NEEDED=y 1131584877 M * dos000 cool ! 1131584883 M * dos000 you tha man 1131585224 M * Bertl you're welcome! :) 1131586397 Q * prae Quit: Pwet 1131587028 Q * Johnnie Remote host closed the connection 1131587173 J * Johnnie ~john@acs-24-154-53-217.zoominternet.net 1131589071 Q * Aiken_ Remote host closed the connection 1131589073 J * Aiken_ ~james@tooax6-114.dialup.optusnet.com.au 1131589288 M * Greek0 Bertl: ping 1131589310 M * Bertl Greek0: pong! 1131589323 M * Bertl Greek0: see, that's a response time :) 1131589345 M * Greek0 saw your limit-fix03, looks somehow nasty, but it's not like I had any better idea 1131589379 M * Greek0 it seems somehow hard to hit times when we both are online 1131589390 M * Greek0 it's strange enough that this time is about 3 o'clock 1131589448 M * Bertl well, I didn't change my online times too much :) 1131589534 M * Greek0 well, I did perhaps (due to changed uptimes), which is probably why we are talking now ;) 1131589601 Q * gerrit Ping timeout: 480 seconds 1131589742 M * daniel_hozac Bertl: NFSv4 and BME don't seem to play nice. 1131589753 M * Bertl ah, interesting ... 1131589765 M * Greek0 anything in particular you wanted to talk about with me? 1131589786 M * Bertl Greek0: sure, but I just don't know right now :) 1131589811 M * Bertl Greek0: but I'm sure we find a lot of things to talk about if you like to do so now? 1131589881 M * Bertl daniel_hozac: any test cases? 1131589906 A * Bertl has to get something to eat, afk, brb 1131589937 M * daniel_hozac Bertl: fs/nfsd/nfs4recover.c seems to be unpatched. i might've used the wrong BME patches though... 1131589939 M * dos000 anyone of you know the correct modules list/order to load to get 2.6.14 doing nating ? anyone can share ? 1131589943 M * Greek0 Bertl: I've got plenty of time ;) 1131589955 M * daniel_hozac dos000: they should all be autoloaded. 1131589991 M * dos000 daniel_hozac, i only have ip_tables loaded ! you mean at start up ? 1131590000 M * daniel_hozac dos000: no, upon use. 1131590044 M * dos000 ok .. now i think i did som'ing wron then. i keep getting "iptables v1.2.11: can't initialize iptables table `NAT': Table does not exist (do you need to insmod?" 1131590063 M * daniel_hozac it's nat 1131590065 M * daniel_hozac lowercase. 1131590117 M * dos000 i spend the last hour trying to fix that ! 1131590150 M * daniel_hozac Bertl: i just applied all patches in http://vserver.13thfloor.at/Experimental/BME/split-2.6.13-vs2.x-bme0.06.1/ in order, compile error on fs/nfsd/nfs4recover.c due to missing arguments for vfs_rmdir, vfs_mkdir and vfs_unlink. 1131590660 Q * Aiken_ Remote host closed the connection 1131590660 J * Aiken__ ~james@tooax6-114.dialup.optusnet.com.au 1131590837 M * Bertl Greek0: good, then let's talk ... 1131590874 M * Greek0 ok 1131590897 M * Bertl daniel_hozac: hmm, does the problem exist with vs2.1.0 too? 1131590918 M * Bertl Greek0: Hollow is pushing the kernel side init start 1131590927 M * Bertl Greek0: wanna talk about that or ngnet? 1131591015 M * Greek0 could you detail the first one a bit before? 1131591016 M * daniel_hozac Bertl: doesn't look like it. 1131591053 M * Bertl daniel_hozac: try to extract the patches from there, you think you can do that? 1131591077 M * daniel_hozac Bertl: i can try. 1131591093 M * Bertl Greek0: well, the idea is simple ... why not start 'init' inside a guest from the ekrnel 1131591150 M * Greek0 ah, sounds neat 1131591171 M * Greek0 any obvious problems with that approach? 1131591191 M * Bertl yep, I'd like to extend that to spawning a new process inside with some kind of terminal to the outside 1131591207 M * Bertl potential issues are: 1131591216 M * Bertl - how to attach/detach such processes 1131591234 M * Bertl - how to setup a context without any process inside 1131591248 M * Bertl - how to specify task related settings for init 1131591293 M * Bertl and in addition to that ... the question 1131591309 M * Bertl should be do a kernel thread inside the guest? 1131591345 M * Greek0 wouldn't (b) (if we number the 3 problems from a-c) be solveable by setting up the context in userspace and then syscall into the kernel with (finish initialisation, enforce security, spawn init) 1131591396 M * Bertl yep, but Hollow would also prefer to avoid chaining where possible 1131591500 M * Greek0 why a kernel thread? 1131591659 M * Bertl was just an idea ... like a 'management' unit 1131591687 M * Greek0 mm 1131591706 M * Greek0 hmm. could we talk a bit about ngnet 1131591718 M * Greek0 it's imho a more pressing issue from the user's point of view 1131591751 M * Bertl sure, no problem ... 1131591770 M * Bertl Greek0: you ahve a QEMU test system at hand? 1131591784 M * Greek0 yes 1131591796 M * Bertl let me upload a patch ... 1131591814 M * Bertl btw, did anybody look at the 2.6.14.1 changes yet? 1131591832 M * Greek0 not me 1131591936 Q * dos000 Ping timeout: 480 seconds 1131591962 J * dos000 ~dos000@CPE0006256d190c-CM0011aeff5db6.cpe.net.cable.rogers.com 1131592289 M * Bertl Greek0: http://vserver.13thfloor.at/Experimental/NGNET/delta-ngn0.03.diff 1131592298 M * Bertl (ontop of 2.1.0) 1131592512 M * Greek0 mm. sometimes there are coincidences that I find quite amusing. 1131592541 M * Greek0 today I started reading some kernel networking code because I got curious the other day how packets traversed the linux network stack.. 1131592571 M * Bertl excellent ... 1131592822 M * Greek0 hmm. I just read ngn_dev_visible and I wondered in what cases it was called with dev==0 and if return 1; is the right case there? 1131592854 M * Bertl well, it's just a crude hack right now 1131592868 M * Bertl we need much better and more detailed checks in the future 1131592885 M * Greek0 mm 1131592889 M * Bertl get the aptch installed, and I show you what it can do 1131592904 M * Greek0 just compiling kernel 1131593107 M * Bertl ah, you need the devtag tool too, let me uplaod the new version 1131593216 M * Greek0 *sigh* kernel compile fails at fixup.c 1131593225 M * Bertl Greek0: okay, in the NGNET dir, also get the vnet.c (from Hollow) in the same dir 1131593230 M * Bertl Greek0: wutt? 1131593233 M * Greek0 CC arch/i386/pci/fixup.o 1131593234 M * Greek0 arch/i386/pci/fixup.c:401: error: toshiba_ohci1394_dmi_table causes a section type conflict 1131593239 A * Greek0 wonders.. 1131593258 M * Greek0 seems to only happen with my qemu config 1131593271 A * Bertl .o( hmm, ohci1394 inside qemu ... ) 1131593315 M * Greek0 well, it's kinda unconditional afaics in fixup.c and in the Makefile 1131593850 M * Bertl and? can you fix it? 1131593927 M * Greek0 just looking into it. compiling the kernel with my i386-iphigenie config (the one for my laptop) 1131594045 M * Greek0 argn. works with that config 1131594383 M * Greek0 hmm. 2 channels is obviously too much for me to follow, or better, to always reply to the correct channel. 1131594394 M * Greek0 anyway. the problem is fixed upstream and I'm now building again 1131594405 M * Bertl yep, read that :) 1131594547 M * Greek0 http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=1d373741976985bc665e75aeb2b3bf7a524e36cc 1131594553 M * Greek0 ^-- the fix, in case someone is interested 1131594838 M * Greek0 is that CTL_ENTRY stuff a recent addition? 1131594847 M * Bertl yup 1131594850 M * Greek0 in kernel/vserver/sysctl.c 1131594859 M * Greek0 seems I haven't got it, since it conflicted here ;) 1131594879 M * Bertl which 2.1.0 did you use? 1131594931 M * Greek0 rc6 as my changlog says 1131594934 M * Bertl maybe I should provide you with a prebuilt kernel? 1131594951 M * Greek0 however that's probably pretty close to prelim 1131594965 M * Bertl the diff is against linux-2.6.14-vs2.1.0-rc6 1131595005 M * Bertl what is the error you see? 1131595029 M * Greek0 just a minor reject in kernel/vserver/sysctl.c 1131595035 M * Greek0 already fixed 1131595054 M * Greek0 .. up to the compilation error 1131595123 M * Greek0 hmm. 1131595226 M * dos000 anyone can help me get a vserver going with a public ip ? i dont get it ... this is killing me ! 1131595243 M * Greek0 delta-ngn0.03.diff breaks the !VSERVER_NGNET case 1131595256 M * Bertl dos000: hmm, you already found the nat line (google, yes?) 1131595266 M * Bertl Greek0: how unexpected :) 1131595281 M * Greek0 http://paste.debian.net/2702 1131595284 M * dos000 yes but i tried iptables -t nat -A PREROUTING -d 72.36.236.38 -i eth0 -j ACCEPT thinking that was for private ips 1131595286 M * Bertl Greek0: please enable NGNET :) 1131595300 M * Greek0 Bertl: in a way it was good, otherwise I probably hadn't noticed that I didn't enable ngnet ;) 1131595306 M * Bertl dos000: PREROUTING? 1131595331 M * Bertl Greek0: yeah, one of my strategic plans *G* 1131595386 M * Greek0 it's nice that you take into account my mental state at 5am when writing your patches. it's appreciated a lot, thanks ;) 1131595411 M * Bertl as usual, you're welcome :) 1131595430 M * dos000 Bertl, what else do i need with the snat line ? do i need another line for outgoing ? 1131595432 M * Bertl dos000: get rid of all your iptable entries, except the POSTROUTING one 1131595475 M * Bertl iptables -t nat -A POSTROUTING -s -j SNAT --to 1131595503 M * Bertl then enter the guest, and try to ping something outside (via IP first) 1131595528 M * dos000 Bertl, the thing is i dont want a local ip ... i want the vserver to have a public ip so that nat does not get in the way 1131595554 M * Bertl hum? do you have more than one public ip? 1131595554 M * Greek0 hmm, my enthusiasm was a bit too quick. I just saw CC ... lines scroll by, but I didn't notice those were of other parts of the kernel. the error is still there 1131595564 M * dos000 Bertl, yes ! 1131595569 M * Greek0 do I have to apply another patch before that one above 2.1.0-rc6? 1131595592 M * Bertl dos000: so why assign local/private ips at all? 1131595595 M * Greek0 it still talks about missing NX_IDENT and stuff 1131595634 M * dos000 Bertl, i want the machine to have separate guests with public ips 1131595637 M * Greek0 and the NX_BLEND definition is neither in my rc6 tree nor in the delta 1131595655 M * dos000 Bertl, how i do it i have no idea 1131595670 M * Bertl but you have a guest with a private ip yes? 1131595711 M * Bertl dos000: I assume the answer to your question is so trivial, that nobody tries to give it 1131595717 M * dos000 Bertl, i think i can do that. the services running in there need to not go through a nat preferably 1131595725 M * Bertl dos000: just configure the public ip. period. 1131595750 M * Bertl dos000: either when you create the guest, specify the --interface with the public IP 1131595776 M * dos000 Bertl, tow! 1131595779 M * Bertl or alternatively, if the guest already exists, change the config file inside /etc/vservers//interfaces/*/ip 1131595787 M * dos000 so no routing is needed then ! 1131595791 M * Bertl nope 1131595796 M * dos000 hahaaa 1131595804 M * Bertl just stop the guest before you change anything 1131595810 M * Bertl then do the change, and restart 1131595837 M * Bertl depending on a 'dev' or 'nodev' entry the IP is automatically assigned on guest startup (or assumed existing) 1131595951 M * Greek0 argh. my tree is fucked 1131596195 M * Greek0 *grml* 1131596203 M * dos000 Bertl, for some reason when i try to ssh into the guest it goes to the host ! 1131596211 M * Greek0 I'm going to bed, will look at it tomorrow 1131596216 M * Greek0 (man, I hate interdiff) 1131596223 M * dos000 both are running ssh 1131596225 M * Bertl Greek0: okay, good night ... 1131596235 M * Bertl dos000: no, that's just what you think :) 1131596241 M * Bertl dos000: what really happened is: 1131596256 M * Bertl - you sshd on the host is _not_ restricted to any IP 1131596266 M * dos000 hahaaa 1131596273 M * Bertl - the sshd on the host did bind to 0.0.0.0 (all IPs) 1131596287 M * Bertl - the guest sshd did not start up, because it could not bind 1131596303 A * dos000 hopes Bertl will live hapily forever in an far island with 1000 virgins 1131596331 M * Bertl hmm .. what should I do with 1000 virgins? :) 1131596349 M * Bertl well, maybe they can code :) 1131596372 M * dos000 lol 1131596812 M * dos000 all works .... thanks a milion guys ! 1131597091 M * Bertl have fun! 1131597125 M * Bertl ah, and don't forget to add yourself to the Happy Linux-VServer User page 1131597132 M * Bertl (or the Provider page) 1131597314 M * dos000 sure ... i will ! 1131597608 Q * Aiken__ Remote host closed the connection 1131599883 J * Aiken ~james@tooax6-114.dialup.optusnet.com.au 1131600246 Q * brc Ping timeout: 480 seconds 1131601794 M * Bertl okidokili ... off to bed now ... back later ... 1131601803 M * Bertl have a good whatever everyone ... cya! 1131601807 N * Bertl Bertl_zZ 1131603018 Q * jebba Ping timeout: 480 seconds 1131603421 Q * daniel_hozac Ping timeout: 480 seconds 1131605542 J * gerrit ~gerrit@c-24-22-41-133.hsd1.or.comcast.net 1131606798 J * Larsioa ~lars@83.97.96.195 1131606817 M * Larsioa Hello. Lets say i have to vservers with too different ips. How can i make so i can see how much traffic they use in MB / GB 1131606819 M * Larsioa ? 1131607101 J * brc bruce@201008046152.user.veloxzone.com.br 1131607148 Q * brc Quit: 1131607286 Q * dos000 Ping timeout: 480 seconds 1131607310 J * eugenesan eugenesan@bzq-219-189-203.cablep.bezeqint.net 1131609795 M * Larsioa Hello. Lets say i have to vservers with too different ips. How can i make so i can see how much traffic they use in MB / GB 1131610436 Q * Aiken Quit: Leaving 1131611003 J * Doener doener@i5387F2C2.versanet.de 1131611416 Q * jkl Ping timeout: 480 seconds 1131612545 M * eyck virgins can code? 1131613025 M * harry who was asking for vserver images on a vserver host?? 1131613033 M * harry * Guest Images 1131613033 M * harry * [Vserver system images] (Debian, RedHat) 1131613033 M * harry * [Vserver guest images] (Debian Woody & Sarge, Fedora, Mandrake, RedHat, Slackware, SuSE) - all geared against 2.4. 1131613036 M * harry [README] for these images. [deploy-vserver.sh] - Script to deploy the images. 1131613040 M * harry * [RPM of a patched kernel for vserver+uml (skas), guest images] of Mandrake 10.1 & Mandriva 2005, based on 2.6 kernel. 1131613333 Q * Doener Quit: Leaving 1131613715 M * Larsioa harry me 1131613722 M * Larsioa how do i install a vserver with fx. Fedora? 1131613737 M * harry fx? 1131613765 M * harry http://www.marlow.dk/site.php/tech/vserver 1131613770 M * harry that's what i'm trying now :) 1131614467 M * Larsioa http://www.powerserv.dk/trafik/ 1131614471 M * Larsioa finally i found a good script 1131614494 M * Larsioa harry: If i want to install a vserver with Fedora image can that be posibel 1131615514 M * harry sure 1131615515 M * harry why not 1131615570 J * prae ~prae@ezoffice.mandriva.com 1131615578 M * Larsioa harry: how 1131615590 M * harry isn't it explained in the manual 1131615641 M * harry ? 1131615646 M * harry i've not done it yet 1131615655 M * harry but as soon as i will... i'll explain ;) 1131615794 M * Larsioa hmm 1131615798 M * Larsioa where in the manual :-/ 1131616069 J * yungyuc ~yungyuc@220-135-53-220.HINET-IP.hinet.net 1131616467 M * Larsioa Hmm 1131616470 M * Larsioa whereis chxid 1131616506 M * Larsioa oh found it 1131616552 Q * yungyuc Quit: leaving 1131616653 M * harry http://linux-vserver.org/ seems to have a lot of info 1131616688 M * Larsioa hmm 1131616720 M * harry basicly... install a system 1131616725 M * harry remove a shitload of crap ;) 1131616731 M * Larsioa when i do chxid -c 50 -R /home/kunder/virtual/hansa it floods the terminal with Invaild arggument 1131616732 M * harry then... magic happens :) 1131616740 M * Larsioa on all the files 1131616775 M * harry well... i'm no vserver expert at all... (i just started testing stuff on it) 1131616790 M * harry so maybe it's better to let someone with more experience answer your q's 1131616796 M * Larsioa hmm okay. 1131617184 M * Larsioa any experts arround? 1131617556 J * dddd44 dhb55@218.111.178.108 1131617680 Q * dddd44 Read error: Connection reset by peer 1131618101 J * dddd44 dhb55@218.111.178.108 1131618135 J * jkl eric@c-67-174-182-65.hsd1.co.comcast.net 1131618577 Q * dddd44 Read error: Connection reset by peer 1131618672 J * dddd44 dhb55@218.111.178.108 1131619036 A * harry still trying to get my first vserver running 1131619047 M * harry how do you DELETE a vserver instance? 1131619070 M * harry just an rm -r /vservers/ isn't enough i guess... ;) 1131619228 Q * dddd44 Read error: Connection reset by peer 1131619483 M * BWare vserver NAME stop && rm -rf /etc/vservers/NAME /vservers/NAME 1131619489 M * BWare Should do the trick 1131620819 M * Larsioa BWare: are u an vserver expert? 1131620841 M * BWare Nah... just another user ;) 1131620915 M * Larsioa Damn 1131622570 J * spunky spunky@rdlax10-b078.dialup.optusnet.com.au 1131622627 Q * spunky Quit: 1131622940 Q * Vudumen Read error: Connection reset by peer 1131623195 Q * romke Quit: leaving 1131623699 J * Vudumen vudumen@perverz.hu 1131625118 J * yungyuc ~yungyuc@220-135-53-220.HINET-IP.hinet.net 1131625217 Q * yungyuc Quit: 1131626567 J * ntrs ~ntrs@iits01188.inlink.com 1131626581 J * yungyuc ~yungyuc@220-135-53-220.HINET-IP.hinet.net 1131627771 J * mrec ~revenger@p54B02D9C.dip0.t-ipconnect.de 1131628189 Q * mrec_ Ping timeout: 480 seconds 1131630114 M * eyck damn those experts, nowhere to be found when you need one 1131631287 T * * http://linux-vserver.org/ | latest stable 2.0, 2.0.1-rc1, 1.2.10, 1.2.11-rc1, devel 2.1.0-rc6 | He who asks a question is a fool for a minute; he who doesn't ask is a fool for a lifetime -- share the gained knowledge on the wiki, and we'll forget about the minute ;) 1131631287 T * Bertl - 1131631421 Q * FaUl Ping timeout: 480 seconds 1131631598 J * FaUl z4ZAeaL5YC@verbrennung.org 1131631599 M * FaUl re 1131631602 M * FaUl narf 1131631608 J * FaUl_ ntT44frQva@verbrennung.org 1131631657 J * daXas ~on@85.96.199.40 1131631808 M * daXas hi all, anyone know that how can i disable a vserver to listen on 0.0.0.0 ? i just one one ip 1131631819 M * daXas it was like that on old versions .. ? 1131631849 M * daXas i mean ip binding ... 1131631863 M * mnemoc o.o 1131631911 M * mnemoc /etc/vservers/foo/interfaces/00/ip 1131631957 M * daXas i use that file , i see it in vserver , but apache (for example) can still bind on 0.0.0.0 .. 1131631960 J * iprone ~iprone@65.83.231.99 1131632107 M * daXas umm , can nodev help? 1131632131 M * mnemoc uhm 1131632261 Q * ntrs Quit: Leaving 1131632592 Q * daXas Quit: Leaving 1131633797 J * Venomous Venom-One@host139-87.pool871.interbusiness.it 1131633806 M * Venomous hi all 1131633811 J * daniel_hozac ~daniel@c-6f1472d5.010-230-73746f22.cust.bredbandsbolaget.se 1131633835 M * Venomous hey guys any bash guru here? 1131633899 M * mnemoc you could try to find one at #bash ,-) 1131633912 M * Venomous mnemoc 1131633915 J * lilo ~lilo@lilo.usercloak.oftc.net 1131633926 M * mnemoc Venomous: what do you need? 1131633926 Q * yungyuc Quit: leaving 1131633933 M * Venomous i need to replace a string with another string 1131633948 M * daniel_hozac ${var/string/substitute} 1131633953 M * Venomous this string has a lot of white space...and i'm going crazy 1131633974 M * daniel_hozac or just var=`echo $var | sed 's....'` 1131633977 M * mnemoc or ${var//string/substitute} for 'all' 1131633981 M * Venomous i have tried a lot of time 1131634003 M * Venomous i need to move this string inside a file $INFO['set_mode'] = '1'; to $INFO['set_mode'] = '0'; 1131634030 M * Venomous as you can see the line has a lot of white space 1131634031 Q * lilo_ Ping timeout: 480 seconds 1131634037 M * Venomous i don't know 1131634047 M * Venomous i'm not able to substitute it 1131634072 M * Venomous this string appear on 400 files, so i need to automate this task 1131634092 M * Venomous tried sed and replace with no luck 1131634186 M * daniel_hozac awk '/INFO\[.set_mode.\]/ { gsub("1", "0", $0); } { print; }' ? 1131634265 M * Venomous uhmm 1131634268 M * Venomous i can try 1131634298 M * daniel_hozac that's likely to catch other things as well though. 1131634313 Q * Larsioa Quit: 1131634322 M * mnemoc echo "\$INFO['set_mode'] = '1'" | sed -e "s,^\(\$INFO\['set_mode'\] *\)=\( *\).*,\1=\2'0';,g" 1131634330 M * mnemoc ^---- *ugly* but explicit :p 1131634420 M * Venomous wait wait 1131634423 M * Venomous daniel 1131634431 M * Venomous assumin that the file is test.txt 1131634439 M * Venomous how use awk? 1131634465 M * daniel_hozac awk