반응형

출처: https://stackoverflow.com/questions/23565743/script-file-to-run-in-android-devices-with-help-of-the-sh-present-in-adb-shell

 

Script file to run in android devices with help of the sh present in adb shell

I am facing a problem in writing a shell script for android devices to be run only on sh present in the device (/system/bin/sh). I have written the following script #!/system/bin/sh while [ 1 ]...

stackoverflow.com

분명히 콘솔 창 노가다로는 잘 실행했는데 스크립트 파일로 만들고 나서 실행하면 안 되길래 뭔가해서 찾았더니,

스크립트 파일을 윈도우 환경에서 작성했기 때문에 개행문자가 리눅스와 달라 일어난 문제였다.

리눅스 것으로 바꾸니까 당연히 잘 실행되었다.

반응형
Posted by 애콜라이트
l

free counters