Drkcore

14 10 2009 Linux Tweet

Unix/Linuxプログラミング理論と実践 11章 (popen)

11.4 popenを書く

pipeしてforkして親の標準入力をパイプにつないで、この標準出力をパイプにつないで、execlでsh -c commandを実行する

ProductName Unix/Linuxプログラミング理論と実践
Bruce Molay
アスキー・メディアワークス / ¥ 6,090 ()
在庫あり。

shの-cオプションはコマンドを実行して終了する。

-c string If the -c option is present, then commands are read from string.  
If there are arguments after the string, they are assigned to the positional 
parameters, starting with $0.

About

  • もう5年目(wishlistありマス♡)
  • 最近はPythonとDeepLearning
  • 日本酒自粛中
  • ドラムンベースからミニマルまで
  • ポケモンGOゆるめ

Tag

Python Deep Learning javascript chemoinformatics Emacs sake and more...

Ad

© kzfm 2003-2021