Coder Social home page Coder Social logo

scriptserver's Introduction

Overview

No more creating ScriptCS files, copying it over to the server where it needs to run, and then log into the server to run it; or to setup a scheudle when the file should run.

When ScriptCS Server runs it watches a folder for ScriptCS files. When you drop or sftp (Danger! using plain ftp to drop ScriptCS files is dangerous) a file into that folder, or if you change a file in that folder, the server will pick it up automatically and run it

On top of a ScriptCS file you can specify its schedule when it should run, or if you leave it out the server will run it once.

Server Preraquisites

  1. Install ScriptCS

Installing The Server

  1. Download ScriptServer
  2. Install ScriptServer to run as a service

Configuring The Server

In the folder where the server was installed you will find the app.config file, open that file to configure the server. Note: you will need to restart the service in order for the server to pickup the new config changes. Remember these are server configurations, you don't need to use this to configure individual ScriptCS files. ScriptFiles, you just need to drop into the folder and forget about it.

  1. WatchDirectory: The directory the server should watch for ScriptCS files

Scheduling

You can specifiy a schedule when the ScriptCS file should run, by adding a timespan comment on top of the ScriptCS file

    //SCHEDULE-TIME-SPAN: [hour] [minutes] [seconds]
    //SCHEDULE-TIME-SPAN: 1 2 3

Means every 1 hour, 2 minutes and 3 seconds

    //SCHEDULE-TIME-SPAN: 0 2 3

Means every 2 minutes

Updated by Yitzchok Neuahus

scriptserver's People

Contributors

uselesshasid avatar shragesmilowitz avatar yitzchokneuhaus1 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.