=== sparkle_history is now known as sparklehistory [04:40] Trying to remember, is there a way to have output of a command save to a file, but still display on the command prompt as it's running as well? [04:40] Takyoji: tee [04:40] ahh [04:40] cmd | tee file [04:42] sometimes i'll do: tar czf - /|tee out.tar.gz|md5sum|tee out.tar.gz.md5 [04:42] so you dont have to pass the file twice [04:42] pass/process [04:43] ahh [04:43] Hopefully my little script works.. [04:43] i cant think of an example but i often find myself teeing into a >(cmd) too [04:45] Yay, it seems to be working [04:45] yay! [04:45] I've written a bot to download all attachments on a forum that I don't have direct filesystem access to [04:46] usenet? [04:46] But can backup the database and get the attachment table to go by [04:47] Actually it's a phpBB forum. I used to have filesystem access to the website, but the owner updated the credentials, and didn't give me the new credentials, and is completely inactive. And I'm migrating the forum to a different server. [04:47] It's the ugliest crap I've done, but it absolutely works. [04:47] some wget command wouldnt do it? [04:47] something with -r [04:47] It has to authenticate [04:47] via HTTP POST [04:48] you can pass cookies to wget [04:48] and post [04:48] you login with your browser, look at your cookeis, then manually give the cookie to wget [04:48] and take hidden input fields into account as well [04:48] I've done that before in the past. [04:48] But actually it doesn't work that easily when you have two session IDs with one of them having potential variance. [04:49] oh hm [04:49] I've backed up all avatars using it. [04:49] I've mass deleted a long list of spambots using it [04:50] one-by-one, since I don't even have access to the database anymore either [04:50] And the list was built by doing various queries against a backup file of the users table [04:51] while asserting that no valid users were accidentally deleted in the process as well [04:51] I've done all of this purely with cURL in PHP and regular expressions [04:52] i really don't know how people survive without knowing regex [04:52] I have no idea how that's possible [04:53] if i had to choose betweer regex, or my car, i'd take regex. [04:53] However at the same time I've also been able to use simple string search functions to make something like an XML parser. [04:53] Not the most efficient method in a high-level language however. [04:53] parsing predictable XML isnt bad, but an actual XML parser needs a real XML library [04:54] I'm talking about any XML. Not like "find the tag" [04:54] #bash will flame you for trying to parse XML without an XML library [04:54] i do it in awk though [04:55] my old broker, interactivebrokers, let you download your transactions and statements in XML :D [04:56] Yay, it worked perfectly. [04:56] Ooo [04:56] I would love if there were more developer-friend companies out there [04:56] developer-friendly* [05:03] there's a TED lecture with a guy ranting about how we all need to demand to be just given the raw data [05:04] so then we can assemble various sets as we please and create new information [05:08] I may or may not have seen it [05:35] One thing I've always be curious of: what's the difference between SSH tunneling and a VPN? [05:39] i think VPN is an ipv6 feature [05:39] probably ipv6 tunneled through ipv4 [05:39] ssh wouldnt be appropriate for a real vpm because everything would be subject to tcp restrictions [05:39] vpn [05:40] or even, 'what is a VPN?' for that matter [05:41] i think its like an ethernet bridge over an encrypted point to point connection via ip tunneling? [05:41] but thats just a wild guess [05:42] but, for example, i imagine you could exchange arp and broadcast rather than a mere point to point tunnel [05:42] and share the same subnet [05:46] <_diablo> kermit: Takyoji http://www.schumi.ch/partner/SSHvsVPN.htm [08:31] oh the suspense of bulk operations.. [08:31] Executing a 150MB file of SQL [08:59] <_diablo> lol [09:00] I think it's been at least half an hour now [09:00] And mysqld is only operating at like up to 9% CPU usage [09:00] on the remote server [09:04] Bah, it's not even half-way done. I guess I'm going to sleep then === exigraff_ is now known as exigraff