In terminal, instead of executing command, linux inserts ">" in newline after it
by Janez72 from LinuxQuestions.org on (#4YKJQ)
I have a command that I wanna run in terminal, but everytime I paste and 'execute' it, instead of doing anything, the terminal goes in the following line, and puts the ">" symbol at the beginning. I think it treats everything like text or something, because I can keep pressing enter, and it will keep going in new lines putting the above mentioned symbol at the beginning.
The code I want to paste is:
Code: sudo -s -- << EOF
wget -O - https://content.runescape.com/downloads/ubuntu/runescape.gpg.key | apt-key add -
mkdir -p /etc/apt/sources.list.d
echo "deb https://content.runescape.com/downloads/ubuntu trusty non-free" > /etc/apt/sources.list.d/runescape.list
apt-get update
apt-get install -y runescape-launcher
EOFThe Result I get when I hold 'enter' is:
Code:sudo -s -- << EOF
> wget -O - https://content.runescape.com/downloads/ubuntu/runescape.gpg.key | apt-key add -
> mkdir -p /etc/apt/sources.list.d
> echo "deb https://content.runescape.com/downloads/ubuntu trusty non-free" > /etc/apt/sources.list.d/runescape.list
> apt-get update
> apt-get install -y runescape-launcher
> EOF
>
>
>
>
>Any help MUCH apperciated!


The code I want to paste is:
Code: sudo -s -- << EOF
wget -O - https://content.runescape.com/downloads/ubuntu/runescape.gpg.key | apt-key add -
mkdir -p /etc/apt/sources.list.d
echo "deb https://content.runescape.com/downloads/ubuntu trusty non-free" > /etc/apt/sources.list.d/runescape.list
apt-get update
apt-get install -y runescape-launcher
EOFThe Result I get when I hold 'enter' is:
Code:sudo -s -- << EOF
> wget -O - https://content.runescape.com/downloads/ubuntu/runescape.gpg.key | apt-key add -
> mkdir -p /etc/apt/sources.list.d
> echo "deb https://content.runescape.com/downloads/ubuntu trusty non-free" > /etc/apt/sources.list.d/runescape.list
> apt-get update
> apt-get install -y runescape-launcher
> EOF
>
>
>
>
>Any help MUCH apperciated!