Getting No Such File in Directory running wget script












0















I'm very new to Ubuntu and scripting. I am a Windows sysadmin. I need to schedule a .csv download once a day for my job.



First I tried to use the windows version of WGET and had was able to create this script but when using windows Task Scheduler it wouldn't work. I think maybe it had a problem with the script trying to run too fast and not allowing it to authenticate (just a guess).



F:ExportsWGETwget.exe -O F:ExportsWGETTESTTEST_Export.csv "https://URLOMMITED" --no-check-certificate -r -P TEST


I couldn't figure it out so then I thought maybe I can install Ubuntu on a VM and give Ubuntu a shot since I know WGET is a linux command and have always wanted to use Ubuntu.



I opened gpedit and created this version of the script tested it on the Terminal by copy and paste and it works.



wget -O /home/gdadmin/Desktop/Exports/TEST.csv "https://URLOMMITED" --no-check-certificate


I saved it as test.sh on the Desktop and made it executable using:



chmod +x /home/gdadmin/Desktop/test.sh. 


Then I tried opening the terminal to run the script:



./home/gdadmin/Desktop/test.sh


I get:



bash: ./home/gdadmin/Desktop/qual.sh: No such file or directory


I'm reading that I may be missing dependencies but I'm not sure what to do. I am just trying turn it into a executable file so that I can then figure out how to schedule it. I am planning on reading about using Crontab but first I want to test it as a file so I can start trying to run it on Crontab.



Any guidance would be greatly appreciated!










share|improve this question

























  • so you typed test.sh and it responded no such file or directory qual.sh?

    – JD Schmidt
    Jan 30 '15 at 2:40






  • 4





    You are trying to refer to an absolute path /home/gdadmin/Desktop/qual.sh but are prepending . so that the system is looking for /home/gdadmin/Desktop/qual.sh relative to your current directory.

    – steeldriver
    Jan 30 '15 at 2:43








  • 1





    @steeldriver do post that as an answer.

    – muru
    Feb 2 '15 at 15:52
















0















I'm very new to Ubuntu and scripting. I am a Windows sysadmin. I need to schedule a .csv download once a day for my job.



First I tried to use the windows version of WGET and had was able to create this script but when using windows Task Scheduler it wouldn't work. I think maybe it had a problem with the script trying to run too fast and not allowing it to authenticate (just a guess).



F:ExportsWGETwget.exe -O F:ExportsWGETTESTTEST_Export.csv "https://URLOMMITED" --no-check-certificate -r -P TEST


I couldn't figure it out so then I thought maybe I can install Ubuntu on a VM and give Ubuntu a shot since I know WGET is a linux command and have always wanted to use Ubuntu.



I opened gpedit and created this version of the script tested it on the Terminal by copy and paste and it works.



wget -O /home/gdadmin/Desktop/Exports/TEST.csv "https://URLOMMITED" --no-check-certificate


I saved it as test.sh on the Desktop and made it executable using:



chmod +x /home/gdadmin/Desktop/test.sh. 


Then I tried opening the terminal to run the script:



./home/gdadmin/Desktop/test.sh


I get:



bash: ./home/gdadmin/Desktop/qual.sh: No such file or directory


I'm reading that I may be missing dependencies but I'm not sure what to do. I am just trying turn it into a executable file so that I can then figure out how to schedule it. I am planning on reading about using Crontab but first I want to test it as a file so I can start trying to run it on Crontab.



Any guidance would be greatly appreciated!










share|improve this question

























  • so you typed test.sh and it responded no such file or directory qual.sh?

    – JD Schmidt
    Jan 30 '15 at 2:40






  • 4





    You are trying to refer to an absolute path /home/gdadmin/Desktop/qual.sh but are prepending . so that the system is looking for /home/gdadmin/Desktop/qual.sh relative to your current directory.

    – steeldriver
    Jan 30 '15 at 2:43








  • 1





    @steeldriver do post that as an answer.

    – muru
    Feb 2 '15 at 15:52














0












0








0


1






I'm very new to Ubuntu and scripting. I am a Windows sysadmin. I need to schedule a .csv download once a day for my job.



First I tried to use the windows version of WGET and had was able to create this script but when using windows Task Scheduler it wouldn't work. I think maybe it had a problem with the script trying to run too fast and not allowing it to authenticate (just a guess).



F:ExportsWGETwget.exe -O F:ExportsWGETTESTTEST_Export.csv "https://URLOMMITED" --no-check-certificate -r -P TEST


I couldn't figure it out so then I thought maybe I can install Ubuntu on a VM and give Ubuntu a shot since I know WGET is a linux command and have always wanted to use Ubuntu.



