回答編集履歴

1

前提を追記

2015/05/20 09:31

投稿

kutsulog
kutsulog

スコア985

test CHANGED
@@ -1,6 +1,10 @@
1
+ hello.pyにprogramファイルを読み込ませて使う用途だと思って書きます
2
+
3
+
4
+
1
5
  hello.pyはpythonの実行ファイルではなくpythonに読込ませるスクリプトなので
2
6
 
3
- > execl("/bin/python", "hello.py","program", NULL);
7
+ > execl("/bin/python", "/bin/python", "hello.py","program", NULL);
4
8
 
5
9
  のように書く必要があります。
6
10