Skip to Content

Scripting example in Jitterbit App Builder - Ping

This example demonstrates an action which starts a process, captures the standard output stream, and saves the output to a cell value.

Table schema

Column Data Type Primary Key Auto-generate Nullable
StandardOutput NVARCHAR(-1) No No No

Script

using System.Diagnostics;

var processStartInfo = new ProcessStartInfo
{
    WorkingDirectory = @"C:\Windows\SysWOW64",
    FileName = "PING.EXE",
    Arguments = "zudy.com",
    UseShellExecute = false,
    RedirectStandardOutput = true
};

string output;

using (var process = Process.Start(processStartInfo))
{
    output = process.StandardOutput.ReadToEnd();
    process.WaitForExit();
}

Row["StandardOutput"].Value = output;