| |
| |
| |
|
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
Comments:
<0> hobbs: I ***ume you want me to use the setpwent function. Correct? <1> Rockj: I thought you weren't writing anything <2> there's too many arguments in this channel! <1> merlyn: tell us you're not to blame ;) <0> no, but as far as I understood you, it was bad to use the open cmd to open the /etc/p***wd file and read it to a array for use for like searching if a user exist on the system or not. *rolleyes* <1> Rockj: your point? <3> i'll work on the "prototype" problem later... thanks anyways <0> hobbs: just wonder if this is bad or not. *pastes my 3 lines into the pbot/perl site* <4> "Rockj" at 84.48.61.84 pasted "reads /etc/p***wd to @users_raw" (3 lines, 115B) at http://sial.org/pbot/17457 <1> Rockj: how could that possibly be good or bad? You're... reading a file. Wow. <0> hobbs: oki, it was just that I asked a question earlier up here and linuxnohow said there were inbuilt functions to use together with the /etc/p***wd so I thought it was bad to simple read the file that way. Sorry for missunderstanding and getting confused then. But is it maybe wise to lock the file while it reads the data or? <1> Rockj: your reading comprehension is about zero. <1> Rockj: there's nothing wrong with _reading files_. But reading the p***wd file is just stupid. <5> You know what I hate more than hobbs. <5> Cigarrettes <5> ****ing disguisting.
<1> No definitions found for "cigarrette", perhaps you mean: <1> gcide: Cigarette <6> Rockj: man perlfunc, check for getpwent and stuff. <0> hobbs: so tell me what else is a better way of getting all the users on the system and some stuff I require from the comment field. I'm listning and glad to be learning better methods.. <5> rooming with a smoker so -- <1> Rockj: You had the answer an hour ago. Getpwent. Or User::pwent for a prettier interface. <0> sphex: I just asked him if that was better to use getpwent instead of reading the file like I did. But hobbs answered that how could that possible be good or bad. is it weird I get abit confused and trolled around? =( <1> Rockj: you do not understand english! <1> Rockj: when you ask a question and I answer you I'M GIVING YOU AN ANSWER TO THE QUESTION YOU ASKED A MINUTE AGO, NOT THE ONE YOU ASKED HALF AN HOUR AGO AND I ALREADY ANSWERED <5> Rockj: Join the "we hate hobbs club" <6> Rockj: getpwent doesn't necessarily reads the file you are thinking about. it could do anything. FORGET about that file. <1> Rockj: And when you ask a really ****ing stupid question like "is this code good" and all the code does is open() then you get a useless answer <6> Rockj: never, ever read the system p***word file. ever. <1> Rockj: You never asked about getpwent at all. <7> who cares. just do something <8> Shut up you damn hippie <7> **** you, cock wrangler <5> Chris62vw: hangman with hobbs and extremely long words? <6> arghh!! HIPPIES!! <8> I have no response <9> yuppie <7> eh... <7> a yuppie is someone who would consider driving a Prius <6> rich hippies are the worst <10> hi there, are there any tools to profile perl scripts? <0> Ill rather go hide in a corner, sorry for interrupting.. <5> So whealthy you drive a ****ty vw <5> pseudorich. <7> I dont <10> sphex, trustafarians <5> what about that lame picture of the 62vw i thought it was yours... <7> WAS <5> perlbot: 62vw <7> until I upgraded to a nissan altima <6> MrBIOS: does that meas something? <6> *mean <7> oh, and I just bought a house :-) <5> Chris62vw: ah so non hippy!!! horrah! <7> so there goes all my money :-( <5> Chris62vw: what state are you in? <7> NV, of course <10> sphex, college kids with trust funds who dress like dirty hippies and play the part <11> yar <6> MrBIOS: oh noes! <11> play the part? <7> I've made every cent by my own hands and brain <5> lol <10> rmah, of a dirty hippie <5> that reminds of that simpsons episode, NV, New Virginia <11> there are no more hippies <6> yeah, Cartman got rid of them. <11> respect my authoritah! <7> anyone here eat tofu regularly? <10> I eat it on great occasion <11> I'd rather shoot guns than smoke pot <12> I eat tofu fairly regularly. <13> I eat it on the 4th of every month .. which makes me very regular <7> Yaakov, it's good! I've had it a few times at sushi places. I think I'm going to start eating it <14> I find tofu difficult to eat <15> does `command` open the command using /bin/sh?
<14> well, in big chunks at least <14> bluebeard: no <5> bluebeard: No. haha <7> Yaakov, how do you eat it, besides in its "raw" form? <12> Chris62vw: I eat it in oriental dishes and in some western things like tofu salad. <9> bluebeard: maybe ;) <5> bluebeard: commands don't all get funneled through your shell <11> bluebeard: the answer to your question is: maybe <15> well, system('command -arg') opens it using sh. <7> Yaakov, that's what I just had! I tofu salad <12> Chris62vw: I like it frozen, then fired, too. <5> unless the top has #!/bin/sh and is +x <12> fried <8> bluebeard: `` does. <8> ECarroll: Wrong. <11> bluebeard: ah, but system('command', '-arg') doesn't <7> Yaakov, frozen? I'll have to try that <12> The freezing breaks up the structure, then it fries well. <5> buu: `` p***es through shell? <11> tofu is bean curds skimmed from the top <8> ECarroll: Yeah. <5> ... <11> it's the stuff poor people who can't even afford beans eat <5> Hrm. <12> But since it is VERY high in water, you have to fry it a whiled. <15> thanks, buu, is there a way that I can launch something and get the stdout of it without using perl? <12> rmah: Feh. <15> er <11> heh <15> without ising /bin/sh <11> it's true (or once was) <1> bluebeard: open <8> bluebeard: open <11> bluebeard: open or backticks <7> Yaakov, fry it in a cast iron skillet or something? <5> perl -e'print `for i in {1,2,3}; do echo $i; done;`' <5> buu: no go. <11> wait, "*without* using perl"?!?!?!? <8> ECarroll: buu@ded430-deb-175-30:~/torrent$ perl -le'print `ls | head -1`' <8> sg <15> without using /bin/sh <8> ECarroll: Go. <15> I brainfarted/ <11> bluebeard: with open or backticks <8> ECarroll: I'm guessing 'sh' doesn't support for loops.. <15> but buu just said that backticks uses /bin/sh <8> Hrm, guess it does. <14> .. <5> I'm confused =[ <15> it's a different format, buu <8> What? <12> rmah: Tofu is bean cheese, and it is very good when prepared well. I especially like Szechwuan zechwuan zechwuan style bean curd. <5> why doesn't mine work, and yours does <12> Chris62vw: Or a Wok. <8> ECarroll: Good question! <15> for i in 1 2 3 <11> Yaakov: all I know is that my mother fed me tofu when I didn't even know what it was <16> hi tag! <12> Egad <17> are you a vegan? <11> I didn't like it then and I don't like it now <5> buu: I'm thinking you're wrong, and it supports something like pseudo shell expansion without using the shell <11> I don't *dislike* tofu either <12> My connection is messed up. <17> Yaakov, still? <11> but I certainly don't look forward to tofu and go "YUMM... TOFU!!!" <12> I DO! <9> your mom is a lousy cook! <11> yeah, but you're weird <11> Khisanth: take that back or I'll find you and cap your *** <5> buu: asking the monks? <15> so, I'm getting completely mixed messages with the whole not using /bin/sh thing. <5> buu: I'm writing it now. <11> you're not even that far from me... NYC
Return to
#perl or Go to some related
logs:
nUBUNTU screen 640x480 undefined function addLogEntry() #physics #php fluxmod bunker-one #debian #osdev modprobe ndiswrapper segmentation fault linksys Wireless-G USB+Ubuntu #python
|
|