IRC log for #gllug on 20100621

04:13.46*** join/#gllug Leeds (~richardc@www.scorefive.com)
05:13.40*** join/#gllug shai (~Shai@l192-117-110-233.cable.actcom.net.il)
06:27.53*** join/#gllug boudiccas (~boudiccas@92.29.50.85)
07:13.31*** join/#gllug boudiccas (~boudiccas@92.29.50.85)
08:08.59j0nrmorning all
08:09.21j0nrhope everyone had a nice weekend (and a nice father's day for the dads out there)
08:11.32bilarhpiss off!
08:11.38bilarhthat's all ;)
08:16.01j0nrbad weekend then?
08:17.05bilarhgrowls at j0nr
08:25.16halioh yay, a nice day back at work
08:25.34halilots of interesting and challanging tasks ahead of me this week
08:26.36bilarhhali: excuse me while i vomit in this bucket :P
08:27.01halieww
08:27.44halii know of very few people in IT who hate their job so much :)
08:27.51halimost people quite enjoy themselves
08:28.08bilarhi know a whole load who really, really hate it
08:29.03haliinteresting
08:29.42bilarhmostly working for the same companies
08:30.26haliyou've just had bad luck with companies
08:30.47haliyou turned down where i work ;)
08:30.52bilarhyeah i know
08:31.00bilarhdo *not* remind me ;)
08:36.41AndyMillarI like my job :)
08:39.19j0nri like my job too
08:43.58AndyMillarsays that sitting on a sofa at home looking out into a clear blue sky ;)
08:47.40wethrinslacker
10:39.35*** join/#gllug DiscordianUK (~ch@fedora/DiscordianUK)
10:54.34*** join/#gllug zplinux (~zplinux@213.8.57.217)
10:54.45zplinuxnoon
10:55.00zplinuxlets discuss pid please
10:55.32zplinuxwhen I execute a program - how can I get the pid of the exact program I run?
10:55.51bilarhhow do you mean?
10:55.57bilarhand in what language?
10:55.58zplinuxassuming the program is allready running on th system , so pidof - doesnt work
10:56.04zplinuxbash
10:56.07bilarh$$
10:56.30zplinuxI am basicly asking if there is an alternative to use start-stop-deamon
10:57.29wethrin/etc/init.d/program start|stop|restart
10:57.51zplinuxhi wethrin
10:58.03AndyMillarzplinux: pgrep <programname>
10:58.05zplinuxI actually need to write this start-stop script
10:58.27zplinuxAndy: assume xcalc is allready runing on the machine
10:58.50zplinuxthen I run xcalc again, and I want the pid of the xcalc I JUST RAN
10:58.58wethrinokay. pgrep/pkill is your friend. Unless your daemon writes its PID to /var/run/$daemon.pid
10:59.07zplinuxnot all pid of other xcalc on the machine
10:59.11bilarhpgrep xcalc | grep -v $$
10:59.35wethrinYes. $$ will contain the PID of the program you last ran
10:59.35bilarhin that case you can't do it easily unless you save the pid to a file somewhere
10:59.41AndyMillarwhat bilarh said
11:00.00zplinuxI know
11:00.22zplinuxthe start-stop deamon does allow to save the pid to a file using --pid
11:00.30AndyMillarso why not use that?
11:00.31bilarhwethrin: no it doesn't, $$ is the pid of the bash process
11:00.36zplinuxhowever is there other means to retrive that pid?
11:00.38wethrinyes. You're right
11:00.57zplinux(right)
11:01.04zplinuxwethrin
11:01.21zplinuxbut the whole idea is coming here and learning new tricks
11:01.24AndyMillarzplinux: right, so you want to do something like
11:01.27bilarhzplinux: i'm still confused as to what you want to do?
11:01.37AndyMillarerm, no
11:01.38AndyMillarignore me
11:01.49AndyMillarjust use start-stop-deamon
11:02.04zplinuxbilarth: host1 has ten users, each runing xcalc
11:02.24zplinuxI want to run xcalc, and get the pid of the xcalc I just ran
11:02.40bilarhooh right
11:02.56bilarhfrom a script? so your script starts xcalc and you want to know the pid of it?
11:03.09zplinuxright!
11:03.35AndyMillarps | grep xcalc | awk {'print $1'}
11:03.38AndyMillarwhi not do that?
11:03.41AndyMillarwhy*
11:03.57bilarhzplinux: $!
11:04.00wethrinAndyMillar: If yuo have more than one xcalc..
11:04.52zplinux$! - seems ok
11:05.28AndyMillartrue, $! works in a script
11:05.35AndyMillarbut not if it's already running
11:05.42zplinuxthanks bilarh
11:06.02bilarhlunch
11:09.23*** join/#gllug dick_turpin (~dick_turp@host217-34-163-30.in-addr.btopenworld.com)
11:09.49dick_turpinAfternoon all
11:09.54wethrin'ello dick_turpin
11:10.01wethrinYou managed to send a mail to the list
11:10.03zplinuxHi Dick!
11:11.21dick_turpinwethrin: Yep, ISP finally confessed after numerous denials although they still maintain Gllug is set up wrong
11:11.32wethrinhuh
11:11.36wethrinit's probably set up fine
11:13.38dick_turpinYeah although it was an interesting exercise in 'problem ownership' I see it every day here, "Its not our fault" "Its not our fault" "Its not our fault" "Oh OK it is our fault, sort of, maybe, possibly"
11:27.45zplinuxdoes anyone remember how to change case in nano?
11:28.05zplinux"i am" -> "I am"
11:29.31zplinuxworking at support - means lots of rining phones , errr
12:14.20*** join/#gllug Leeds (~richardc@n219078058222.netvigator.com)
12:14.27zplinuxLeeds!
12:14.36Leedser, yes?
12:14.50zplinux(I am mimicing)
12:14.55zplinuxhi dear
12:15.04zplinuxis it as hot there as it is here?
12:15.12zplinux41 degrees?
12:15.29dick_turpinRoyal order of the boot?
12:17.11antiphaseapt-get remove nano
12:17.24antiphase--with-extreme-prejudice
12:18.41Leeds32C or so high today
12:27.20zplinuxgod dam it
12:27.47zplinuxhow can I take a list of MACS and seperate them with : after every two chars?
12:27.50zplinuxpython?
12:27.59zplinux32 is hot
12:33.55AndyMillarecho aabbccddeeffgg | while read -n2 c ; do echo -n ${c}:; done | sed s/:*$//
12:33.57AndyMillarfor example?
12:35.03zplinuxthanks
12:35.20zplinuxI really thought I should write this in python
12:36.17zplinuxhow to feed each line in the file to the aabbccddeeffgg ?
12:36.44ChoHagperl -pe 'for $i (0..4) { s/(:|^)(..)/$2:/g }'
12:38.25zplinuxAndymiller: why the sed at the end?
12:39.09zplinuxcat file.csv| while read -n2 c ; do echo -n ${c}:;done
12:39.13zplinuxI get a long line
12:39.28zplinuxhow to keep the \n at the end of each mac?
12:39.29AndyMillarone mac per line?
12:39.37zplinuxyes please
12:40.03AndyMillarwhile read line ; do while read -n2 c ; do echo -n ${c}:;done ; sed s/:*$// ; echo ; done
12:40.06AndyMillarshould do it
12:40.15AndyMillarerm, no
12:40.41AndyMillarwhile read line ; do echo $line | while read -n2 c ; do echo -n ${c}:;done ; sed s/:*$// ; echo ; done < file.csv
12:40.46AndyMillari think
12:40.46zplinuxif ${c} == "\n" ?
12:41.19zplinuxno, sorry
12:41.35bilarhthe new line will not be read in, because it's the IFS
12:42.02zplinuxwhat is IFS?
12:42.15zplinuxneed I add a counter - then?
12:42.28zplinuxI want each mac in its own line
12:42.55dick_turpinAhahaha that code has a 'kiss' avatar in it on my Emapathy
12:43.21AndyMillarzplinux: that should do what you want :)
12:44.44bilarhecho aabbccddeeff  | perl -n -e 'm/^(..)(..)(..)(..)(..)(..)$/; print "$1:$2:$3:$4:$5:$6\n"; '
12:45.24zplinuxYES
12:45.32zplinuxI should know perl...
12:46.01zplinuxok, how to warp a line after each line?
12:46.24*** join/#gllug agk__ (~agk@nat/redhat/x-qwttvscjxzkaulqz)
12:46.33bilarhwhat do you mean warp?
12:46.51zplinuxI want to make a dhcpcd.conf file from this data
12:47.06zplinuxfirst step was to make it leagel macs
12:47.20bilarhright?
12:47.21zplinuxnow I need to put a line before each line
12:47.39zplinuxI can do it with bash...
12:47.44bilarhumm... i'd probably modify the "print" statement if i wanted something else printed in front of it ;)
12:47.45zplinuxlet me see here
12:54.37ChoHaghttp://img257.imageshack.us/img257/8176/commonsensegoddamnsuper.jpg
12:54.50ChoHagAlso http://traintimes.org.uk/map/tube/
13:07.35*** join/#gllug celesteh (~celesteh@sblug/member/celesteh)
13:50.46*** join/#gllug DiscordianUK (~ch@fedora/DiscordianUK)
14:25.00zplinuxI wish I had wrote down all the advice you recently gave me about generating txt files from scripts
14:25.22zplinuxhow can I echo a bunch of lines without doing this:
14:25.31wethrincat << EOF
14:25.33wethrinfooble
14:25.35wethrinblar
14:25.35wethrinbaz
14:25.36wethrinEOF
14:25.43zplinuxecho "subnet 10.9.0.0 netmask 255.255.0.0 ">>/etc/dhcpcd.cof
14:25.49zplinuxcool
14:26.27zplinuxwethrin: kindly name the time and place I should fly in to buy you beer :-)
14:26.40zplinuxmaybe the debian conf
14:26.46zplinuxaint it soon?
14:27.15wethrinFosdem :)
14:27.28zplinuxbut that is in feb
14:27.35zplinuxnothing sooner?
14:27.58zplinuxby the way is it leagal to use the term beach here?
14:27.59wethrinNot that I'm going to go to
14:28.07wethrinerr.....
14:28.08zplinuxyou allready know I am not a rude person
14:28.23wethrinbeach is something sandy by the sea or lake
14:28.30zplinuxo ok
14:29.11antiphaseThere aren't any camels though, so you might not like our bitches^wbeaches
14:35.01AndyMillarzplinux: that's what irc logs are for, so you can go back and check
14:35.14wethrinibot logs
14:35.15ibotAll conversations are logged to http://ibot.rikers.org/channel, where "channel" is replaced by the URL-encoded channel name, such as %23freenode for #freenode. Lines starting with spaces are not logged. logs are updated daily
14:36.05AndyMillar<PROTECTED>
14:36.36zplinuxwish I had that little moment of silinse
14:41.59antiphasejust saw bilarh's Perl
14:42.05bilarhpiss off
14:42.05antiphaseOMG
14:58.11*** join/#gllug DiscordianUK (~ch@fedora/DiscordianUK)
15:39.02*** join/#gllug DiscordianUK (~ch@fedora/DiscordianUK)
15:54.36dick_turpinI notice you lot are getting more horrid every day!
15:54.46dick_turpinKeep up the good work :-D
15:54.58AndyMillarthat's pretty hard work tbh
15:58.49dick_turpinAndyMillar: Na wethrin is coming along nicely
16:02.15boudiccasi'm not getting horrid, but i am becoming more pulchritudinous
16:03.08dick_turpinOoh now there's a new word, I shall look it up
16:03.10boudiccasdoes that count dick_turpin ?
16:04.01dick_turpinboudiccas: Aha Yes you are gorgeous :-)
16:04.08boudiccaslol
16:04.45boudiccasits a good word to pull out and really throw people off the scent with
16:05.27boudiccasand if people dont agree then you can always defenestrate them
16:07.35boudiccasanyway, i need to cook my salad for tea
16:11.31dick_turpinboudiccas: Less of the pulling out you little minx
16:12.00DiscordianUKhow do you 'cook' salad?
16:12.51dick_turpinVery carefully
16:13.51boudiccasin a slow cooker
16:14.12zplinuxcan I serve dhcp using a mysql table with macs?
16:14.23boudiccasits actually very nice, although it doesnt sound so
16:14.25zplinuxcan dhcpd use that directly?
16:14.45dick_turpinYes so long as its via FTP
16:15.46zplinuxplease dont lauch:
16:15.54zplinuxcan I tell ldap to use mysql
16:16.14zplinuxso it will act as a frontend to dhcpd?
16:16.23dick_turpinBored going home
16:16.31zplinux:-(
16:16.33*** part/#gllug dick_turpin (~dick_turp@host217-34-163-30.in-addr.btopenworld.com)
16:22.05wethrinhttp://linux.derkeiler.com/Mailing-Lists/Fedora/2004-06/7627.html
16:24.38zplinuxthnks mate
16:26.07zplinuxno it doesnt help
16:32.46antiphaseWhy would you mix LDAP and MySQL unless you were a serious glutton for punishment?
16:33.02antiphaseIt would be like smoking a speedball, with extra rat poison
16:36.49*** join/#gllug DiscordianUK (~ch@fedora/DiscordianUK)
16:40.39zplinuxI did find code a guy wrote to read mac address from a table and generate the dhcpd conf file
16:40.43zplinuxin C!
16:41.13zplinuxmust admit I understand some
16:43.03antiphaseThat's a remarkably silly thing to do
16:43.25zplinuxright
16:43.30zplinuxbut nice code
16:43.40zplinuxelegant
16:58.06AndyMillaryou may as well do bash
16:58.26antiphaseAnd then use the time you saved to drink beer
16:59.07AndyMillardoesn't drink any more :)
16:59.36antiphaseHas your pie quotient fallen as a result?
17:08.19AndyMillarindeed
17:14.59cpufreakthat's not worked for me
17:15.06cpufreak:/
17:27.59*** join/#gllug zplinux (~zplinux@213.8.57.217)
17:31.22ChoHagMy cat's playing with wires.
17:31.26ChoHagI'm tempted to plug them in.
18:00.24cpufreakget a video camera first.
18:20.06*** join/#gllug stafacus_ (~stafacus@78.146.208.237)
18:20.06*** join/#gllug stafacus (~stafacus@78.146.208.237)
18:22.22*** part/#gllug stafacus_ (~stafacus@78.146.208.237)
18:34.08*** join/#gllug ChoHag (~mking@109-170-148-201.xdsl.murphx.net)
19:01.13*** join/#gllug DiscordianUK (~ch@fedora/DiscordianUK)
19:26.20*** join/#gllug ChoHag (~mking@109-170-148-201.xdsl.murphx.net)
19:34.47*** join/#gllug ChoHag_ (~mking@109-170-148-201.xdsl.murphx.net)
20:08.14*** join/#gllug DiscordianUK (~ch@fedora/DiscordianUK)
21:29.26*** join/#gllug ChoHag (~mking@109-170-148-201.xdsl.murphx.net)
23:33.22*** join/#gllug z00dax (~kbsingh@chakra.karan.org)
23:46.00*** join/#gllug Leeds (~richardc@n219078058222.netvigator.com)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.