Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I've been doing my research, however I couldn't find the answer.
I created a file which basically copy a full directory (700Mb approx.),
then I put all together with tar, compress with gzip, and finally I erase the temporary directory.
I am trying to do all together in a file, but it seems to start with the 2nd operation before finishing the first one. Therefore, sometimes I have partials .tar, unreadable .gz, etc.
Does is make sense? Is there some kind of pause I can use in between commands? Should I create 3 / 4 different enters in the cron tab?
This last option of course that would work, yet doesn't seems to me the better way to do it.
Then it turns that if I run the file by myself, I get as result the file capital.gz (~=100Mb), BUT if the file is run by cron, I get as final result a file capital.tar (=9.1Mb --> always same size) and all the files in the directory TMP.
Does it make any sense? Some reasonable explanation?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.