I pull the name of the pages of my site from a previously prepared file with the help of a "script". In the file, each word from a new line. The problem is that sometimes he pulls out nothing. I pass the search words to the chrome browser on android. Do you see an error in the code? Maybe you made some changes? I'm testing on the phone with root and busybox. I run scripts in the termonal Emulator.

#!/system/bin/sh su a=$(shuf -n 1 /расположение/до/текстового.txt) am start -n com.android.chrome/com.google.android.apps.chrome.Main "http://sait.ru/Search/$a" 

And in the terminal it says that the line pulls out correctly. But the browser starts on a blank page. The link does not open. That's part of the code from the terminal. Function in the terminal emulator: The default encoding is UTf, disabled

 Starting : intent { ac= android.intnt.action.ViEW dat=http://ссылка/search/ + cpm=com.andoid.chrome/com/google.android.apps.chrome.Main } 

    0