I want to copy and overwrite everything from one catalog to another. This should be done one minute past every hour every day of the month - and someone told me to use cron. Every hour, it will copy the files out. That will load up the default editor nano where you can copy and paste that line in. Then click ctrl-o to save the file, and ctrl-x to exit.
You should get some kind of a message saying new cron file installed successfully. Edit:This K-base article may be of some help as well. Well, yes and no. Is the command wrapping around to two lines? If this is the case, use one of the following:. That became my current standard. Use a cron job, assuming you have permissions to add one. Julian Julian 5 5 silver badges 5 5 bronze badges. Excuse me, but why you need the files to be copied there? Some systems do not allow to link across filesystems and follow the link , for instance Helios Ethershare.
So if you perhaps have a published tree with a shared folder a copy could be neccessary. In addition to what wolf already said: In Apache-httpd you have to explicitly allow to follow symbolic-links if using such a construction in a web-server. It is off by default to avoid having access in areas where no user should have access to even ro.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Dgydgy Dgydgy 1 1 1 silver badge 1 1 bronze badge.
It's hard to know what you are trying to do - what's your intended result? Could you please add a little more detail? What exactly did you do, what did you want to achieve and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question.
You can select, copy and paste terminal content and most dialogue messages in Ubuntu. Add a comment. Active Oldest Votes. Improve this answer. Active 4 years, 1 month ago. Viewed 63k times. How can I export the contents of the crontab to a file? I need it because I'm switching usernames and do not want to lose the data in the crontab.
Improve this question. Omer Dagan Omer Dagan Add a comment. Active Oldest Votes.
0コメント