1. python을 실행하는 방법에는 크게 두가지 함수를 사용할 수 있다.
$result=sd("python ./code/test.py"." "."world!");
echo $result;
exec("python ./code/make_DEmiRNA_target.py ".$miRNA_file,$out,$res);
echo $out, $res
두 함수의 차이점
https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=leokevin&logNo=221060656883
2. python 코드가 디렉토리 권한을 필요로하는 경우가 존재한다.
drwxrwxrwx 2 dayeon20 dayeon20 128 Jul 29 13:33 bin
현재 실행 디렉토리와
결과물 생성 디렉토리에서
chmod +755 을 실행하면 해결할 수 있다.
'Computer Science' 카테고리의 다른 글
[tutorial] VirtualBox설치 및 실행하기 (0) | 2022.11.25 |
---|---|
python deep learning 환경 설정 (0) | 2022.08.12 |
[PHP] 기초 문법 (0) | 2022.08.03 |
Git 시작하기 : 수난시대 (0) | 2022.07.30 |
Bioinformatics Data Skills -CH3. Remedial Unix Shell (0) | 2022.07.16 |