Skip to content

Server that runs self-scheduled scripts by dropping them in a folder

License

Notifications You must be signed in to change notification settings

uselesshasids/ScriptServer

Repository files navigation

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

About

Server that runs self-scheduled scripts by dropping them in a folder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages