Git Product home page Git Product logo

autotask's Introduction

Auto Task一个自动化的Shell脚本,原理就是简单利用堵塞管道实现多任务同时处理。

功能介绍

- 支持同时监控多个后台任务
- 可配置运行间歇
- 支持多种类型脚本,目前仅支持Shell 和PHP

目录结构

- main.sh  
- task.sh
- pub_func  
- config    
- runtime   
- task      
- pipe      
- README.txt

配置文件

$ cat ./task/comment

#[Script Type]<br>
 itype=php

#[program absloute path]
ipath=/export/home/www/testProject/2.php

#[start record]
istart=0

#[end record]
iend=500000

#[step]
istep=1000

#[run thread]
ithread=3

使用步骤

1、创建需要的文件夹

- runtime
- pipe

2、运行脚本

$ /bin/bash main.sh

=============================================
Auto task System
=============================================
Welcome to auto task, Please Choice a options:
---------------------------------------------
a) kill all the running script
b) direct run the task list
c) kill all script and run

3、运行效果

The Nums is :14000  15000
The Nums is :15000  16000
SELECT id FROM news WHERE status=1 AND content!='' AND (`id` > 14000 AND `id` < 1000) ORDER BY id ASC
SELECT id FROM news_info WHERE status=1 AND content!='' AND (`id` > 15000 AND `id` < 1000) ORDER BY id ASC<br><br>

The Nums is :140000  150000
The Nums is :150000  160000
SELECT id FROM comment WHERE status=1 AND content!='' AND (`id` > 140000 AND `id` < 10000) ORDER BY id ASC
SELECT id FROM comment WHERE status=1 AND content!='' AND (`id` > 150000 AND `id` < 10000) ORDER BY id ASC

All.

autotask's People

Contributors

cunwang avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.