Wget file and send it to Bash Wget file and send it to Bash bash bash

Wget file and send it to Bash


Your script has DOS line-endings.

If you convert the line endings to Unix line endings, it runs fine:

$ tr -d '\r' < raw.php\?i\=VURksJnn > script$ cat script | bashTest scriptYou're not rootEnd test$ 


To start with, you save the downloaded wget'ed file locally, and run as bash filename. Because the following works for me:

cat - | bash