SkyHorse.Org

Crontab script

Crontab is a software for *nix systems that enables users to run a certain application at specified times.

A problem, at least for me, arises when I want to run an application only if it isn’t already running. For that, I wrote this simple bash script. It’s not perfect but I didn’t find anything serving this purpose on the web. If you do, please send it to me :)

Just replace myusername with your login, appname with the command name of your application. It may not work if your ps aux listing does not show a ./ before the appname.

And of course, put it in your crontab (just crontab -e). My crontab looks like this:

01 22,23,00,01,02,03,04,05,06,07,08 * * * ~/start.cron

(which means start.cron will be run every hour from 22 to 8 )

Download start.cron

Tags: Downloads

Related posts:

  • DirectAdmin to cPanel : a partial BASH solution
  • Free SMS’s - Hacked software circulates on the net
  • SouthPark and Futurama episodes download in avi dvd-rip

This entry was posted on Friday, May 6th, 2005 at 2:28 pm and is filed under Downloads. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

« EditPlus syntax coloring definition file for editing Nemisys Assembly Language.
My new web place »

Leave a Reply

  • Tags

    AI apple behavioural-targeting business christianity Computing cPanel design DNS Downloads Games GNU/Linux google hacking hacking Hardware headphones hosting Ideas Instant Messaging iphone islam marketing online-advertising online media Personal Philosophy poker Programming satire scripts search Security sociology startups technology Travel ubuntu v-moda Visionarism web-2.0 web-marketing Web Design WHM wunderloop
  • Pages

    • About
    • Web Server Administration
      • Auto update modsecurity rules - modsec.sh
      • DirectAdmin to cPanel : a partial BASH solution
      • The Definite Guide of Obscure Tweaks to Install and Maintain cPanel / WHM (version 10)
        • Configuring E-mail (Exim) related areas
        • Fixing open DNS servers
        • Monitoring your server
        • Scripts and misc information
        • Security by Obscurity
        • Tweaking apache web server
  • Twitter Updates

    • Ads

    • RSS NMA

      • High profile Twitter users suffer security scare 6 January, 2009
      • T-Mobile launches G1 Google Android channel on YouTube 6 January, 2009
      • Train operator FTPE relaunches site with customer focus 6 January, 2009
    • RSS Brand Republic

      • RKCR/Y&R scoops fire safety ad brief 6 January, 2009
      • Atheists unveil £130,000 bus poster campaign 6 January, 2009
      • Times ups cover price in Scotland 6 January, 2009
    • RSS iMedia Connection: Consumer Strategies

      • Why basic reputation management isn't enough
      • 8 ways to increase targeting effectiveness
      • Branding without brands: 3 success stories
    • RSS Behavioural Targeting news

      • Online advertising's big thing - CanadianBusiness.com 2 January, 2009
      • Powerful behavioural targeting unleashed in the Movidilo Marketing ... - PressZoom (press release) 18 December, 2008
      • Adknowledge Partners with Maxymier to Optimise the Entire Online ... - PR Web (press release) 17 December, 2008
      • Media agencies predict higher spend in 2009 - New Media Age 17 December, 2008
      • Phorm UK CEO Hugo Drayton steps down - New Media Age 18 December, 2008
    • RSS Adotas

      • An error has occurred; the feed is probably down. Try again later.
    • RSS MarketingVox

      • Cox, ABC Tackle Online, Multi-Platform Sales
      • Industry Buzz & Snippets: 01/06/09
      • 1 in 3 BB Storm Owners is Happy; iPhone Moves In on RIM Turf
    • RSS SimsCity blog

      • Scalability 8 July, 2008
      • A message to Mac users 5 July, 2008
      • Transfering files from computer to iPhone 26 June, 2008
    • RSS Donald Hamilton

      • Online ad spending bucks trends 29 September, 2008
      • Ad:Tech 25 September, 2008
      • Phorm in the clear? 18 September, 2008
    • RSS Don't be Square

    • Ads

    • RSS mindcode

      • O Ensino… 1 December, 2008
      • Quote of the Day 30 November, 2008
      • Lemmings Tunes 25 November, 2008
    • RSS ZDnet Security

      • A technical look at how parallel processing brings vast new capabilities to large-scale BI and data analysis 5 January, 2009
      • What I learned in 2008 30 December, 2008
      • Perl PR: There's more than one way to do it 29 December, 2008
    • TechDispenser


    • Blogroll

      • 90kts
      • Acxiom Poker Nights
      • Amy’s blog
      • Bytter’s blog
      • morena flor no samba da saudade
      • Not Quite There Yet
      • Swedish Pirate Party
    • Cartoons

      • Geek & Poke
      • Order of the Stick
      • User Friendly
    • Gaming

      • Neverwinter Nights
    • online media

      • Knowledge for the Digital Economy
      • Mike on Ads
    • Personal

      • Atelier de Camisa
      • Banksy
      • Designarte
      • My Amazon Wishlist
      • SkyServers.Org
    • Science

      • Hermetic Research
      • New Scientist
      • Rex Research
      • ScienceBox
      • Wired
    • Security

      • GPG4Win
      • GPGol
      • GPGShell
      • Mod Security
      • Offline Windows NT(2k,XP) Password Recovery
    • Web Design

      • PageStrength
      • SiteScore
      • UrlTrends
    • Akismet

      34,088 spam comments
      blocked by
      Akismet

    © 2003 - 2008 Paulo Cunha | SkyHorse.Org is proudly powered by WordPress | Theme based on Bob