Coder Social home page Coder Social logo

erplusrunning's Introduction

erplus 定时运行任务

配置

去 config.js 中添加 token

token 获取方式:登陆之后去 cookies 中获取 token

运行

安装依赖

npm install

启动服务

node index.js

TODO

  • 节假日及周日跳过任务

建议

  • 可改造成 Actions 自动运行
  • 可改造成自己电脑,比如:Windows 自动运行

自己电脑开机自动运行

我自己的思路:

建一个文件夹 script,存放所有需要开机自动运行的脚本,

在这个文件夹上面建一个运行所有 script 里面脚本的脚本 index.bat

创建这个 index.bat 脚本的快捷方式,把这个快捷方式放到 C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

这样就可以开机自启动

auto-run-script
 ├── index.bat  // 运行 script 下的所有脚本
 └── script
     └── erplus.bat  // 这个 ERPLUS 脚本
# index.bat
for /r "E:\auto-run-script\script" %%i in (*.bat) do (start "" "%%i") // 这里填写了完整路径
# erplus.bat
node "E:\erplus\index.js"

erplusrunning's People

Contributors

eval9527 avatar

Watchers

 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.