Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

New Function for Shell Calls in Dyalog APL - System Function SHELL

Dyalog User Meetings via YouTube

Overview

Learn about the new ⎕SHELL system function coming in Dyalog version 20.0 through this 21-minute conference presentation from Dyalog '24. Explore improvements to shell call functionality, including configurable options for character encoding, working directories, environment variables, and shell selection. Discover how to collect different output streams, handle exit codes, and manage input/output redirection more effectively. Watch demonstrations comparing ⎕SH versus ⎕SHELL and see practical examples of running Python from the Dyalog session. Understand advanced features like timeout settings, child process signaling, and window mode configurations that address previous limitations in monadic ⎕SH/⎕CMD operations.

Syllabus

A new system function for shell calls
Things we'd like to configure in ⎕SH
⎕SHELL syntax overview
Collecting different output streams
Exit codes from shell calls
Demo ⎕SH vs ⎕SHELL
Character encoding
Variant ⍠ options in ⎕SHELL
Working directory
Environment variables
Choose another shell
Choose exit code behaviour
Timeout
Signal to child process for cleanup
Initial window mode hidden or maximised
Input and output redirection
Demo running python from the session
Summary

Taught by

Dyalog User Meetings

Reviews

Start your review of New Function for Shell Calls in Dyalog APL - System Function SHELL

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.