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.59 | j0nr | morning all |
08:09.21 | j0nr | hope everyone had a nice weekend (and a nice father's day for the dads out there) |
08:11.32 | bilarh | piss off! |
08:11.38 | bilarh | that's all ;) |
08:16.01 | j0nr | bad weekend then? |
08:17.05 | bilarh | growls at j0nr |
08:25.16 | hali | oh yay, a nice day back at work |
08:25.34 | hali | lots of interesting and challanging tasks ahead of me this week |
08:26.36 | bilarh | hali: excuse me while i vomit in this bucket :P |
08:27.01 | hali | eww |
08:27.44 | hali | i know of very few people in IT who hate their job so much :) |
08:27.51 | hali | most people quite enjoy themselves |
08:28.08 | bilarh | i know a whole load who really, really hate it |
08:29.03 | hali | interesting |
08:29.42 | bilarh | mostly working for the same companies |
08:30.26 | hali | you've just had bad luck with companies |
08:30.47 | hali | you turned down where i work ;) |
08:30.52 | bilarh | yeah i know |
08:31.00 | bilarh | do *not* remind me ;) |
08:36.41 | AndyMillar | I like my job :) |
08:39.19 | j0nr | i like my job too |
08:43.58 | AndyMillar | says that sitting on a sofa at home looking out into a clear blue sky ;) |
08:47.40 | wethrin | slacker |
10:39.35 | *** join/#gllug DiscordianUK (~ch@fedora/DiscordianUK) |
10:54.34 | *** join/#gllug zplinux (~zplinux@213.8.57.217) |
10:54.45 | zplinux | noon |
10:55.00 | zplinux | lets discuss pid please |
10:55.32 | zplinux | when I execute a program - how can I get the pid of the exact program I run? |
10:55.51 | bilarh | how do you mean? |
10:55.57 | bilarh | and in what language? |
10:55.58 | zplinux | assuming the program is allready running on th system , so pidof - doesnt work |
10:56.04 | zplinux | bash |
10:56.07 | bilarh | $$ |
10:56.30 | zplinux | I am basicly asking if there is an alternative to use start-stop-deamon |
10:57.29 | wethrin | /etc/init.d/program start|stop|restart |
10:57.51 | zplinux | hi wethrin |
10:58.03 | AndyMillar | zplinux: pgrep <programname> |
10:58.05 | zplinux | I actually need to write this start-stop script |
10:58.27 | zplinux | Andy: assume xcalc is allready runing on the machine |
10:58.50 | zplinux | then I run xcalc again, and I want the pid of the xcalc I JUST RAN |
10:58.58 | wethrin | okay. pgrep/pkill is your friend. Unless your daemon writes its PID to /var/run/$daemon.pid |
10:59.07 | zplinux | not all pid of other xcalc on the machine |
10:59.11 | bilarh | pgrep xcalc | grep -v $$ |
10:59.35 | wethrin | Yes. $$ will contain the PID of the program you last ran |
10:59.35 | bilarh | in that case you can't do it easily unless you save the pid to a file somewhere |
10:59.41 | AndyMillar | what bilarh said |
11:00.00 | zplinux | I know |
11:00.22 | zplinux | the start-stop deamon does allow to save the pid to a file using --pid |
11:00.30 | AndyMillar | so why not use that? |
11:00.31 | bilarh | wethrin: no it doesn't, $$ is the pid of the bash process |
11:00.36 | zplinux | however is there other means to retrive that pid? |
11:00.38 | wethrin | yes. You're right |
11:00.57 | zplinux | (right) |
11:01.04 | zplinux | wethrin |
11:01.21 | zplinux | but the whole idea is coming here and learning new tricks |
11:01.24 | AndyMillar | zplinux: right, so you want to do something like |
11:01.27 | bilarh | zplinux: i'm still confused as to what you want to do? |
11:01.37 | AndyMillar | erm, no |
11:01.38 | AndyMillar | ignore me |
11:01.49 | AndyMillar | just use start-stop-deamon |
11:02.04 | zplinux | bilarth: host1 has ten users, each runing xcalc |
11:02.24 | zplinux | I want to run xcalc, and get the pid of the xcalc I just ran |
11:02.40 | bilarh | ooh right |
11:02.56 | bilarh | from a script? so your script starts xcalc and you want to know the pid of it? |
11:03.09 | zplinux | right! |
11:03.35 | AndyMillar | ps | grep xcalc | awk {'print $1'} |
11:03.38 | AndyMillar | whi not do that? |
11:03.41 | AndyMillar | why* |
11:03.57 | bilarh | zplinux: $! |
11:04.00 | wethrin | AndyMillar: If yuo have more than one xcalc.. |
11:04.52 | zplinux | $! - seems ok |
11:05.28 | AndyMillar | true, $! works in a script |
11:05.35 | AndyMillar | but not if it's already running |
11:05.42 | zplinux | thanks bilarh |
11:06.02 | bilarh | lunch |
11:09.23 | *** join/#gllug dick_turpin (~dick_turp@host217-34-163-30.in-addr.btopenworld.com) |
11:09.49 | dick_turpin | Afternoon all |
11:09.54 | wethrin | 'ello dick_turpin |
11:10.01 | wethrin | You managed to send a mail to the list |
11:10.03 | zplinux | Hi Dick! |
11:11.21 | dick_turpin | wethrin: Yep, ISP finally confessed after numerous denials although they still maintain Gllug is set up wrong |
11:11.32 | wethrin | huh |
11:11.36 | wethrin | it's probably set up fine |
11:13.38 | dick_turpin | Yeah 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.45 | zplinux | does anyone remember how to change case in nano? |
11:28.05 | zplinux | "i am" -> "I am" |
11:29.31 | zplinux | working at support - means lots of rining phones , errr |
12:14.20 | *** join/#gllug Leeds (~richardc@n219078058222.netvigator.com) |
12:14.27 | zplinux | Leeds! |
12:14.36 | Leeds | er, yes? |
12:14.50 | zplinux | (I am mimicing) |
12:14.55 | zplinux | hi dear |
12:15.04 | zplinux | is it as hot there as it is here? |
12:15.12 | zplinux | 41 degrees? |
12:15.29 | dick_turpin | Royal order of the boot? |
12:17.11 | antiphase | apt-get remove nano |
12:17.24 | antiphase | --with-extreme-prejudice |
12:18.41 | Leeds | 32C or so high today |
12:27.20 | zplinux | god dam it |
12:27.47 | zplinux | how can I take a list of MACS and seperate them with : after every two chars? |
12:27.50 | zplinux | python? |
12:27.59 | zplinux | 32 is hot |
12:33.55 | AndyMillar | echo aabbccddeeffgg | while read -n2 c ; do echo -n ${c}:; done | sed s/:*$// |
12:33.57 | AndyMillar | for example? |
12:35.03 | zplinux | thanks |
12:35.20 | zplinux | I really thought I should write this in python |
12:36.17 | zplinux | how to feed each line in the file to the aabbccddeeffgg ? |
12:36.44 | ChoHag | perl -pe 'for $i (0..4) { s/(:|^)(..)/$2:/g }' |
12:38.25 | zplinux | Andymiller: why the sed at the end? |
12:39.09 | zplinux | cat file.csv| while read -n2 c ; do echo -n ${c}:;done |
12:39.13 | zplinux | I get a long line |
12:39.28 | zplinux | how to keep the \n at the end of each mac? |
12:39.29 | AndyMillar | one mac per line? |
12:39.37 | zplinux | yes please |
12:40.03 | AndyMillar | while read line ; do while read -n2 c ; do echo -n ${c}:;done ; sed s/:*$// ; echo ; done |
12:40.06 | AndyMillar | should do it |
12:40.15 | AndyMillar | erm, no |
12:40.41 | AndyMillar | while read line ; do echo $line | while read -n2 c ; do echo -n ${c}:;done ; sed s/:*$// ; echo ; done < file.csv |
12:40.46 | AndyMillar | i think |
12:40.46 | zplinux | if ${c} == "\n" ? |
12:41.19 | zplinux | no, sorry |
12:41.35 | bilarh | the new line will not be read in, because it's the IFS |
12:42.02 | zplinux | what is IFS? |
12:42.15 | zplinux | need I add a counter - then? |
12:42.28 | zplinux | I want each mac in its own line |
12:42.55 | dick_turpin | Ahahaha that code has a 'kiss' avatar in it on my Emapathy |
12:43.21 | AndyMillar | zplinux: that should do what you want :) |
12:44.44 | bilarh | echo aabbccddeeff | perl -n -e 'm/^(..)(..)(..)(..)(..)(..)$/; print "$1:$2:$3:$4:$5:$6\n"; ' |
12:45.24 | zplinux | YES |
12:45.32 | zplinux | I should know perl... |
12:46.01 | zplinux | ok, how to warp a line after each line? |
12:46.24 | *** join/#gllug agk__ (~agk@nat/redhat/x-qwttvscjxzkaulqz) |
12:46.33 | bilarh | what do you mean warp? |
12:46.51 | zplinux | I want to make a dhcpcd.conf file from this data |
12:47.06 | zplinux | first step was to make it leagel macs |
12:47.20 | bilarh | right? |
12:47.21 | zplinux | now I need to put a line before each line |
12:47.39 | zplinux | I can do it with bash... |
12:47.44 | bilarh | umm... i'd probably modify the "print" statement if i wanted something else printed in front of it ;) |
12:47.45 | zplinux | let me see here |
12:54.37 | ChoHag | http://img257.imageshack.us/img257/8176/commonsensegoddamnsuper.jpg |
12:54.50 | ChoHag | Also 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.00 | zplinux | I wish I had wrote down all the advice you recently gave me about generating txt files from scripts |
14:25.22 | zplinux | how can I echo a bunch of lines without doing this: |
14:25.31 | wethrin | cat << EOF |
14:25.33 | wethrin | fooble |
14:25.35 | wethrin | blar |
14:25.35 | wethrin | baz |
14:25.36 | wethrin | EOF |
14:25.43 | zplinux | echo "subnet 10.9.0.0 netmask 255.255.0.0 ">>/etc/dhcpcd.cof |
14:25.49 | zplinux | cool |
14:26.27 | zplinux | wethrin: kindly name the time and place I should fly in to buy you beer :-) |
14:26.40 | zplinux | maybe the debian conf |
14:26.46 | zplinux | aint it soon? |
14:27.15 | wethrin | Fosdem :) |
14:27.28 | zplinux | but that is in feb |
14:27.35 | zplinux | nothing sooner? |
14:27.58 | zplinux | by the way is it leagal to use the term beach here? |
14:27.59 | wethrin | Not that I'm going to go to |
14:28.07 | wethrin | err..... |
14:28.08 | zplinux | you allready know I am not a rude person |
14:28.23 | wethrin | beach is something sandy by the sea or lake |
14:28.30 | zplinux | o ok |
14:29.11 | antiphase | There aren't any camels though, so you might not like our bitches^wbeaches |
14:35.01 | AndyMillar | zplinux: that's what irc logs are for, so you can go back and check |
14:35.14 | wethrin | ibot logs |
14:35.15 | ibot | All 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.05 | AndyMillar | <PROTECTED> |
14:36.36 | zplinux | wish I had that little moment of silinse |
14:41.59 | antiphase | just saw bilarh's Perl |
14:42.05 | bilarh | piss off |
14:42.05 | antiphase | OMG |
14:58.11 | *** join/#gllug DiscordianUK (~ch@fedora/DiscordianUK) |
15:39.02 | *** join/#gllug DiscordianUK (~ch@fedora/DiscordianUK) |
15:54.36 | dick_turpin | I notice you lot are getting more horrid every day! |
15:54.46 | dick_turpin | Keep up the good work :-D |
15:54.58 | AndyMillar | that's pretty hard work tbh |
15:58.49 | dick_turpin | AndyMillar: Na wethrin is coming along nicely |
16:02.15 | boudiccas | i'm not getting horrid, but i am becoming more pulchritudinous |
16:03.08 | dick_turpin | Ooh now there's a new word, I shall look it up |
16:03.10 | boudiccas | does that count dick_turpin ? |
16:04.01 | dick_turpin | boudiccas: Aha Yes you are gorgeous :-) |
16:04.08 | boudiccas | lol |
16:04.45 | boudiccas | its a good word to pull out and really throw people off the scent with |
16:05.27 | boudiccas | and if people dont agree then you can always defenestrate them |
16:07.35 | boudiccas | anyway, i need to cook my salad for tea |
16:11.31 | dick_turpin | boudiccas: Less of the pulling out you little minx |
16:12.00 | DiscordianUK | how do you 'cook' salad? |
16:12.51 | dick_turpin | Very carefully |
16:13.51 | boudiccas | in a slow cooker |
16:14.12 | zplinux | can I serve dhcp using a mysql table with macs? |
16:14.23 | boudiccas | its actually very nice, although it doesnt sound so |
16:14.25 | zplinux | can dhcpd use that directly? |
16:14.45 | dick_turpin | Yes so long as its via FTP |
16:15.46 | zplinux | please dont lauch: |
16:15.54 | zplinux | can I tell ldap to use mysql |
16:16.14 | zplinux | so it will act as a frontend to dhcpd? |
16:16.23 | dick_turpin | Bored going home |
16:16.31 | zplinux | :-( |
16:16.33 | *** part/#gllug dick_turpin (~dick_turp@host217-34-163-30.in-addr.btopenworld.com) |
16:22.05 | wethrin | http://linux.derkeiler.com/Mailing-Lists/Fedora/2004-06/7627.html |
16:24.38 | zplinux | thnks mate |
16:26.07 | zplinux | no it doesnt help |
16:32.46 | antiphase | Why would you mix LDAP and MySQL unless you were a serious glutton for punishment? |
16:33.02 | antiphase | It would be like smoking a speedball, with extra rat poison |
16:36.49 | *** join/#gllug DiscordianUK (~ch@fedora/DiscordianUK) |
16:40.39 | zplinux | I did find code a guy wrote to read mac address from a table and generate the dhcpd conf file |
16:40.43 | zplinux | in C! |
16:41.13 | zplinux | must admit I understand some |
16:43.03 | antiphase | That's a remarkably silly thing to do |
16:43.25 | zplinux | right |
16:43.30 | zplinux | but nice code |
16:43.40 | zplinux | elegant |
16:58.06 | AndyMillar | you may as well do bash |
16:58.26 | antiphase | And then use the time you saved to drink beer |
16:59.07 | AndyMillar | doesn't drink any more :) |
16:59.36 | antiphase | Has your pie quotient fallen as a result? |
17:08.19 | AndyMillar | indeed |
17:14.59 | cpufreak | that's not worked for me |
17:15.06 | cpufreak | :/ |
17:27.59 | *** join/#gllug zplinux (~zplinux@213.8.57.217) |
17:31.22 | ChoHag | My cat's playing with wires. |
17:31.26 | ChoHag | I'm tempted to plug them in. |
18:00.24 | cpufreak | get 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) |