Find the answer to your Linux question:
Results 1 to 5 of 5
Hi i am using prep to get the process id and then pipe it to kill but this is not working. Whats wrong with my syntax. Please explain e.g. pgrep ...
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    8

    [SOLVED] why piping does not work

    Hi i am using prep to get the process id and then pipe it to kill but this is not working. Whats wrong with my syntax. Please explain

    e.g.

    pgrep gedit | kill -9

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    Pipe it to xargs
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Apr 2011
    Posts
    8
    Could you please type it up?

    Thanks

  4. #4
    Just Joined! hunter_thom's Avatar
    Join Date
    Apr 2010
    Posts
    89
    pgrep gedit | xargs kill -9

  5. #5
    Just Joined!
    Join Date
    Apr 2011
    Posts
    8
    Thanks a lot hunter_thom and Irithori. I also figured it out.

    So nice of you guys

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...