I opened gpedit and created this version of the script tested it on the Terminal by copy and paste and it works.



wget -O /home/gdadmin/Desktop/Exports/TEST.csv "https://URLOMMITED" --no-check-certificate


I saved it as test.sh on the Desktop and made it executable using:



chmod +x /home/gdadmin/Desktop/test.sh. 


Then I tried opening the terminal to run the script:



./home/gdadmin/Desktop/test.sh


I get:



bash: ./home/gdadmin/Desktop/qual.sh: No such file or directory


I'm reading that I may be missing dependencies but I'm not sure what to do. I am just trying turn it into a executable file so that I can then figure out how to schedule it. I am planning on reading about using Crontab but first I want to test it as a file so I can start trying to run it on Crontab.



Any guidance would be greatly appreciated!










share|improve this question
















I'm very new to Ubuntu and scripting. I am a Windows sysadmin. I need to schedule a .csv download once a day for my job.



First I tried to use the windows version of WGET and had was able to create this script but when using windows Task Scheduler it wouldn't work. I think maybe it had a problem with the script trying to run too fast and not allowing it to authenticate (just a guess).



F:ExportsWGETwget.exe -O F:ExportsWGETTESTTEST_Export.csv "https://URLOMMITED" --no-check-certificate -r -P TEST


I couldn't figure it out so then I thought maybe I can install Ubuntu on a VM and give Ubuntu a shot since I know WGET is a linux command and have always wanted to use Ubuntu.



I opened gpedit and created this version of the script tested it on the Terminal by copy and paste and it works.



wget -O /home/gdadmin/Desktop/Exports/TEST.csv "https://URLOMMITED" --no-check-certificate


I saved it as test.sh on the Desktop and made it executable using:



chmod +x /home/gdadmin/Desktop/test.sh. 


Then I tried opening the terminal to run the script:



./home/gdadmin/Desktop/test.sh


I get:



bash: ./home/gdadmin/Desktop/qual.sh: No such file or directory


I'm reading that I may be missing dependencies but I'm not sure what to do. I am just trying turn it into a executable file so that I can then figure out how to schedule it. I am planning on reading about using Crontab but first I want to test it as a file so I can start trying to run it on Crontab.



Any guidance would be greatly appreciated!







14.04 command-line wget






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 30 '15 at 5:15









g_p

12.7k24461




12.7k24461










asked Jan 30 '15 at 2:34









IvanIvan

111




111













  • so you typed test.sh and it responded no such file or directory qual.sh?

    – JD Schmidt
    Jan 30 '15 at 2:40






  • 4





    You are trying to refer to an absolute path /home/gdadmin/Desktop/qual.sh but are prepending . so that the system is looking for /home/gdadmin/Desktop/qual.sh relative to your current directory.

    – steeldriver
    Jan 30 '15 at 2:43








  • 1





    @steeldriver do post that as an answer.

    – muru
    Feb 2 '15 at 15:52



















  • so you typed test.sh and it responded no such file or directory qual.sh?

    – JD Schmidt
    Jan 30 '15 at 2:40






  • 4





    You are trying to refer to an absolute path /home/gdadmin/Desktop/qual.sh but are prepending . so that the system is looking for /home/gdadmin/Desktop/qual.sh relative to your current directory.

    – steeldriver
    Jan 30 '15 at 2:43








  • 1





    @steeldriver do post that as an answer.

    – muru
    Feb 2 '15 at 15:52

















so you typed test.sh and it responded no such file or directory qual.sh?

– JD Schmidt
Jan 30 '15 at 2:40





so you typed test.sh and it responded no such file or directory qual.sh?

– JD Schmidt
Jan 30 '15 at 2:40




4




4





You are trying to refer to an absolute path /home/gdadmin/Desktop/qual.sh but are prepending . so that the system is looking for /home/gdadmin/Desktop/qual.sh relative to your current directory.

– steeldriver
Jan 30 '15 at 2:43







You are trying to refer to an absolute path /home/gdadmin/Desktop/qual.sh but are prepending . so that the system is looking for /home/gdadmin/Desktop/qual.sh relative to your current directory.

– steeldriver
Jan 30 '15 at 2:43






1




1





@steeldriver do post that as an answer.

– muru
Feb 2 '15 at 15:52





@steeldriver do post that as an answer.

– muru
Feb 2 '15 at 15:52










1 Answer
1






active

oldest

votes


















0














Stop! Hold your horses!



You've installed a VM tu run one single command? Windows is a fully compliant POSIX OS (meaning: it's "kind of compatible" with Unix) and you don't need a VM for that!



Your problem is the https:// and using --no-certificate is not going to cut it if that server needs log-in information! So the URL OMITTED is actually needed to help you find a satisfying solution, as the wget manual clearly states.



