Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

The Right Thing.

Name: Anonymous 2011-03-25 9:10

Why creat and fopen can't create a directory path for me? This is retarded.

Name: Anonymous 2011-03-25 9:30

Why mknod can't create a regular file for me? This is retarded.

Name: Anonymous 2011-03-25 10:10

>>1
Because that's the UNIX way. The OS provides a weird set of primitives and you can enjoy reinventing and reimplementing the same basic functionality for your entire life. Not like you have anything better to waste it on, have you?

Wait until you get into the really wonderful parts, like demonizing processes. It's like a multidimensional jigsaw puzzle: you have to make like five or six calls each of which does its own small part, sometimes as a side effect, sometimes in order to cancel unwanted side effects of other calls.

If you don't see any fun in it, then you are not a real programmer.

Name: Anonymous 2011-03-25 11:19

>>2
Why there is mknod?

Name: Anonymous 2011-03-25 11:20

Why not implement all files as closures?

Name: Anonymous 2011-03-25 11:22

>>3
Nope. I'll just call bash("mkdir -p %s", "path")

Name: Anonymous 2011-03-25 11:24

>>6
of course spawning bash would be slow, but unix users deserve it.

Name: Anonymous 2011-03-25 11:24

>>6
Pig disgusting.

Name: Anonymous 2011-03-25 11:26

>>6
urdoinitrong

your code should never ever be in multiple languages (and this coming from a lifelong sysadmin too)

learn to do it right or go back to school and learn plumbing or auto repair

Name: Anonymous 2011-03-25 11:29

>>9
Next sysadmin after me'll have happy time, lol.

Name: Anonymous 2011-03-25 11:33

>>6
What if path contains spaces? Double quotes? Single quotes?

Your solution demonstrates PHP mentality, not UNIX mentality, sorry.

Name: Anonymous 2011-03-25 11:36

>>10
Spoiler:He will track you down, and when he knows you are good and alseep he will duct tape you to the bed and murder you by making you choke to death on printouts of your pathetic code while laughing in your face.

Name: Anonymous 2011-03-25 11:40

>>12
Do not meddle in the affairs of sysadmins, for they are quick to anger and have no need of subtlety.
(With apologies to Tolkien)

Name: Anonymous 2011-03-25 11:51

anus

Name: Anonymous 2011-03-25 12:32

system("mkdir JesusCamp");

Name: Anonymous 2011-03-26 8:00

>>11
It can also contain $(rm -rf /)
but who cares? I'just need to make dir path from user supplied input.

Name: Anonymous 2011-03-26 9:11

BOFH

Name: Anonymous 2011-03-26 11:36

>>13
lotr=autism, enjoy

Don't change these.
Name: Email:
Entire Thread Thread List