| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
Comments:
<0> people good with sendmail? <1> eggzeck: under windows, a check for cmd.exe vs. bash.exe might be helpful <2> $^O <0> I have a question about sendmail and virtual hosting <3> eval: $^O <4> dazjorz: Return: linux <3> heh <5> centosian: #sendmail <5> kthnxbye <6> haha <0> bingos: it's #empty <2> eric.allman@bugofthemonth.com <7> eval: $^V <4> fraterm: Return: <5> WELL YOU'LL GET NO ANSWERS HERE <7> :>
<0> No one uses sendmail I'm sure! Well here's the question for you to ignore if you want <8> Devel::Cover-- <8> _exit-- <2> integral: bah, you should know coverage analysis is dubiously useful and worthwhile <7> procmail would be the mailer du jour, but it'd have to relate to how perl intersects with what you're asking, or perhaps whichever OS you are using before you'd get help centosian. <0> suppose I have a mail server that accepts mail for two domains, let's call them A.com and B.com. I want to acccept email for a@A.com and b@B.com, but not for a@B.com. [[ There is no perl involved, this is pretty much 'stock' centos and sendmail. ]] <8> do not use sendmail. <8> (it's trivial to hook exim, etc up to user databases in p***wd files, berkeleydbs, ldap, etc) <7> centosian, I'd suggest finding the #centos channel or the #centos-maiil-server channel and asking there. <0> this is more a sendmail issue than a centos one, but thanks. Anyone have any other tips on the subject? <7> m4 macros aren't they? <9> the version of sendmail I recall uses m4, yes <0> yes m4 macros <10> the sendmail.cf is considered a "binary" file <8> ewww, don't use m4. Write your sendmail.cf by hand. With only ed, a wyse66, and a noisy 2400 baud serial line. <0> pravus: that's why most people now work with the sendmail.mc m4 macro file <0> integral: and a missing 'e' on the keyboard <8> centosian: a broken shift key would be more fun. <0> or a broken return key <11> naw a broken ` key :) <11> good luck getting ANYTHING done in sendmail without that ;) <3> Aaah.. <8> let's just hide the keyboard and gum up the socket on the term with chewing gum. <3> Yippee <3> I made a fast module installation script <3> if you install it, you can just edit a module file, run 'makemod', and it's installed <3> without any arguments <8> o_O <3> If a module is named 'fPanel', how do I get a variable from it without errors? <3> oh nvm <3> it's seen as a bareword because i've forgot something <8> a dollar! <3> Well... <1> you might need to package-qualify it: $fPanel::varName <3> $fPanel->{config} <3> Oh. right. <3> $fPanel::config ... <8> gah, I wish there was a way to start script(1) halfway through a job. Dear UNIX: your terminals ****; <12> F: UNIX T: integral Fix it yourself! <13> screen lets you insert arbitrary processors/inputters for an already running program. Or simply log the output, for this case. <14> i'm trying to do some simple socket programming but my program hangs waiting for the server to reply with a message <15> Someone at 80.219.251.130 pasted "scriptwithfunctions 346 newsle" (80 lines, 1.4K) at http://sial.org/pbot/17355 <8> Roderick: unfortunately I suffer from 'not starting screen' disease <8> sharky: using POE? <14> first i thought there was an issue with buffering so i turned on autoflush, which worked for the example i am learning from but not when i apply it to my own program <14> integral, i'm not sure what that is <8> sharky: it could be a deadlock of some kind, possibly due to buffering. <13> Fixing that is where you should concentrate your efforts! [[ -z $STY ]] && exec screen -x -RR <14> integral, even if i've turned on autoflush? <8> Roderick: yeah, but I have to frob TERM randomly too <13> What do you mean? <8> sharky: are you reading? <8> or only writing <8> Roderick: I'm going from OSX to linux, and there's a TERM issue. so I need to write some magic code that figures out which TERM to use <14> integral, i'll be doing both but i need to read from the server first <14> the example i was learning from wrote first (it was a simple http request) <8> *write <8> a useful debugging tool is strace. It would be useful if you pasted your code to the pastebot <0> integral: apparently what I want is at http://www.sendmail.org/tips/virtual-hosting.html <8> centosian: probably.
<15> Someone at 80.219.251.130 pasted "newsletter: 350 _mails: 16 _li" (85 lines, 1.4K) at http://sial.org/pbot/17356 <3> Quitting. <15> "sharky" at 68.65.48.250 pasted "simple networking code" (26 lines, 513B) at http://sial.org/pbot/17357 <14> integral, http://sial.org/pbot/17357 <8> that's hanging? <14> yes <8> you do know that getlines is in list context there <8> and so it'll be waiting for EOF before returning, ie before anything appears on your screen... <8> comment out your getlines line, and pop the while loop (alone) back in :) <14> integral, i've even tried reading the socket using the while loop that is commented out below that <14> i'll try it <8> what's on the server end? is it actually sending something? <14> yes it all works fine when i code this up in python or C <8> and what calls do you use in C? stdio, or unix? <14> stdio <8> dammit, I'll try the code <15> "sharky" at 68.65.48.250 pasted "simple networking code" (23 lines, 487B) at http://sial.org/pbot/17358 <16> 16:13 -!- mode/##php [+b *!*@office.marketectsinc.com] by caffinated <16> hhaha <14> integral, http://sial.org/pbot/17358 <16> I've never been banned from ##php before, I promise. <8> sharky: umm, whien I swap to the print loop, it *works* <8> (I'm testing connecting to a netcat :) <14> hmmm... <8> yes, I'm using exactly that second paste :) <8> as I type each line to netcat, it's being displayed just fine. What server are you connecting to? <8> I notice you have a GET... <14> doh! i hope its not the server <14> integral, 207.44.236.95 9999 <17> Insolit: What does "link me to" mean in that context? <0> pasteling: Why not use LWP:* to do this? Even LWP::Simple? <8> sharky: that's not terminating its lines with \n <8> sharky: try using read instead of <> <8> look at how your C code works. <14> integral, you mean something like $sock->read(...) <8> yes. <14> integral, ok thanks i'll check it out <8> it will return what data is available, rather than waiting for a \n (which the server doesn't send) <8> sharky: I thought you'd written this in C and python? <14> integral, yes but i'm new to perl so i've been adapting things exactly as i see them in examples <8> *sigh* <0> sharky: watch out for the differences! :) <14> integral, i've ordered the camel book so hopefully i'll be a little more organized soon <8> sharky: perl comes with a lot of documentation :) see perldoc -f readline, and perldoc -f read for example <4> readline. To access this perldoc please type, at a command line, 'perldoc -f readline'. You may also find it at http://perldoc.perl.org/functions/readline.html <18> sharky: the Camel book is great. <8> perldoc perlfunc lists all the built in functions, and then there's perldoc IO::Socket and so on. <4> perlfunc - Perl built-in functions. To access this perldoc please type, at a command line, 'perldoc perlfunc'. You may also find it at http://perldoc.perl.org/perlfunc.html <19> #python <20> Rindolf! <8> Hssssssss <19> sorry, pls ignore that noise. <8> "please" <20> integral, what are you supposed to be, a garden snake? <8> Daveman: I was making cp feel welcome! <20> integral: the haskell snake! :D <20> it goes hssssssssssss :P <8> heh <8> perlbot, summon coffee <21> Juerd: i wanted you to give the link to a tutorial i already read but can't find it now about encoding and decoding in perl programs <17> Insolit: I see... :) <17> Insolit: http://juerd.nl/perlunitut.html perhaps? :) <20> ;p <22> perlinuit? <22> perl for eskimos? <21> yes Juerd =) <22> oh wait that is perlunitit <22> uni-tit? <22> oh unitut <17> perl-uni-tut <22> funny movie <17> That's the normal way perldocs are named. <22> morning Juerd.
Return to
#perl or Go to some related
logs:
qmail-command examples #gentoo #osdev #math phprox #gentoo Clean reverse dns voyeurcitygirls dapper cs330 depretion scale
|
|