Downloading and executing script
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
add a comment |
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
add a comment |
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
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
linux bash script
asked Dec 25 '18 at 18:13
bajotupiebajotupie
51
51
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
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 usewget
(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
add a comment |
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
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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 usewget
(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
add a comment |
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.
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 usewget
(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
add a comment |
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.
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.
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 usewget
(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
add a comment |
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 usewget
(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
add a comment |
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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