Downloading and executing script












0















I'm sorry for asking this but I couldn't find anything of help. I'm asked to download the script "install_esoreflex" (ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex) and then execute the following commands:



chmod u+x install_esoreflex

./install_esoreflex


But I'm not sure if "download the script" means download as a text file or copy and paste the script on a terminal.










share|improve this question



























    0















    I'm sorry for asking this but I couldn't find anything of help. I'm asked to download the script "install_esoreflex" (ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex) and then execute the following commands:



    chmod u+x install_esoreflex

    ./install_esoreflex


    But I'm not sure if "download the script" means download as a text file or copy and paste the script on a terminal.










    share|improve this question

























      0












      0








      0








      I'm sorry for asking this but I couldn't find anything of help. I'm asked to download the script "install_esoreflex" (ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex) and then execute the following commands:



      chmod u+x install_esoreflex

      ./install_esoreflex


      But I'm not sure if "download the script" means download as a text file or copy and paste the script on a terminal.










      share|improve this question














      I'm sorry for asking this but I couldn't find anything of help. I'm asked to download the script "install_esoreflex" (ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex) and then execute the following commands:



      chmod u+x install_esoreflex

      ./install_esoreflex


      But I'm not sure if "download the script" means download as a text file or copy and paste the script on a terminal.







      linux bash script






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 25 '18 at 18:13









      bajotupiebajotupie

      51




      51






















          2 Answers
          2






          active

          oldest

          votes


















          0














          In chmod u+x install_esoreflex install_esoreflex is a file in your current working directory. The same with ./install_esoreflex. You need this file to exist, so "downloading as a text file" is definitely the right interpretation. E.g. you can download the file with wget:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex


          then proceed as you were told.



          Technically copying and pasting may work as well (without chmod and ./install_esoreflex at all). This method has its downsides though. Since you were guided to download, you shouldn't just copy and paste.



          Note: executing a script (regardless whether with downloading or pasting) from untrusted source is unsafe in general. Run ./install_esoreflex only if you trust the source.






          share|improve this answer


























          • Thanks. So I should put all that's in the link on a text file and name it install_esoreflex?

            – bajotupie
            Dec 25 '18 at 18:42











          • @bajotupie Yes, it should work. Or just use wget (see the edited answer).

            – Kamil Maciorowski
            Dec 25 '18 at 18:45











          • The program only works with Python2, I have Python 3 and 2 but the script doesn't know since it warns me. Maybe you can help me to solve this. Happy holidays!

            – bajotupie
            Dec 25 '18 at 19:38











          • @bajotupie Well… I cannot, not my expertise. But even if I could, I shouldn't help you here. One issue, one question. I think I have answered the original question. If any additional issue appeared then please ask a new question (after doing your own research etc., so the new question is decent quality).

            – Kamil Maciorowski
            Dec 25 '18 at 19:42





















          0














          This command downloads the file and executes it at the same time:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex  -O - | sh


          If you want the script to find the correct python version try this:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex  -O - | sed 's/command -v python/command -v python2/g' | sh





          share|improve this answer
























          • Please note the second part of your answer addresses the side issue from one of the comments. Problems with Python are not in the scope of the question. However there is another question from the same user. I believe the second part of your answer belongs there.

            – Kamil Maciorowski
            Dec 26 '18 at 22:11











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1387630%2fdownloading-and-executing-script%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          In chmod u+x install_esoreflex install_esoreflex is a file in your current working directory. The same with ./install_esoreflex. You need this file to exist, so "downloading as a text file" is definitely the right interpretation. E.g. you can download the file with wget:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex


          then proceed as you were told.



          Technically copying and pasting may work as well (without chmod and ./install_esoreflex at all). This method has its downsides though. Since you were guided to download, you shouldn't just copy and paste.



          Note: executing a script (regardless whether with downloading or pasting) from untrusted source is unsafe in general. Run ./install_esoreflex only if you trust the source.






          share|improve this answer


























          • Thanks. So I should put all that's in the link on a text file and name it install_esoreflex?

            – bajotupie
            Dec 25 '18 at 18:42











          • @bajotupie Yes, it should work. Or just use wget (see the edited answer).

            – Kamil Maciorowski
            Dec 25 '18 at 18:45











          • The program only works with Python2, I have Python 3 and 2 but the script doesn't know since it warns me. Maybe you can help me to solve this. Happy holidays!

            – bajotupie
            Dec 25 '18 at 19:38











          • @bajotupie Well… I cannot, not my expertise. But even if I could, I shouldn't help you here. One issue, one question. I think I have answered the original question. If any additional issue appeared then please ask a new question (after doing your own research etc., so the new question is decent quality).

            – Kamil Maciorowski
            Dec 25 '18 at 19:42


















          0














          In chmod u+x install_esoreflex install_esoreflex is a file in your current working directory. The same with ./install_esoreflex. You need this file to exist, so "downloading as a text file" is definitely the right interpretation. E.g. you can download the file with wget:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex


          then proceed as you were told.



          Technically copying and pasting may work as well (without chmod and ./install_esoreflex at all). This method has its downsides though. Since you were guided to download, you shouldn't just copy and paste.



          Note: executing a script (regardless whether with downloading or pasting) from untrusted source is unsafe in general. Run ./install_esoreflex only if you trust the source.






          share|improve this answer


























          • Thanks. So I should put all that's in the link on a text file and name it install_esoreflex?

            – bajotupie
            Dec 25 '18 at 18:42











          • @bajotupie Yes, it should work. Or just use wget (see the edited answer).

            – Kamil Maciorowski
            Dec 25 '18 at 18:45











          • The program only works with Python2, I have Python 3 and 2 but the script doesn't know since it warns me. Maybe you can help me to solve this. Happy holidays!

            – bajotupie
            Dec 25 '18 at 19:38











          • @bajotupie Well… I cannot, not my expertise. But even if I could, I shouldn't help you here. One issue, one question. I think I have answered the original question. If any additional issue appeared then please ask a new question (after doing your own research etc., so the new question is decent quality).

            – Kamil Maciorowski
            Dec 25 '18 at 19:42
















          0












          0








          0







          In chmod u+x install_esoreflex install_esoreflex is a file in your current working directory. The same with ./install_esoreflex. You need this file to exist, so "downloading as a text file" is definitely the right interpretation. E.g. you can download the file with wget:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex


          then proceed as you were told.



          Technically copying and pasting may work as well (without chmod and ./install_esoreflex at all). This method has its downsides though. Since you were guided to download, you shouldn't just copy and paste.



          Note: executing a script (regardless whether with downloading or pasting) from untrusted source is unsafe in general. Run ./install_esoreflex only if you trust the source.






          share|improve this answer















          In chmod u+x install_esoreflex install_esoreflex is a file in your current working directory. The same with ./install_esoreflex. You need this file to exist, so "downloading as a text file" is definitely the right interpretation. E.g. you can download the file with wget:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex


          then proceed as you were told.



          Technically copying and pasting may work as well (without chmod and ./install_esoreflex at all). This method has its downsides though. Since you were guided to download, you shouldn't just copy and paste.



          Note: executing a script (regardless whether with downloading or pasting) from untrusted source is unsafe in general. Run ./install_esoreflex only if you trust the source.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 25 '18 at 18:43

























          answered Dec 25 '18 at 18:31









          Kamil MaciorowskiKamil Maciorowski

          26.1k155680




          26.1k155680













          • Thanks. So I should put all that's in the link on a text file and name it install_esoreflex?

            – bajotupie
            Dec 25 '18 at 18:42











          • @bajotupie Yes, it should work. Or just use wget (see the edited answer).

            – Kamil Maciorowski
            Dec 25 '18 at 18:45











          • The program only works with Python2, I have Python 3 and 2 but the script doesn't know since it warns me. Maybe you can help me to solve this. Happy holidays!

            – bajotupie
            Dec 25 '18 at 19:38











          • @bajotupie Well… I cannot, not my expertise. But even if I could, I shouldn't help you here. One issue, one question. I think I have answered the original question. If any additional issue appeared then please ask a new question (after doing your own research etc., so the new question is decent quality).

            – Kamil Maciorowski
            Dec 25 '18 at 19:42





















          • Thanks. So I should put all that's in the link on a text file and name it install_esoreflex?

            – bajotupie
            Dec 25 '18 at 18:42











          • @bajotupie Yes, it should work. Or just use wget (see the edited answer).

            – Kamil Maciorowski
            Dec 25 '18 at 18:45











          • The program only works with Python2, I have Python 3 and 2 but the script doesn't know since it warns me. Maybe you can help me to solve this. Happy holidays!

            – bajotupie
            Dec 25 '18 at 19:38











          • @bajotupie Well… I cannot, not my expertise. But even if I could, I shouldn't help you here. One issue, one question. I think I have answered the original question. If any additional issue appeared then please ask a new question (after doing your own research etc., so the new question is decent quality).

            – Kamil Maciorowski
            Dec 25 '18 at 19:42



















          Thanks. So I should put all that's in the link on a text file and name it install_esoreflex?

          – bajotupie
          Dec 25 '18 at 18:42





          Thanks. So I should put all that's in the link on a text file and name it install_esoreflex?

          – bajotupie
          Dec 25 '18 at 18:42













          @bajotupie Yes, it should work. Or just use wget (see the edited answer).

          – Kamil Maciorowski
          Dec 25 '18 at 18:45





          @bajotupie Yes, it should work. Or just use wget (see the edited answer).

          – Kamil Maciorowski
          Dec 25 '18 at 18:45













          The program only works with Python2, I have Python 3 and 2 but the script doesn't know since it warns me. Maybe you can help me to solve this. Happy holidays!

          – bajotupie
          Dec 25 '18 at 19:38





          The program only works with Python2, I have Python 3 and 2 but the script doesn't know since it warns me. Maybe you can help me to solve this. Happy holidays!

          – bajotupie
          Dec 25 '18 at 19:38













          @bajotupie Well… I cannot, not my expertise. But even if I could, I shouldn't help you here. One issue, one question. I think I have answered the original question. If any additional issue appeared then please ask a new question (after doing your own research etc., so the new question is decent quality).

          – Kamil Maciorowski
          Dec 25 '18 at 19:42







          @bajotupie Well… I cannot, not my expertise. But even if I could, I shouldn't help you here. One issue, one question. I think I have answered the original question. If any additional issue appeared then please ask a new question (after doing your own research etc., so the new question is decent quality).

          – Kamil Maciorowski
          Dec 25 '18 at 19:42















          0














          This command downloads the file and executes it at the same time:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex  -O - | sh


          If you want the script to find the correct python version try this:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex  -O - | sed 's/command -v python/command -v python2/g' | sh





          share|improve this answer
























          • Please note the second part of your answer addresses the side issue from one of the comments. Problems with Python are not in the scope of the question. However there is another question from the same user. I believe the second part of your answer belongs there.

            – Kamil Maciorowski
            Dec 26 '18 at 22:11
















          0














          This command downloads the file and executes it at the same time:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex  -O - | sh


          If you want the script to find the correct python version try this:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex  -O - | sed 's/command -v python/command -v python2/g' | sh





          share|improve this answer
























          • Please note the second part of your answer addresses the side issue from one of the comments. Problems with Python are not in the scope of the question. However there is another question from the same user. I believe the second part of your answer belongs there.

            – Kamil Maciorowski
            Dec 26 '18 at 22:11














          0












          0








          0







          This command downloads the file and executes it at the same time:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex  -O - | sh


          If you want the script to find the correct python version try this:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex  -O - | sed 's/command -v python/command -v python2/g' | sh





          share|improve this answer













          This command downloads the file and executes it at the same time:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex  -O - | sh


          If you want the script to find the correct python version try this:



          wget ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex  -O - | sed 's/command -v python/command -v python2/g' | sh






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 26 '18 at 22:04









          user1330614user1330614

          1334




          1334













          • Please note the second part of your answer addresses the side issue from one of the comments. Problems with Python are not in the scope of the question. However there is another question from the same user. I believe the second part of your answer belongs there.

            – Kamil Maciorowski
            Dec 26 '18 at 22:11



















          • Please note the second part of your answer addresses the side issue from one of the comments. Problems with Python are not in the scope of the question. However there is another question from the same user. I believe the second part of your answer belongs there.

            – Kamil Maciorowski
            Dec 26 '18 at 22:11

















          Please note the second part of your answer addresses the side issue from one of the comments. Problems with Python are not in the scope of the question. However there is another question from the same user. I believe the second part of your answer belongs there.

          – Kamil Maciorowski
          Dec 26 '18 at 22:11





          Please note the second part of your answer addresses the side issue from one of the comments. Problems with Python are not in the scope of the question. However there is another question from the same user. I believe the second part of your answer belongs there.

          – Kamil Maciorowski
          Dec 26 '18 at 22:11


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1387630%2fdownloading-and-executing-script%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Список кардиналов, возведённых папой римским Каликстом III

          Deduzione

          Mysql.sock missing - “Can't connect to local MySQL server through socket”