Add You
#1 in Business Subscribe Email Print

You are here: Home > Computers and Technology > Personal Tech > How To Automate Tasks In Your Linux Server

Tags

  • fourth
  • example
  • sample
  • second field
  • represents minute
  • whitespace separated

  • Links

  • Drive Traffic to Your Website With Articles
  • All The Secrets You Need To Know About International Cell Phones
  • Time Management Guidelines That Will Help You Add 1 More Hour A Day
  • Add You - How To Automate Tasks In Your Linux Server

    Affiliate Marketing and The TV Show 'Lost'
    I just finished watching the latest episode of ‘Lost’ on TV and noticed it was a little different from most episodes. Instead of the usual mysterious, cliffhanger type show, this one was more of a character-driven background story. Then I visited a ‘Lost’ fan forum and was surp
    day of week(0=sunday, 1=monday and so on).

    Note: * means every time and # means comments.

    To edit the crontab file, we use the crontab command like so:

    "crontab [ -e | -l -r ]"

    The swit
    Best Web Affiliate Marketing: You Too Can Be An Expert
    Anybody willing to put in a little effort can end up practicing the best web affiliate marketing resulting in some amazing revenue from their favorite affiliate program.All that is required to achieve your best web affiliate marketing is a little focused dedication and lot
    If your host is running under the Linux (Unix) operating system, you can perform tasks in the server on a regular basis. For example, sending mails at a certain time of the day, backing up database at 6 in the morning and so on.

    "Cron" is a program that runs in the background of the Linux server. The program runs certain commands defined by you at fixed time intervals. A tyical cron file will look something like this:

    # My Sample Cron File 12 01 02 * * /usr/bin/du /var > /home/test/diskSpace.txt

    Cron command lines consist of 6 whitespace separated fields. The first 5 fields are used to specify when to run the command, and the last field determines what command to run. The first field(12 in this case) represents minute, the second field represents hour, third field represents day of month, fourth field represents month(1=Jan, 2=Feb and so on), fifth field represents day of week(0=sunday, 1=monday and so on).

    Note: * means every time and # means comments.

    To edit the crontab file, we use the crontab command like so:

    "crontab [ -e | -l -r ]"

    The switc
    Conflict - Workplace Warning Signs
    Seemingly insignificant issues in the workplace can, if left to fester, evolve into debilitating conflicts that affect teams, departments, even the whole organization. Is impending crisis looming in your workplace? Here are some warning signs:The same issues keep coming


    "Cron" is a program that runs in the background of the Linux server. The program runs certain commands defined by you at fixed time intervals. A tyical cron file will look something like this:

    # My Sample Cron File 12 01 02 * * /usr/bin/du /var > /home/test/diskSpace.txt

    Cron command lines consist of 6 whitespace separated fields. The first 5 fields are used to specify when to run the command, and the last field determines what command to run. The first field(12 in this case) represents minute, the second field represents hour, third field represents day of month, fourth field represents month(1=Jan, 2=Feb and so on), fifth field represents day of week(0=sunday, 1=monday and so on).

    Note: * means every time and # means comments.

    To edit the crontab file, we use the crontab command like so:

    "crontab [ -e | -l -r ]"

    The swit
    How To Create A Mission Statement
    Creating a mission statement can help you focus your business effort and do a lot of good in bringing your workforce together behind a common theme. The key to success is not just creating a mission statement, it's living the mission statement.A mission statement identifie
    File 12 01 02 * * /usr/bin/du /var > /home/test/diskSpace.txt

    Cron command lines consist of 6 whitespace separated fields. The first 5 fields are used to specify when to run the command, and the last field determines what command to run. The first field(12 in this case) represents minute, the second field represents hour, third field represents day of month, fourth field represents month(1=Jan, 2=Feb and so on), fifth field represents day of week(0=sunday, 1=monday and so on).

    Note: * means every time and # means comments.

    To edit the crontab file, we use the crontab command like so:

    "crontab [ -e | -l -r ]"

    The swit
    Using a Blog to Generate Leads for an MLM Business
    By now, you should have some idea of what a ‘blog’ is. To keep it simple, a blog is sort of an online journal – which may include text entries called posts, videos, audio, photos and other web links.A blog is mostly about a person’s daily experiences, however, there are bl
    etermines what command to run. The first field(12 in this case) represents minute, the second field represents hour, third field represents day of month, fourth field represents month(1=Jan, 2=Feb and so on), fifth field represents day of week(0=sunday, 1=monday and so on).

    Note: * means every time and # means comments.

    To edit the crontab file, we use the crontab command like so:

    "crontab [ -e | -l -r ]"

    The swit
    3 Quick and Easy Steps to Earn Money Online NOW!
    It is not uncommon for Internet investments to land anyone deep in debt, but it is not uncommon for you to earn money online either – and earn a lot.There are three simple ways to go about filling your bank account with Internet-earned money.First, market, don't mak
    day of week(0=sunday, 1=monday and so on).

    Note: * means every time and # means comments.

    To edit the crontab file, we use the crontab command like so:

    "crontab [ -e | -l -r ]"

    The switch -e means to edit the current cron file. -l means to list the current file, and -r means to remove the current cron file. Try typing "crontab -l" and you will see the cron file contents. To access the crontab command, you need to have SSH(Secure Shell) access to the server. Basically, SSH allows you to type commands in the command prompt. If you have limited access to SSH, your host might provide some other ways to access cron via the control panel.

    For example, if I want to run a php script at 12 midnight everyday, I will type "crontab -e", then write my script as follows:

    0 0 * * * php /home/username/public_html/www.sitecritic.net.php

    The command that I run is "php". It is also recommended that you use full path reference to your script. In this case, it is /home/username/public_html/www.sitecritic.net.php.

    In Conclusion, cron can save you alot of time and effor

    HTTP = HTML link (for blogs, profiles,phorums):
    <a href="http://www.addyou.info/article/176905/addyou-How-To-Automate-Tasks-In-Your-Linux-Server.html">How To Automate Tasks In Your Linux Server</a>

    BB link (for phorums):
    [url=http://www.addyou.info/article/176905/addyou-How-To-Automate-Tasks-In-Your-Linux-Server.html]How To Automate Tasks In Your Linux Server[/url]

    Related Articles:

    How Can I Use Business Mentoring?

    Starting a Business with Planning

    Getting a Loan for Starting Your Business Regardless of Your Credit

    Bookmark it: del.icio.us digg.com reddit.com netvouz.com google.com yahoo.com technorati.com furl.net bloglines.com socialdust.com ma.gnolia.com newsvine.com slashdot.org simpy.com shadows.com blinklist.com