Monday 29 March 2010

HOW to set up CRON JOB file using putty?

Using following step, you can set cronjob

1.) SSH or telnet into your account.
2.) At the prompt, type in 'crontab -e'. This will open up your crontab file, or create a new one if it doesn't exist.
When this file opens, you will see other cron jobs listed in here, or if you haven't any - you'll see a bunch of lines with '~' on them.
3.) Use the cursor to go down until you can't move the cursor down any more. This is where you start your new line. Press 'o' to insert a new line.
4.) Press 'o' to insert a new line. If you want to edit a line, press 'i'.
5.) Copy the code above, then right click into your SSH or telnet client to paste the above code in. This should all go in as a new line.
6.) Press the 'esc' key to exit out of edit mode.
7.) To save the changes and exit, type the following in: ZZ
If you want to exit without saving changes, type in: :q!




# Minute   Hour   Day of Month       Month          Day of Week        Command    
# (0-59)  (0-23)     (1-31)    (1-12 or Jan-Dec)  (0-6 or Sun-Sat)                
    0        2          12             *               0,6           /usr/bin/php /vr/www/html/vpe/mail.php
30 23 * * * /usr/bin/php /var/www/html/vpe/mail.php  

that means above cron will run daily at 23:30 i.e., 11:30 PM 
and you'r done.

Cheers!

45 comments:

  1. This is the ultimate solution I find.Finally this works.Thanks so much.

    I just change the 'user to usr' from the above line.

    Debraj Mandal
    Php Team Leader

    ReplyDelete
  2. Its really good!! Thanks

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Really Helpful it is
    Thanks Bro

    ReplyDelete
  5. How to delete some texts on crontab? I already try using shift+backspace, but it cannot work. Could you give some advice? Thank you~

    ReplyDelete
  6. A cron job is an automated task that is actioned by the server, most people think that a cron runs automatically. This article has been written to show that this is not the case. Cron Job In Magento Store"

    ReplyDelete
  7. Thank you for posting you blog, are you rearching for Jobs in PHP

    ReplyDelete
  8. I really appreciate your Post. the post has excellent tips which are useful. this post is good in regards of both knowledge as well as information Jobs in Linux

    ReplyDelete
  9. Its really an Excellent post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog. Thanks for sharing....
    Best Devops Training in pune
    Devops Training in Bangalore
    Microsoft azure training in Bangalore
    Power bi training in Chennai

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. Thanks for sharing this blog
    [url=https://ivf.origyn.net]IVF Center in delhi[/url]
    [url=http://procinehub.com/]best baby photographer in jalandhar[/url]
    [url=http://procinehub.com/]best fashion photographer in Chandigarh[/url]
    [url=https://www.styleandgeek.com/home-remedies-hair-fall//]home remedies for hair fall[/url]
    [url=https://www.styleandgeek.com/top-25-home-remedies-to-remove-tanning//home-remedies-hair-fall//]home remedies to get rid of tanning[/url]
    [url=https://www.lms.coim.in//]Online Digital Marketing Training[/url]

    ReplyDelete
  12. Visit for Python training in Bangalore:- Python training in Bangalore

    ReplyDelete
  13. Its really helpful for the users of this site. I am also searching about these type of sites now a days. So your site really helps me for searching the new and great stuff.other training in bangalore

    ReplyDelete
  14. Being new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well as giving.software training in bangalore

    ReplyDelete
  15. Excellent blog post. Thanks for sharing this. Learning a new technology is useful to know the PHP achieve the hard part of the career. Keep posting stuff like this.
    DevOps Training in Chennai

    DevOps Online Training in Chennai

    DevOps Training in Bangalore

    DevOps Training in Hyderabad

    DevOps Training in Coimbatore

    DevOps Training

    DevOps Online Training

    ReplyDelete
  16. Really it is very useful for us..... the information that you have shared is really useful for everyone.Nice article i have ever read information's like this.it's really awesome the way you have delivered your ideas.i hope you will add more content in your blog.PHP Training in Chennai

    PHP Online Training in Chennai

    Machine Learning Training in Chennai

    iOT Training in Chennai

    Blockchain Training in Chennai

    Open Stack Training in Chennai

    ReplyDelete
  17. It is much easier and more robust than Java. It allows for fast creation of web page events. Many JavaScript commands are what are known as Event Handlers: They can be embedded right into existing HTML commands. JavaScript is a little more forgiving than Java
    Java training in Bangalore

    Java training in Hyderabad

    Java Training in Coimbatore

    Java training in Bangalore

    Java training in Hyderabad

    Java Training in Coimbatore

    https://www.acte.in/java-training-in-bangalore
    https://www.acte.in/java-training-in-hyderabad
    https://www.acte.in/java-training-in-coimbatore
    https://www.acte.in/java-training

    ReplyDelete
  18. Good post and informative. Thank you very much for sharing this good article, it was so good to read and useful to improve my knowledge as updated, keep blogging.Thank you for sharing wonderful information with us to get some idea about that content.
    oracle training in chennai

    oracle training institute in chennai

    oracle training in bangalore

    oracle training in hyderabad

    oracle training

    oracle online training

    hadoop training in chennai

    hadoop training in bangalore

    ReplyDelete
  19. I really appreciate your Post. the post has excellent tips which are useful. this post is good in regards of both knowledge as well as information...


    AWS Course in Chennai

    AWS Course in Bangalore

    AWS Course in Hyderabad

    AWS Course in Coimbatore

    AWS Course

    AWS Certification Course

    AWS Certification Training

    AWS Online Training

    AWS Training

    ReplyDelete
  20. Thanks for sharing this information and keep updating us.it will really helpful for Career Growth. Really it was an awesome article.
    acte reviews

    acte velachery reviews

    acte tambaram reviews

    acte anna nagar reviews

    acte porur reviews

    acte omr reviews

    acte chennai reviews

    acte student reviews

    ReplyDelete
  21. very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.

    Web Designing Training in Bangalore

    Web Designing Course in Bangalore

    Web Designing Training in Hyderabad

    Web Designing Course in Hyderabad

    Web Designing Training in Coimbatore

    Web Designing Training

    Web Designing Online Training

    ReplyDelete
  22. Its really helpful for the users of this site. I am also searching about these type of sites now a days. So your site really helps me for searching the new and great stuff.
    DevOps Training in Chennai

    DevOps Course in Chennai

    ReplyDelete
  23. This is great advice! Very honest and practical. I really enjoyed this post. Nice post!! these tips may help Great post, Jo! My favorite work advice. Thanks so much for a detailed post! It is very helpful for

    Java Training in Chennai

    Java Course in Chennai

    ReplyDelete
  24. This content of information has
    helped me a lot. It is very well explained and easy to understand.

    Java Training in Chennai

    Java Course in Chennai

    ReplyDelete
  25. tools that automate and scale events personalize attendee experiences and deliver positive ROI. event marketing, quote planners and friendly introvert

    ReplyDelete

  26. It's difficult to find experienced individuals about this subject, yet you seem like you hear what you're saying! Much obliged
    best interiors

    ReplyDelete
  27. This post is so interactive and informative.keep update more information...
    Java Training in Tambaram
    java course in tambaram

    ReplyDelete
  28. IDM Full Crack is a tool that speeds up, resumes, and plans downloads. When problems arise, like lost affiliations, network issues.
    IDM Full Version

    ReplyDelete