いつも世話になります。
$ ./server_08.py(実行許可)と $python3 server_08.pyで両方とも実行できます。
実行する際に用途によって使いわけた方ががよいのでしょうか?
ちなみに./server_09.py(実行不許可)だと実行できないので実行許可の設定をしないといけないので
手間がかかります。
pi@raspberrypi:~/toku1/08-11-a3 $ server_08.py bash: server_08.py: コマンドが見つかりません pi@raspberrypi:~/toku1/08-11-a3 $ ./server_08.py Sun Aug 27 14:10:49 2017 Server start - 0.0.0.0:8081 ^CKeyboardInterrupt Sun Aug 27 14:10:50 2017 Server stop - 0.0.0.0:8081 pi@raspberrypi:~/toku1/08-11-a3 $ python3 server_08.py Sun Aug 27 14:11:54 2017 Server start - 0.0.0.0:8081 ^CKeyboardInterrupt Sun Aug 27 14:11:56 2017 Server stop - 0.0.0.0:8081 pi@raspberrypi:~/toku1/08-11-a3 $ PATH=$PATH:~/toku1/08-11-a3/ pi@raspberrypi:~/toku1/08-11-a3 $ server_08.py Sun Aug 27 14:12:15 2017 Server start - 0.0.0.0:8081 ^CKeyboardInterrupt Sun Aug 27 14:12:20 2017 Server stop - 0.0.0.0:8081 pi@raspberrypi:~/toku1/08-11-a3 $ pi@raspberrypi:~/toku1/08-11-a3 $ python3 server_09.py Sun Aug 27 14:18:43 2017 Server start - 0.0.0.0:8081 ^CKeyboardInterrupt Sun Aug 27 14:18:51 2017 Server stop - 0.0.0.0:8081 <package_parts.camera.UsbWebCam object at 0x76b17030> 200000 pi@raspberrypi:~/toku1/08-11-a3 $ ./server_09.py bash: ./server_09.py: 許可がありません
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/08/27 06:05
2017/08/27 12:06
2017/08/27 12:30 編集
2017/08/27 13:07
2017/08/27 13:15 編集
2017/08/28 00:46
2017/08/28 00:53 編集
2017/08/28 02:24
2017/08/28 03:16
2017/08/28 03:36 編集
2017/08/28 03:39
2017/08/29 00:31
2017/08/29 01:32