Sample Code

For PushMon to work, you need to access the PushMon URL on a regular schedule. This means you will most likely need to make some code or script changes on your end. For example, if you want PushMon to monitor your Bash script, call the PushMon URL at the end of Bash script. Below you will find sample code that can help you get started. If you have any suggestions, comments, additions, feel free to contact us.


AutoIt

AutoIt is a freeware BASIC-like scripting language for Microsoft Windows that can be compiled to executable code.


Batch

A batch file is a text file containing a series of commands intended to be executed by the Microsoft Windows command interpreter.


C#

C# is a modern, general-purpose, object-oriented programming language designed for the Common Language Infrastructure.


Java

Java is a general-purpose, concurrent, object-oriented language that is intended to let application developers “write once, run anywhere.”


PHP

PHP is a general-purpose server-side scripting language originally designed for web development to produce dynamic web pages.


Perl

Perl is a high-level, general-purpose, interpreted language nicknamed “the Swiss Army chainsaw of programming languages”.


VBScript

VBScript is an Active Scripting language designed as a “lightweight” language with a fast interpreter for use in a wide variety of Microsoft environments.


Python

Python is a general-purpose, high-level programming language whose design philosophy emphasizes code readability.


Ruby

Ruby is a dynamic, reflective, object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features.


Shell

A shell script is a script written for the command line interpreter of an operating system. Here’s an example in Bash.


JavaScript

JavaScript is primarily used in client-side scripting, implemented as part of a Web browser in order to provide enhanced user interfaces.


Apache

Apache Ant is a software tool for automating software build processes, and is best suited to building Java projects.


Power Shell

Windows PowerShell is a task-based command-line shell and scripting language designed especially for system administration.

3 Comments

  1. Nobody important

    Just thought you’d want to know… the link attached to the Scala image points to Node.js code. Not a big deal, but thought you’d want to know.

  2. Anonymous

    None of the links on this page appear to be working at the moment.

    • admin

      Fixed. Thanks!

Comments are now closed for this article.

Make sure your websites, applications, scripts and background jobs are running.