IRC log for #gllug on 20070812

02:44.00*** join/#gllug shai_ (n=Shai@l192-117-110-233.cable.actcom.net.il)
05:00.32*** join/#gllug shai_ (n=Shai@l192-117-110-233.cable.actcom.net.il)
05:13.33*** join/#gllug shai (n=Shai@l192-117-110-233.cable.actcom.net.il)
07:16.03*** join/#gllug niv_one_three (n=niv@bzq-84-108-124-194.cablep.bezeqint.net)
07:24.27niv_one_threehi all , I see I got two ways to approch iptales
07:25.06niv_one_threeeither by running a script with each line executing a iptalbes command , or using a iptables_restore
07:28.43niv_one_threewhich is more common?
09:37.03Leedsput it in a script
11:28.17*** join/#gllug Chr2s (n=chatzill@crag1.plus.com)
12:09.35*** join/#gllug shai_ (n=Shai@l192-117-110-233.cable.actcom.net.il)
12:46.40*** join/#gllug goibhniu (n=cillian@87-194-36-120.bethere.co.uk)
13:01.38*** join/#gllug shai (n=Shai@l192-117-110-233.cable.actcom.net.il)
13:53.22*** join/#gllug goibhniu (n=cillian@87-194-36-120.bethere.co.uk)
14:50.17gregjhttp://ars.userfriendly.org/cartoons/?id=20070812
14:50.19gregjI don't get this
14:50.39Ch0Hag"If you don't know how to convert grams to ounces etc., ask your 8-year old to do it on google for you."
14:50.56Ch0HagYeah that was a bit weird.
14:52.25antiphaseIf children don't know how many grams there are in an ounce they should be locked in the cellar until they do
14:52.38gregjI don't get the walkiria, not the text... I am not a damn fool...
14:53.02antiphaseIt's a Viking
14:53.12gregjit is her
14:53.14gregjanyways
14:53.20gregjI don't get her there
14:59.08*** join/#gllug goltor (n=goltor@77-99-148-49.cable.ubr06.hari.blueyonder.co.uk)
15:01.06Leedsgregj: have you ever heard the saying "it isn't over until the fat lady sings"?
15:04.11Leedsso... I went to the gym... and they have a bank of TVs in front of the machines
15:04.51LeedsI generally ignore whatever's on... but this evening, they were showing Dodgeball, Tomb Raider, Bourne Identity, and...
15:04.59Leedsa tourist show about Leeds, in Chinese! :-D
15:25.43*** join/#gllug goibhniu (n=cillian@87-194-36-120.bethere.co.uk)
16:44.38*** join/#gllug clive-h (n=ch@chills.demon.co.uk)
16:53.14gw280father ted++
16:54.43*** join/#gllug eye69 (n=magnus@ipv6.upcore.net)
17:03.15*** join/#gllug catalyst (n=catalyst@allegro/user/angelchild)
17:24.40*** join/#gllug gregj_ (n=gj@81-186-226-63.citynet.pl)
18:26.57*** join/#gllug mylesbraithwaite (n=mylesbra@CPE000625dd1ada-CM0012c9a00c02.cpe.net.cable.rogers.com)
19:04.02*** join/#gllug gregj (n=gj@81-186-226-63.citynet.pl)
20:47.47*** join/#gllug mylesbraithwaite (n=mylesbra@CPE000625dd1ada-CM0012c9a00c02.cpe.net.cable.rogers.com)
21:14.01wethrinwhumpf
21:15.02clive-hindeed
21:15.20wethrinI got back only a few minutes ago
21:33.05niv_one_threecan some one help me with this script: http://rafb.net/p/DTptgb57.html ?
21:33.15niv_one_threewhat am I doing wrong?
21:33.44niv_one_threeit is ment to be called with $1 being a picture path
21:34.09niv_one_threethen if my mobile doesnt answer the bluetooth ping it should email me the pictures
21:34.38wethrinWhat does 'echo $PICTURE' give?
21:35.06niv_one_three/path/to/picture.jpg
21:35.29wethrinSo what's the trouble?
21:35.52niv_one_threeam I using the for right?
21:36.22niv_one_threeI am tring to triger by the first snap , yet get the rest of the pictures snapped
21:36.44niv_one_threeso I will get five pictures, one of which has the intruder face
21:37.07wethrinWell. Does the 'find' command give you back a list of files separated by spaces?
21:37.22niv_one_three:-\
21:37.27niv_one_threelet me see
21:37.28trousersI does newlines, doesn't it?
21:37.33trouserss/I/It/
21:37.41wethrinI think that may still be acceptable to a 'for'
21:38.12wethrinRule 1 of shell scripting - check each block (or preferably line) works on its own
21:38.43niv_one_threeso you think its ok from the looks of it ?
21:38.49trouserswethrin: I'm still looking for a project to code for D:
21:39.22trouserswethrin: I got bored today and made a dice roller for playing D&D with friends on Tuesday D:
21:39.31trousersWoe is me!
21:40.04wethrinniv_one_three: Except your 'grep' bit. You're redirecting output to null, then redirecting output to the file '2'
21:45.43niv_one_threeok , when the phone answers I get: 0 bytes from 00:0E:6D:45:97:A1 id 3 time 15.05ms
21:46.15niv_one_threeok , when the phone answers I get: 0 bytes from <MAC> id 0..5 time 15.05ms
21:46.28niv_one_three(err..)
21:47.22niv_one_threeIf this happens , I want PICTURE_PREF to get null
21:47.29niv_one_threeam I doing it right?
21:48.34niv_one_threesudo l2ping -t1 -c6 <MAC> |grep bytes >/dev/hull && PICTURE_PREF=`echo "$PICTURE"
21:48.35niv_one_three?
21:50.37wethrinDoes 'bytes' not appear in the ping preamble?
21:50.47niv_one_threeit does
21:51.01wethrinSo it'll always return true
21:52.18niv_one_threeif I disable my bluetooth I get: ' Can't connect: Host is down'
21:52.45wethrinYou don't get something along the lines of: PING <MAC>, 56 data bytes ?
21:53.07niv_one_threeno , thins it l2ping a bluetooth ping
21:53.32wethrinokay
21:54.12niv_one_threement to say no, this is a bluetooth ping - different output
21:54.43wethrinBut to save you the trouble of grepping, what's the exit code if the ping fails?
21:55.28niv_one_threethis doesnt appear in the man l2ping
21:55.35wethrintry it
21:55.44wethrinping something you know works
21:55.46niv_one_threecan't I just plot it ?
21:55.47wethrinthen 'echo $?'
21:55.51wethrinplot it?
21:55.52niv_one_threeok
21:57.04niv_one_three<PROTECTED>
21:57.09niv_one_threeright?
21:57.11wethrinNo
21:57.17niv_one_three:-\
21:57.21wethrinsudo l2ping -t1 -c6 <MAC>
21:57.21wethrinecho $?
21:57.37wethrinassuming, of course, sudo will carry the exit codes up
21:58.23niv_one_threeok, when the host is down I got 1
21:58.57wethrinAnd when it's up, you get 0?
21:59.01niv_one_threeand when its up and working I get a zero
21:59.05wethrinGood
21:59.09niv_one_threeso?
21:59.10wethrinSo you just need then:
21:59.38wethrinsudo l2ping -t1 -c6 <MAC> && PICTURE_PREF=`echo $PICTURE`
21:59.49wethrinin fact...why do you even need the second bit?
21:59.53niv_one_threehmm..
22:00.08niv_one_threeI see it works..
22:00.20wethrinAhh....sorry, looking back at your script, you do need it
22:01.20niv_one_threewould I need to sudo l2ping -t1 -c6 >MAC> 2> && PICTURE_PREF=`echo $PICTURE`
22:01.21niv_one_three?
22:01.47wethrinYou'd need to tell it where to redirect stderr to
22:02.30niv_one_threeI think it doesnt matter, as I am cathing the exit code
22:03.09wethrinDepends. If it throws anything to stdout or stderr, you'll see it on the screen
22:03.30niv_one_threeright - only good for debugging
22:06.01wethrinso you want to redirect all output from l2ping, or just error, or?
22:06.29niv_one_threeseems ok with no 2>
22:06.41niv_one_threein fact the 2> yeilods an error
22:06.46wethrinof course it would
22:06.55wethrinYou're not telling it where you want to redirect the output to
22:07.05niv_one_threeoh ya
22:07.08niv_one_three4got that
22:09.41niv_one_threeseems to actually work :-)
22:10.04niv_one_threethank you very much wethrin for teaching me bash
22:10.35wethrinJust needs practice
22:17.34morsingwethrin!
22:17.41wethrinmorsing!
22:17.49wethrinHow was the drive back?
22:18.10morsingtiring
22:18.42morsingDid you get on the train?
22:19.17wethrinYes
22:19.25wethrinDid you drop Russell off at Watford?
22:20.23wethrinAnyway. Thanks for suggesting Castleton. I had a really good weekend
22:21.34morsingwethrin: I left Russell at Watford Gap Services. He was getting annoying
22:21.43wethrinheh
22:21.44morsingwethrin: Did you hear about the murder?
22:21.51wethrinYeah. On the M40
22:22.01morsingwethrin: I had a great weekend as well - thanks :)
22:24.37wethrinRight. I think I should make an attempt to get to sleep
22:24.55wethrinnight
22:26.47gw280hrmmmmmmmmmmmmmmmm
22:26.49gw280you're all plebs.
22:27.11gw280especially wethrin
22:27.17clive-hnice of you to say so
22:27.30gw280clive-h: he went to oxford.
22:27.37clive-hyes?
22:27.42clive-hand?
22:27.49clive-hso did I
22:27.56gw280argh, then you're a pleb too
22:28.20clive-hand you're an upstart
22:28.25gw280I see.
22:29.14clive-herrr i don't understand this
22:29.37gw280?
22:29.57clive-hThey're both well regarded unis
22:30.09gw280cambridge is clearly far better
22:30.56clive-hAs far as it goes I like Cambridge town better
22:31.42gw280mwahaha
22:32.41clive-hI should have taken that job at CUP years back
22:32.57morsingBeer
22:33.06gw280morsing: you don't have a gun.
22:33.32morsingG'night all
22:51.27*** join/#gllug flo|va-nu-pied (n=florent@unaffiliated/flovanupied/x-758957)
22:55.10trousersEvenin'
23:22.33*** join/#gllug Ch0Hag (n=mking@knight.monnsta.net)
23:47.44gw280LALALA

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