How can I start several processes with a single command?

seeker_of_bacon

I use pianobar player. But before launching it I need to run tor and polipo. Both are continuous (are running until interrupted). Basically what I'm looking for is a single command which would spawn tor and polipo processes (their output is not needed) and then open pianobar in foreground.

edit: turns out tor takes several seconds to start, this is why suggested solutions didn't work at first. I post this in case anyone has the same problem:

function piano {
    tor &
    polipo &
    sleep 3
    pianobar &&
    killall tor
    killall polipo
}
polemon

put this in your .profile or .bashrc or .zshrc or whichever shell you use:

function mycommand {
    tor &
    polipo &
    planobar
}

And now just run mycommand

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How can I kill all child processes of a certain process from the command line?

분류에서Dev

How I can I start a powershell command line from a batch file and enforce it to stay open?

분류에서Dev

how can I fill several files with data?

분류에서Dev

How can I detect the first instance of a command-line Dart program to start?

분류에서Dev

How to best manage the run of several processes?

분류에서Dev

How can I stop accumulated Google Chrome background processes?

분류에서Dev

How can I copy and combine several .txt lists in alphabetical order?

분류에서Dev

How can I merge several Xilinx NGC netlists to an new netlist

분류에서Dev

How do I start tty from the command-line?

분류에서Dev

How can I save the last command to a file?

분류에서Dev

How can I get the source code of a command?

분류에서Dev

How to use single view for several router?

분류에서Dev

How can I illustatrate three parallel, non-consecutive, but dependent processes with BPMN?

분류에서Dev

How can I speed up window switching on windows 10 when too many processes are started?

분류에서Dev

How i can start build Jwplayer plugins (Addons)?

분류에서Dev

How can I see the Microsoft Edge start page in another browser?

분류에서Dev

How can I start using MS-SQL Server ( express )

분류에서Dev

How can I start a script after connecting via xrdp?

분류에서Dev

How can I move all files in subdirectories recursively to a single directory?

분류에서Dev

How can I concatenate a single column of output into a list?

분류에서Dev

How can I host a single MySQL database on multiple servers?

분류에서Dev

How can I change the background colour of a single emacs buffer?

분류에서Dev

How can I output an entire git repo to a single file?

분류에서Dev

Using Laravel Migrate how can I refresh a single database?

분류에서Dev

How to use a Pipe between two processes in Process.Start

분류에서Dev

How do I kill processes in Ubuntu?

분류에서Dev

How can I make a recursive Python type defined over several aliases?

분류에서Dev

How can I test several exceptions within one test using an ExpectedException Rule?

분류에서Dev

How can I submit a html form post that has several different iterated values?

Related 관련 기사

  1. 1

    How can I kill all child processes of a certain process from the command line?

  2. 2

    How I can I start a powershell command line from a batch file and enforce it to stay open?

  3. 3

    how can I fill several files with data?

  4. 4

    How can I detect the first instance of a command-line Dart program to start?

  5. 5

    How to best manage the run of several processes?

  6. 6

    How can I stop accumulated Google Chrome background processes?

  7. 7

    How can I copy and combine several .txt lists in alphabetical order?

  8. 8

    How can I merge several Xilinx NGC netlists to an new netlist

  9. 9

    How do I start tty from the command-line?

  10. 10

    How can I save the last command to a file?

  11. 11

    How can I get the source code of a command?

  12. 12

    How to use single view for several router?

  13. 13

    How can I illustatrate three parallel, non-consecutive, but dependent processes with BPMN?

  14. 14

    How can I speed up window switching on windows 10 when too many processes are started?

  15. 15

    How i can start build Jwplayer plugins (Addons)?

  16. 16

    How can I see the Microsoft Edge start page in another browser?

  17. 17

    How can I start using MS-SQL Server ( express )

  18. 18

    How can I start a script after connecting via xrdp?

  19. 19

    How can I move all files in subdirectories recursively to a single directory?

  20. 20

    How can I concatenate a single column of output into a list?

  21. 21

    How can I host a single MySQL database on multiple servers?

  22. 22

    How can I change the background colour of a single emacs buffer?

  23. 23

    How can I output an entire git repo to a single file?

  24. 24

    Using Laravel Migrate how can I refresh a single database?

  25. 25

    How to use a Pipe between two processes in Process.Start

  26. 26

    How do I kill processes in Ubuntu?

  27. 27

    How can I make a recursive Python type defined over several aliases?

  28. 28

    How can I test several exceptions within one test using an ExpectedException Rule?

  29. 29

    How can I submit a html form post that has several different iterated values?

뜨겁다태그

보관