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

piping stdout of cat to kill's stdin

Name: Anonymous 2008-01-29 23:52

If I have the pid of some process stored in a text file, let's call it program.pid, and I want to end that process via the kill command, how come I can't do this:

bash:$ cat program.pid | kill

But if cat program.pid, and just type the output into the kill command, it works and I stop the process.  Why can't I pipe the output from cat to kill?

Name: Anonymous 2008-02-19 19:07

>>40
Congratulations, you've mastered man cat like a champ.
Now see if you can figure out how filesystems work, and why ext3 only requires that you update x - 1 blocks to concatenate files, where x is the number of files you're concatenating, whereas your little cat strategy requires that you read all of the files in their entirety, and then write them all to disk again in their entirety.

tl;dr: Your script sucks balls, Ubantoofag.

Name: Anonymous 2008-02-19 19:55

>>37
>>39
Learn to shell.

Name: Anonymous 2008-02-19 21:17

>>41
YOU'VE ANGERED A FUCKING [b][u][o]EXPERT [sup]UBANTU[/sup] SYSOP[/o][/u][/b]

Name: Anonymous 2008-02-19 21:43

>>43
lol [failcodetag]

Name: Anonymous 2008-02-19 22:12

>>41
no sorry, you're just a troll. GNU cp cannot concatenate files.

ps. lol @ x-1 blocks. knothxbi.

Name: Anonymous 2008-02-22 21:42

>>1-9999

You all fail, faggots

Name: Anonymous 2008-02-27 22:38

>>46 failed himself

Name: Anonymous 2008-02-27 23:01

Can we get back on topic please?  What's a failsafe way of finding out if a program can read from stdin or not?

Name: Anonymous 2008-02-28 0:00

What's stdin?

Name: Anonymous 2008-02-28 1:11

>>48
1. Read the man pages.
2. Try it.

It's not that fucking hard.

Name: Anonymous 2008-02-28 23:03

>>50
What's man pages?

Name: Anonymous 2008-02-29 0:35

>>51
Back to /b/, please.

Name: Anonymous 2008-02-29 4:23

>>52
What's /b/?

Name: Anonymous 2008-02-29 10:48

>>53
   ,、-‐'"             /  r' |.j,!
   |   、     _,..、 -‐ '" ' ‐-、,____`ヽ,
.   |   ` i-‐ ' "   ,、,         ヽ'
    |      |,-‐/ミ、/:::::\、_
    |   _,,.-‐"~::::::::::::::::::::::::::::::``‐、-、_
     !  7/:::::::::::/ハ::::、:、::::::::::::::::::ヾ‐i`〉
    |  '/:::::::/::__;∠!∧:ヽヽ\::ヽ::::、ヾ|/:ヽ
     i ' i':;::/レ/   ヾヽ〉ゞ\_>_ヽ、レハ:i::::i
キタ━━l  W'ヘ|(  0 ! ! 0  ヽヾ|ノノ|::|::::|━━━━━━!!!!
      l  ヽノ >;;,,, ' ヽ、   .ノ /'‐i:::|::|::::|
      i   !、   ‘    `"!!! ._〉ヾ!|./::::|
-‐/ ̄,`" ‐- 、_\⊂===ニ二)  .ノ‐ '゛|/::::::|
フ_4゛ \     ̄`‐- 、 ___ ,、 ‐ ⌒ ヽ!::::::::l|
ニ-‐'-、  `ー-         ̄ ` "` ‐`‐、|:|
   ,.> ,、-i‐っ‐- 、. _            ` ヽi
  (_,ノ'゛ /`ヽ     `` ‐- 、           ヽ
      /   ヽ、,、 -‐ "〈 `` 、_    _,人
    i            i  '/ ̄l ̄::|:::::::::i

Name: Anonymous 2008-02-29 11:44

>>53
Back to man pages, please.

Name: Anonymous 2008-02-29 18:26

>>55
what is >>53?

Name: Anonymous 2008-03-01 21:31

I thought /b/ was a person not a place

Name: Anonymous 2008-03-02 6:41

>>57
what is Anonymous?

Name: Anonymous 2008-03-13 22:01

PLEASE STOP THREADRESSING THIS

Name: Anonymouse 2008-03-14 6:35

>>58
What are you talking aboot?

Name: Anonymous 2009-03-18 22:45

I still don't see the difference.

Name: Anonymous 2009-03-21 0:39

HOLY SHIT I LOVE ICECREAM

Marijuana MUST be legalized.

BBCode
MASTE
RS s
mo
ke
WEED!

Name: sweetheart prom dresses 2012-05-15 8:13

Additionally you should be certain with regards to the option of the fabric. Flower garments made from delicate material including Organza or chiffon will want far more care, and so better select silk, cotton or perhaps polyester clothes. From time to time long gowns trouble the kids and don’t allow them to take pleasure in their freedom of  Additionally, choose a details neckline and also straight midsection http://www.zoodress.org/  discount wedding dress  http://www.zoodress.org/  bridesmaid dresses for the beach . These will probably best improve your waistline thus making you look older in your wedding outfit. http://www.zoodress.org/  navy bridesmaid dress  <br>  <br> When most brides consider their bridal party, they possibly image their bridesmaids and maid of honour in matching outfits and shoes. even although you choose your wedding

Name: nts 2013-10-01 8:34

tsnstnstntnstnstnstsnstnntstnstnstnstnstsnntssntstnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn

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