--- Log opened Mon Jan 24 00:00:20 2011 00:36 -!- epoxy [~ls3@71-15-26-216.dhcp.hlrg.nc.charter.com] has quit [Quit: Leaving] 01:08 -!- ShadowHntr [~sentinel@wikipedia/Shadowhntr] has quit [Quit: End of line.] 05:22 -!- MuskyHusky [Smegma@unaffiliated/coil] has quit [Read error: No route to host] 05:23 -!- Sheath [Smegma@stoned.sleepingwolf.net] has joined #se2600 05:23 -!- Sheath [Smegma@stoned.sleepingwolf.net] has quit [Changing host] 05:23 -!- Sheath [Smegma@unaffiliated/coil] has joined #se2600 05:23 -!- mode/#se2600 [+o Sheath] by ChanServ 06:34 -!- Dolemite [~scott@h96-60-254-248.cncrtn.dsl.dynamic.tds.net] has joined #se2600 06:34 -!- mode/#se2600 [+o Dolemite] by ChanServ 06:34 <@Dolemite> mr0ning, be0tches and h0ez! 07:57 -!- Neoteric [~timball@pool-96-255-150-23.washdc.fios.verizon.net] has quit [Ping timeout: 240 seconds] 09:17 <@nachoguy> mr0nin 09:20 -!- m0j0-j0j0 [~jkemp@cnet520-hosoc.nandomedia.com] has joined #se2600 09:43 <@Dolemite> Howdy, nacho! 09:51 -!- Venom_X [~pjacobs@75.92.43.21] has joined #se2600 09:51 -!- mode/#se2600 [+o Venom_X] by ChanServ 10:15 -!- Dickie [~Dickie@unaffiliated/dickie] has quit [Read error: Connection reset by peer] 10:16 -!- Dickie [~Dickie@c-71-207-225-179.hsd1.al.comcast.net] has joined #se2600 10:16 -!- Dickie [~Dickie@c-71-207-225-179.hsd1.al.comcast.net] has quit [Changing host] 10:16 -!- Dickie [~Dickie@unaffiliated/dickie] has joined #se2600 11:24 -!- ShadowHntr [~sentinel@ec2-184-72-68-47.compute-1.amazonaws.com] has joined #se2600 11:24 -!- ShadowHntr [~sentinel@ec2-184-72-68-47.compute-1.amazonaws.com] has quit [Changing host] 11:24 -!- ShadowHntr [~sentinel@wikipedia/Shadowhntr] has joined #se2600 11:25 -!- mode/#se2600 [+o ShadowHntr] by ChanServ 12:01 -!- Venom_X [~pjacobs@75.92.43.21] has quit [Ping timeout: 264 seconds] 12:07 -!- Venom_X [~pjacobs@66.54.185.131] has joined #se2600 12:07 -!- mode/#se2600 [+o Venom_X] by ChanServ 12:31 -!- Falun_ [~richard@75-37-195-222.lightspeed.lsatca.sbcglobal.net] has quit [Disconnected by services] 12:32 -!- Falun [~richard@75-37-195-222.lightspeed.lsatca.sbcglobal.net] has joined #se2600 12:40 -!- ShadowHntr [~sentinel@wikipedia/Shadowhntr] has quit [Remote host closed the connection] 12:41 -!- ShadowHntr [~sentinel@wikipedia/Shadowhntr] has joined #se2600 12:41 -!- mode/#se2600 [+o ShadowHntr] by ChanServ 13:10 -!- Dickie_ [~Dickie@c-71-207-225-179.hsd1.al.comcast.net] has joined #se2600 13:11 -!- ShadowHntr [~sentinel@wikipedia/Shadowhntr] has quit [Remote host closed the connection] 13:13 -!- Dickie [~Dickie@unaffiliated/dickie] has quit [Ping timeout: 240 seconds] 13:19 -!- sysmin [~sysmin@173-8-51-249-Jacksonville.hfc.comcastbusiness.net] has joined #se2600 13:19 -!- mode/#se2600 [+o sysmin] by ChanServ 13:19 -!- ShadowHntr [~sentinel@ec2-184-72-68-47.compute-1.amazonaws.com] has joined #se2600 13:19 -!- ShadowHntr [~sentinel@ec2-184-72-68-47.compute-1.amazonaws.com] has quit [Changing host] 13:19 -!- ShadowHntr [~sentinel@wikipedia/Shadowhntr] has joined #se2600 13:19 -!- mode/#se2600 [+o ShadowHntr] by ChanServ 13:34 <@Dagmar> http://theoatmeal.com/comics/state_web_winter XD 13:44 -!- epoxy [~epoxy@dialin.inttek.net] has joined #se2600 14:17 -!- scribbles [scribbles@gateway/shell/devio.us/x-bfykkbjkonbmjhkb] has quit [Ping timeout: 240 seconds] 14:38 -!- sysmin [~sysmin@173-8-51-249-Jacksonville.hfc.comcastbusiness.net] has left #se2600 ["Leaving..."] 14:50 -!- sync [~sync@c-98-242-80-239.hsd1.ga.comcast.net] has quit [Quit: This computer has gone to sleep] 15:50 -!- epoxy [~epoxy@dialin.inttek.net] has quit [Quit: Leaving] 16:03 -!- timoguin [~tim@184-106-95-170.static.cloud-ips.com] has joined #se2600 16:03 -!- mode/#se2600 [+o timoguin] by ChanServ 16:45 <@Dagmar> NotLarry: call me if you see this 17:15 -!- hobbes615 [~ryan@173.13.247.210] has joined #se2600 17:15 -!- hobbes615 [~ryan@173.13.247.210] has quit [Changing host] 17:15 -!- hobbes615 [~ryan@unaffiliated/hobbes615] has joined #se2600 17:21 -!- Dickie_ is now known as Dickie 17:21 -!- Dickie [~Dickie@c-71-207-225-179.hsd1.al.comcast.net] has quit [Changing host] 17:21 -!- Dickie [~Dickie@unaffiliated/dickie] has joined #se2600 17:36 <@Dagmar> Getting the hang of keeping critters off your back? 17:38 <@Dagmar> Hm... looks like the map renderer doesn't really know about colored wool yet 18:07 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Quit: Venom_X] 18:57 -!- uSynx [~Synx@unaffiliated/synxhm/x-393023] has joined #se2600 18:57 < uSynx> In a shell script how can i determin where the file is located. will pwd return the location the script was run from or the location of the script itself 19:00 < uSynx> script_dir="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")" 19:00 <@Dagmar> As far as I know you have to look in /proc 19:00 < uSynx> seeing if this works 19:00 < uSynx> i need a backup script to run from my remote drive no matter how it gets mounted 19:07 <@Dagmar> I tried to solve htta one long ago and at the moment I cna't remember what screwball case I came up with that made me not trust a damn thing 19:07 <@Dagmar> Oh yeah, some asshole using `source scriptname.sh` 19:07 <@Dagmar> If you can cross that off the list of possibilities, you can probably use BASH_SOURCE| 19:08 < uSynx> not smart enough to get what your at 19:08 -!- m0j0-j0j0 [~jkemp@cnet520-hosoc.nandomedia.com] has quit [Quit: Comments like that are why you have no friends] 19:08 < uSynx> sourcing a script in another script in another location? 19:08 <@Dagmar> Yep 19:08 < uSynx> got ya 19:08 < uSynx> ya i am only going to be using this backup script myself 19:09 < uSynx> need a simple way to maintain daily, monthy, yearly, and static (for music) backups on my 1.5tb portable 19:09 < uSynx> then ill rsync that to another portable for remote storage 19:09 < uSynx> the best backup solution i can think of at the moment 19:12 <@Dagmar> Hilarious 19:13 <@Dagmar> Someone tried to correct someone else saying 'octopuses', "because I should know, I'm an english major" and got linked Wikipedia for their troubles 19:13 <@Dagmar> ...where even more pedantic assholes have fully explained that since it's latin, it's octopodes and why 19:13 <@Dagmar> On the internet, no one can hear you washing your hands hourly 19:15 < uSynx> i thought it was octopi 19:16 <@Dagmar> Nope 19:16 <@Dagmar> You can almost hear the guy who wrote that paragraph, twitching 19:16 < uSynx> haha 19:17 < uSynx> so its really octopodes? 19:17 <@Dagmar> Yep. 19:17 < uSynx> neat 19:17 < uSynx> this readlink shit is not working 19:17 <@Dagmar> 25 years from now that part will probably have a link to the NOGAS page on Wikipedia, denoting that while it is technically correct that it's 'octopodes', No One Gives A S**t 19:17 < uSynx> it wont take the -f switch 19:21 < uSynx> oh its a osx thing 19:24 <@Corydon76-home> uSynx: Can you explain the purpose of the -f flag to readlink(1) ? 19:25 < uSynx> shit no 19:25 < uSynx> im just copying shit from google 19:25 < uSynx> i simply need my script to know where it is located 19:26 <@Corydon76-home> I converted something like that before, and I looked at that flag and did a double take. The point seems to be utterly academic 19:26 < uSynx> so its pointless? 19:27 <@Corydon76-home> As best as I can tell 19:27 <@Dagmar> Everything else that's sane stops following links at some point 19:27 <@Corydon76-home> Dagmar: 7 links 19:27 < uSynx> honestly im not worried about links at all 19:27 <@Corydon76-home> If it was good enough for Dennis Ritchie... 19:27 <@Dagmar> I think I've seen gcc tell me to fuck off at 4-5 19:27 < uSynx> i assume dirpath $0 would do just fine 19:28 < uSynx> however i am not getting what i think i should, it keeps returning '.' 19:28 < uSynx> dirname that is 19:28 <@Dagmar> uSynx: I take it that you ran the script like `./foo.sh`, right? 19:28 < uSynx> i have tried running it like that and from another dir 19:28 < uSynx> both return '.' 19:29 < uSynx> what i need returned is the absolute path, '/Volumes/Backup \Node \A/' 19:30 < uSynx> the reasion i am trying this is because i need to account for mount location changes of this portable drive 19:31 <@Dagmar> Yeah, and I'm not sure that's entirely possible 19:32 <@Dagmar> Once I got something that filled a screenful I said "this is dumb" 19:32 <@Dagmar> You get less hassle from /proc/$$/cmdline 19:32 <@Dagmar> ...and /proc/$$/cwd 19:33 < uSynx> am i stupid or is there no /proc in osx 19:33 <@Corydon76-home> uSynx: try realpath(1) 19:33 <@Dagmar> uSynx: No, you're not stupid, you're fucked 19:34 < uSynx> haha 19:34 <@Dagmar> You can determine it's relative path pretty easily 19:35 <@Dagmar> Getting that to turn into something that ties all the way down into / is not so easy 19:35 < uSynx> dont have the use of realpath 19:35 < uSynx> i guess at this point i should simply assume that osx will always mount the drive in the same place unless i rename it 19:35 < uSynx> shrug 19:35 <@Dagmar> Probbaly so 19:35 < uSynx> i am obsessing about something stupid in the grand sceme 19:35 -!- epoxy [~epoxy@dialin.inttek.net] has joined #se2600 19:36 < uSynx> ugh 19:36 <@Dagmar> No, you've just hit what looked like a shallow problem that turned out to be a huge pain in the ass 19:36 < uSynx> ya 19:36 -!- epoxy [~epoxy@dialin.inttek.net] has quit [Client Quit] 19:36 <@Corydon76-home> Path resolution is one of those hard-to-solve problems 19:36 <@Dagmar> Did I mention I'd written a screenful of shell script at 80x60 trying to sort that? 19:37 <@Dagmar> Lots of loveryly sedding and everything 19:37 <@Corydon76-home> I could probably write a good cmdline utility to solve it 19:37 < uSynx> err, ive got an idea 19:37 <@Corydon76-home> in C, though 19:38 <@Dagmar> I think my phrasing at the time was something along the lines of "you fuckers are setting a variable or cd'ing into the engine directory first" 19:38 < uSynx> why dont i just use relative paths in the rest of my script with rsync 19:38 < uSynx> ala 19:38 < uSynx> BASEDIR=$(dirname $0) 19:38 <@Dagmar> That is probably the sane thing to do 19:39 <@Corydon76-home> Or if you get back '.', just run 'pwd' 19:40 < uSynx> that still might not work though right 19:41 < uSynx> if i am in / when i run it 19:41 <@Corydon76-home> If you're in /, you shouldn't get '.' 19:42 <@Corydon76-home> Or if you do, it's still the right place 19:42 < uSynx> i am in / but the script is not 19:42 < uSynx> and its still returning . 19:42 <@Corydon76-home> The concept of "current directory" is kernel-based 19:42 <@Corydon76-home> and inherited by processes 19:43 <@Corydon76-home> So you don't need to overcomplicate by thinking that there's somehow going to be reset for each command you run. 19:43 < uSynx> ahh 19:46 <@Corydon76-home> Alternatively, you can obtain the inode number of ".", then perform an "ls -i" on each item in "..", and find the entry which matches. You're at the top level when "." and ".." both are inode 2. 19:46 <@Corydon76-home> (or identical) 19:47 < uSynx> yikes 19:47 < uSynx> that doesn't sound fun 19:47 <@Corydon76-home> ls -id . 19:47 <@Corydon76-home> Sure, it does. It's a recursive algorithm 19:48 < uSynx> problem is this assumes i run the command from the dir it is in no 19:48 < uSynx> pwd returns the location the script was run from 19:48 <@Corydon76-home> and then you can cd into that directory, if you like 19:48 <@Dagmar> Fucking pill spammers 19:48 <@Dagmar> Imma fuck me up a website here in a minute 19:49 -!- Corydon76-home changed the topic of #se2600 to: Imma fuck me 19:49 -!- Corydon76-home changed the topic of #se2600 to: Imma fuck me up 20:03 -!- epoxy [~epoxy@dialin.inttek.net] has joined #se2600 20:08 <@Dagmar> Having problems managing the complexities of cutting and pasting? 20:09 < uSynx> ugh 20:09 < uSynx> now i cant have spaces in the directories 20:09 < uSynx> i quit 20:09 < uSynx> this should not be hard 20:11 <@Dagmar> Fucking MediaWiki 20:13 <@Dagmar> it works hard to hide the goddamn IPs from you 20:17 -!- epoxy [~epoxy@dialin.inttek.net] has quit [Quit: Leaving] 20:28 -!- uSynx [~Synx@unaffiliated/synxhm/x-393023] has quit [Quit: leaving] 20:42 -!- CRasH180 [~CRasH180@pdpc/supporter/silver/CRasH180] has joined #se2600 20:42 -!- mode/#se2600 [+o CRasH180] by ChanServ 21:32 -!- sync [~sync@c-98-242-80-239.hsd1.ga.comcast.net] has joined #se2600 23:30 -!- CRasH180 [~CRasH180@pdpc/supporter/silver/CRasH180] has quit [Quit: leaving] 23:36 -!- hobbes615 [~ryan@unaffiliated/hobbes615] has quit [Ping timeout: 260 seconds] 23:36 <@Dagmar> http://thereifixedit.failblog.org/2011/01/24/white-trash-repairs-we-may-have-found-the-source-of-the-electrical-fire/ --- Log closed Tue Jan 25 00:00:20 2011