So you need to give more information or figure out yourself if the server needs certificates / keys / login information, ... to define the additional wget parameters you need to get the ssl/tls/... up and running so that wget can do its job...



(And you can make it fully work under Windows too, no Unix VM needed)






share|improve this answer
























  • As you're a reputation 1 user: If this all works, don't forget to click the grey check-mark under the "0" at the left of this text, which means "yes, this answer is valid"! ;-)

    – Fabby
    Feb 2 '15 at 15:49











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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%2faskubuntu.com%2fquestions%2f579503%2fgetting-no-such-file-in-directory-running-wget-script%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Stop! Hold your horses!



You've installed a VM tu run one single command? Windows is a fully compliant POSIX OS (meaning: it's "kind of compatible" with Unix) and you don't need a VM for that!



Your problem is the https:// and using --no-certificate is not going to cut it if that server needs log-in information! So the URL OMITTED is actually needed to help you find a satisfying solution, as the wget manual clearly states.



So you need to give more information or figure out yourself if the server needs certificates / keys / login information, ... to define the additional wget parameters you need to get the ssl/tls/... up and running so that wget can do its job...



(And you can make it fully work under Windows too, no Unix VM needed)






share|improve this answer
























  • As you're a reputation 1 user: If this all works, don't forget to click the grey check-mark under the "0" at the left of this text, which means "yes, this answer is valid"! ;-)

    – Fabby
    Feb 2 '15 at 15:49
















0














Stop! Hold your horses!



You've installed a VM tu run one single command? Windows is a fully compliant POSIX OS (meaning: it's "kind of compatible" with Unix) and you don't need a VM for that!



Your problem is the https:// and using --no-certificate is not going to cut it if that server needs log-in information! So the URL OMITTED is actually needed to help you find a satisfying solution, as the wget manual clearly states.



So you need to give more information or figure out yourself if the server needs certificates / keys / login information, ... to define the additional wget parameters you need to get the ssl/tls/... up and running so that wget can do its job...



(And you can make it fully work under Windows too, no Unix VM needed)






share|improve this answer
























  • As you're a reputation 1 user: If this all works, don't forget to click the grey check-mark under the "0" at the left of this text, which means "yes, this answer is valid"! ;-)

    – Fabby
    Feb 2 '15 at 15:49














0












0








0







Stop! Hold your horses!



You've installed a VM tu run one single command? Windows is a fully compliant POSIX OS (meaning: it's "kind of compatible" with Unix) and you don't need a VM for that!



Your problem is the https:// and using --no-certificate is not going to cut it if that server needs log-in information! So the URL OMITTED is actually needed to help you find a satisfying solution, as the wget manual clearly states.



So you need to give more information or figure out yourself if the server needs certificates / keys / login information, ... to define the additional wget parameters you need to get the ssl/tls/... up and running so that wget can do its job...



(And you can make it fully work under Windows too, no Unix VM needed)






share|improve this answer













Stop! Hold your horses!



You've installed a VM tu run one single command? Windows is a fully compliant POSIX OS (meaning: it's "kind of compatible" with Unix) and you don't need a VM for that!



Your problem is the https:// and using --no-certificate is not going to cut it if that server needs log-in information! So the URL OMITTED is actually needed to help you find a satisfying solution, as the wget manual clearly states.



So you need to give more information or figure out yourself if the server needs certificates / keys / login information, ... to define the additional wget parameters you need to get the ssl/tls/... up and running so that wget can do its job...



(And you can make it fully work under Windows too, no Unix VM needed)







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 2 '15 at 15:49









FabbyFabby

26.8k1360161




26.8k1360161













  • As you're a reputation 1 user: If this all works, don't forget to click the grey check-mark under the "0" at the left of this text, which means "yes, this answer is valid"! ;-)

    – Fabby
    Feb 2 '15 at 15:49



















  • As you're a reputation 1 user: If this all works, don't forget to click the grey check-mark under the "0" at the left of this text, which means "yes, this answer is valid"! ;-)

    – Fabby
    Feb 2 '15 at 15:49

















As you're a reputation 1 user: If this all works, don't forget to click the grey check-mark under the "0" at the left of this text, which means "yes, this answer is valid"! ;-)

– Fabby
Feb 2 '15 at 15:49





As you're a reputation 1 user: If this all works, don't forget to click the grey check-mark under the "0" at the left of this text, which means "yes, this answer is valid"! ;-)

– Fabby
Feb 2 '15 at 15:49


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • 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%2faskubuntu.com%2fquestions%2f579503%2fgetting-no-such-file-in-directory-running-wget-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

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

張江高科駅