Page 1 of 2

Andrew AFS Stuff

Posted: Thu Aug 07, 2003 10:13 pm
by VLSmooth
So, how have people gone/will go about moving stuff from AFS?

I've debated on dumping all my mail into a large text file, tar'ing it, and grabbing it, but I'm fairly certain there has to be a better way.

Hmm... this also means I have to organize all my course files too, argh.

Posted: Thu Aug 07, 2003 10:15 pm
by Peijen
setup your favor email client, login and download all you mail into it?

and zip the rest and burn them to cd?

I didn't remember to save anything ...

Sigh

Posted: Thu Aug 07, 2003 10:17 pm
by VLSmooth
Meaning I'll need to reinstall cygwin and pine, or actually install debian?

Sadly though, I think I'm getting used to outlook, so I guess I could go with that (at least it's MUCH better than Lotus Notes, which I was forced to use last summer)

Posted: Thu Aug 07, 2003 10:18 pm
by Jonathan
So it sounds like you are interested in two things:

1. archiving your saved mail in a mailbox format of one kind or another, preferably one that is compatible with your current mail client
2. archiving your data

When I grabbed my stuff from Andrew and ECE, I eventually determined that I didn't care enough about my mail archives to perserve them. I looked into running some kind of IMAP-snarfing program that would connect to the IMAP server and download all the mail, but I never actually produced anything. For backups, I simply did "scp -r" and declared myself done.

Unfortunately, I reformatted the damn drive later and never made any CD backups, but that's another story.

Re: Sigh

Posted: Thu Aug 07, 2003 10:19 pm
by Jonathan
VLSmooth wrote:Meaning I'll need to reinstall cygwin and pine, or actually install debian?

Sadly though, I think I'm getting used to outlook, so I guess I could go with that (at least it's MUCH better than Lotus Notes, which I was forced to use last summer)
No. Wrong answer. Outlook is slower and less secure than every mail client in existence. Outlook Express is a chump program.

Try Mozilla Mail. I've been very pleased. Plus, it's cross platform, for when you install Debian later.

Posted: Thu Aug 07, 2003 10:21 pm
by Jonathan
The real way, the man's way to do this can be expressed succinctly as Net::IMAP::Simple.

Posted: Thu Aug 07, 2003 11:18 pm
by quantus
Dwindlehop wrote:The real way, the man's way to do this can be expressed succinctly as Net::IMAP::Simple.
Woah, now you're speaking vinny's language. PERL!!!!!!!

This reminds me of yesterday when Pei asked me how to selectively copy files in a directory structure while preserving the directory structure in the destination. Of course, since it was Pei, he asked other people too including vinny. Vinny busts out perl code when all you really need is "find"

*sigh*

Posted: Thu Aug 07, 2003 11:22 pm
by Jonathan
I can reduce every perl program Vinny writes to a one line Unix command!

Posted: Thu Aug 07, 2003 11:27 pm
by quantus
Can I put a character limit on the length of that command's options? Actually, isn't there already a limit to the lenght a command can be to protect against buffer overflow attacks on the shell?

Posted: Thu Aug 07, 2003 11:36 pm
by Jonathan
There's a limit on the number of arguments you can pass. There doesn't seem to be any limit on the length of a command.

Posted: Thu Aug 07, 2003 11:39 pm
by Jonathan
Take that back. The kernel defines a number of pages available to incoming commands. Usual number is 32, or 128 KB.

Posted: Thu Aug 07, 2003 11:41 pm
by Jonathan
on my system i hit the limit well before that. i can execute a couple of screens' worth of "true |" before it dies. i think that i'm hitting a limit in the number of pipes, not the command line length.

Posted: Thu Aug 07, 2003 11:43 pm
by Jonathan
a screen's worth of "true 01001..." dies with "Word too long".

Posted: Thu Aug 07, 2003 11:45 pm
by Jonathan
So the trick is to combine the maximum number of pipes, maximum number of arguments, and maximum length of each argument to create the world's longest command line, and then post it on the web. Good luck.

Posted: Thu Aug 07, 2003 11:47 pm
by Peijen
this is like solving for 3 stats problem?

Posted: Thu Aug 07, 2003 11:49 pm
by Jonathan
Peijen wrote:this is like solving for 3 stats problem?
huh?

Posted: Thu Aug 07, 2003 11:51 pm
by Peijen
i think it's spelled 'stats'. something about proving if a problem is np ...

Posted: Fri Aug 08, 2003 12:23 am
by VLSmooth
quantus wrote:
Dwindlehop wrote:The real way, the man's way to do this can be expressed succinctly as Net::IMAP::Simple.
Woah, now you're speaking vinny's language. PERL!!!!!!!

This reminds me of yesterday when Pei asked me how to selectively copy files in a directory structure while preserving the directory structure in the destination. Of course, since it was Pei, he asked other people too including vinny. Vinny busts out perl code when all you really need is "find"

*sigh*
I did use find, I didn't want to confuse pei with -exec...

Besides, with debugging and test info it was ~6 lines written in <1 minute.

Heh

Posted: Fri Aug 08, 2003 12:24 am
by VLSmooth
Dwindlehop wrote:I can reduce every perl program Vinny writes to a one line Unix command!
Yep, since I do hate multi-line filenames (*cough*by running my script*cough*)

I think you mean...

Posted: Fri Aug 08, 2003 12:29 am
by VLSmooth
Peijen wrote:i think it's spelled 'stats'. something about proving if a problem is np ...
I think you mean the 3-SAT problem (Satisfiability)