Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi
I did a bash script for download internet files to my FTP place... but when cron start to run those files if by any chance the conexion stop, they start to down again since 0, making many copies from the same file doing the job endless.
however when i run the script alone that don't happend, just when i run the cron
Could somebody give me any idea?
Hi
I did a bash script for download internet files to my FTP place... but when cron start to run those files if by any chance the conexion stop, they start to down again since 0, making many copies from the same file doing the job endless.
however when i run the script alone that don't happend, just when i run the cron
Could somebody give me any idea?
No, not since you don't post the script, or give us any details.
That is NOT the whole script, and most of what you posted is commented out. Unless you post details, there's nothing we can tell you.
I will say, based on the few lines that you did post, is that the "rm *" is VERY risky...you should always try to use a qualified path, like "rm /some/path/*" in scripts. Also, you don't post any of the file name(s) that the script is outputting, or even what version/distro of Linux you're using. Again, unless you provide details, there is nothing we can help you with.
That is NOT the whole script, and most of what you posted is commented out. Unless you post details, there's nothing we can tell you.
I will say, based on the few lines that you did post, is that the "rm *" is VERY risky...you should always try to use a qualified path, like "rm /some/path/*" in scripts. Also, you don't post any of the file name(s) that the script is outputting, or even what version/distro of Linux you're using. Again, unless you provide details, there is nothing we can help you with.
well... rm* i use for delete the before file completly, so it don't answer me and copy one new... this script save the file on /FTP/Antivirus/Windows/Avira/Actualizacion/
i work with debian 7 wheezy... i really don't know what other details i could give for, please, if you think that i most give more details, just ask me about,.... i would like so much you could help me
well... rm* i use for delete the before file completly, so it don't answer me and copy one new... this script save the file on /FTP/Antivirus/Windows/Avira/Actualizacion/
Ok...again, an "rm *" that's unqualified is risky. Use the entire path instead.
Quote:
i work with debian 7 wheezy... i really don't know what other details i could give for, please, if you think that i most give more details, just ask me about,.... i would like so much you could help me
You could POST THE SCRIPT, like we've asked you to SEVERAL TIMES NOW. You could also answer other questions, like:
What are the file name(s) that the script is outputting? You said it makes 'many copies'...what are they called?
Is this running as root/in roots CRON, or as your regular user/cron?
Permissions on the directories?
Ok...again, an "rm *" that's unqualified is risky. Use the entire path instead.
You could POST THE SCRIPT, like we've asked you to SEVERAL TIMES NOW. You could also answer other questions, like:
What are the file name(s) that the script is outputting? You said it makes 'many copies'...what are they called?
Is this running as root/in roots CRON, or as your regular user/cron?
Permissions on the directories?
Script's File name: Antivirus.ssh
one of the file who download is Avira Antivirus(i in this script download many antivirus and others programs), and when it make many copies first name vdf_fusebundle.zip, then vdf_fusebundle.zip.1, then vdf_fusebundle.zip.2 ... till i don't stop the cron or conexion down completly...
is the trouble, when I run the cron(as root) happend that but when i just run the script it don't happend... i woulkd like use the cron for forget all the afternoon to have to run the scrpit
Script's File name: Antivirus.ssh
one of the file who download is Avira Antivirus(i in this script download many antivirus and others programs), and when it make many copies first name vdf_fusebundle.zip, then vdf_fusebundle.zip.1, then vdf_fusebundle.zip.2 ... till i don't stop the cron or conexion down completly...
is the trouble, when I run the cron(as root) happend that but when i just run the script it don't happend... i woulkd like use the cron for forget all the afternoon to have to run the scrpit
Ok...so AGAIN...POST THE SCRIPT
Telling us the name is pointless. Unless you are going to answer questions you've been asked and post the script, there is no point in posting. You've been asked for details SEVERAL TIMES now, and have yet to provide them. You've been asked for the script, but don't provide it. We've had to ask over and over to get ANY information from you. So, either post COMPLETE details and the script, or figure it out yourself...without information, no one, anywhere, can help you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.