This library has 136 classes.
ECF: os-command.ecf
Source code: directory list
Classes for creating cross platform wrappers of OS commands with over 100 "out of the box" commands provided.
General Features
Information Commands
These are "out of the box" command for obtaining system information.
Future Development
Make a platform independent interface for listing symbolic link targets in a directory.
(By concidence both outputs align on column 40)
UNIX example
ls -l <dir-path> lrwxrwxrwx 1 root root 48 Apr 11 2022 cherokee-images -> /usr/share/www/cherokee-images lrwxrwxrwx 1 root root 43 Apr 11 2022 index.html -> /usr/share/www/index.html
WINDOWS example
dir /AL <dir-path> 04/25/2024 12:00 PM <SYMLINK> MyFolder [C:\Users\John\Documents\MyFolder] 04/25/2024 11:30 AM <SYMLINK> ShortcutToProgram [C:\Program Files\Program.exe]
Command factory accessible via EL_MODULE_COMMAND
Shared access to routines of class EL_COMMAND_FACTORY
Further Information
Click on class link to see client examples.
Implementation of EL_FILE_LISTING that uses native OS commands find (on Unix) and dir (on Windows). These are highly optimized so better performance can be expected, especially on large listings.
Command that converts files from one type to anothers
Obtain MD5 hash using Unix md5sum command
Implementation of EL_DIRECTORY_CONTENT_PROCESSOR that uses native OS commands to obtain file listings
Further Information
Click on class link to see client examples.
Implementation of EL_DIRECTORY_PATH_LIST that uses native OS commands to obtain file listings
Further Information
Click on class link to see client examples.
Implementation of EL_DIRECTORY_TREE_FILE_PROCESSOR that uses native OS commands to obtain file listings
Further Information
Click on class link to see client examples.
Unix command to list symbolic links in a target directory
Further Information
Click on class link to see notes and client examples.
Create archive using Unix tar command
Further Information
Click on class link to see client examples.
EL_GVFS_VOLUME that is a multi-media/camera device
Further Information
Click on class link to see client examples.
GIO virtual file system as file synchronized medium destination
Further Information
Click on class link to see client examples.
GIO virtual file system routines and commands
Further Information
Click on class link to see client examples.
GIO virtual file system volume
Further Information
Click on class link to see client examples.
Apply patch command bspatch to binary patch
Further Information
Click on class link to see client examples.
Wrapper for Unix bsdiff command to generate a binary patch that can be applied with bspatch
Further Information
Click on class link to see client examples.
Implementation of EL_RSYNC_COMMAND_I with Unix rsync command
Implementation of EL_SEND_MAIL_COMMAND_I
Windows implementation of EL_CAPTURED_OS_COMMAND_I interface
Windows implementation of EL_OS_COMMAND_I interface
Windows implementation of EL_SYSTEM_ROUTINES_I interface
Interface to ShellExecute function from the Windows Shell API <Shellapi.h>
Windows implementation of EL_CREATE_LINK_COMMAND_I interface
Windows implementation of EL_DELETE_FILE_COMMAND_I interface
Windows implementation of EL_DELETE_TREE_COMMAND_I interface
Windows implementation of EL_DIRECTORY_INFO_COMMAND_I interface
Windows implementation of EL_JPEG_FILE_INFO_COMMAND_I
Windows implementation of EL_MAKE_DIRECTORY_COMMAND_I interface
Windows implementation of EL_MOVE_FILE_COMMAND_I interface
Windows implemenation of EL_MOVE_TO_DIRECTORY_COMMAND_I
Windows implementation of EL_COPY_FILE_COMMAND_I interface
Further Information
Click on class link to see client examples.
Windows implementation of EL_COPY_TREE_COMMAND_I interface
Further Information
Click on class link to see client examples.
Windows implementation of EL_FIND_COMMAND_I
Windows implementation of EL_FIND_DIRECTORIES_COMMAND_I interface
Windows implementation of EL_FIND_FILES_COMMAND_I interface
Causes the search directory to appear at start of list to match Unix
Adjust the path items to be either absolute or relative so as to match output of Unix find command.
Windows implementation of EL_CPU_INFO_COMMAND_I
Further Information
Click on class link to see notes.
Sends a desktop notification warning of an error using the VBscript command msgbox invoked by the Windows Mshta.exe command.
Further Information
Click on class link to see client examples.
Windows implementation of EL_USERS_INFO_COMMAND_I interface
Unix implementation of EL_CAPTURED_OS_COMMAND_I interface
Unix implementation of EL_OS_COMMAND_I interface
Sends a desktop notification warning of an error using the notify-send command
Further Information
Click on class link to see client examples.
Unix implementation of EL_SYSTEM_ROUTINES_I interface
Unix implementation of EL_CREATE_LINK_COMMAND_I interface
Unix implementation of EL_DELETE_FILE_COMMAND_I
Unix implementation of EL_DELETE_TREE_COMMAND_I
Unix implementation of EL_DIRECTORY_INFO_COMMAND_I interface
Unix implementation of EL_JPEG_FILE_INFO_COMMAND_I
Unix implementation of EL_MAKE_DIRECTORY_COMMAND_I interface
Unix implementation of EL_MOVE_FILE_COMMAND_I interface
Unix implemenation of EL_MOVE_TO_DIRECTORY_COMMAND_I
Unix implementation of EL_COPY_FILE_COMMAND_I interface
Further Information
Click on class link to see client examples.
Unix implementation of EL_COPY_TREE_COMMAND_I interface
Further Information
Click on class link to see client examples.
Unix copy command template
Unix implementation of EL_OS_COMMAND_IMP for find commands
Unix implementation of EL_FIND_DIRECTORIES_COMMAND_I interface
Unix implementation of EL_FIND_FILES_COMMAND_I interface
Unix find template
Unix implementation of EL_CPU_INFO_COMMAND_I
Unix implementation of EL_USERS_INFO_COMMAND_I interface
Fully qualified domain name of machine (UNIX only)
Further Information
Click on class link to see client examples.
EL_MIRROR_BACKUP for file protocol using EL_FILE_RSYNC_COMMAND command
Further Information
Click on class link to see client examples.
Mirror directory using Unix rsync command
Further Information
Click on class link to see client examples.
Backup mirroring configuration
Further Information
Click on class link to see client examples.
OS command to mirror a directory either locally or remotely
EL_MIRROR_BACKUP implementing remote protocol such as ftp or ssh
EL_MIRROR_BACKUP for ssh protocol using EL_SSH_RSYNC_COMMAND command
Further Information
Click on class link to see client examples.
Mirror local to remote directory using Unix rsync command over a secure shell connection
Further Information
Click on class link to see client examples.
Send mail command i
File synchronization with Unix rsync Files can be synchronized either locally or remotely via ssh
Further Information
Click on class link to see notes.
OS command executed remotely using the Unix ssh command
Further Information
Click on class link to see descendants.
Factory for commands conforming to EL_SECURE_SHELL_COMMAND.
Further Information
Click on class link to see notes and client examples.
Copy single file to remote host using Unix scp command. It uses ssh for data transfer.
Further Information
Click on class link to see notes.
Unix ssh command that operates on a single target directory
Make remote directory via Unix mkdir command in conjunction with ssh
Further Information
Click on class link to see notes.
Obtain MD5 hash of remote file using Unix md5sum command remotely invoked via ssh command.
Further Information
Click on class link to see notes.
Test to see if remote directory exists via Unix ssh command
Further Information
Click on class link to see notes.
General purpose OS command that captures output lines of substituted command template
Further Information
Click on class link to see client examples.
OS command with captured output
Dir path operand command interface
Double path operand command i
File path operand command interface
General purpose OS command using an externally supplied template
Further Information
Click on class link to see client examples.
OS command constants
Operating system command interface
Further Information
Click on class link to see notes, descendants and client examples.
A EL_CAPTURED_OS_COMMAND with arguments parsed and set in the attribute var with type defined as a class parameter
Further Information
Click on class link to see notes, descendants and client examples.
A EL_OS_COMMAND with arguments parsed and set in the attribute var with type defined as a class parameter
Further Information
Click on class link to see notes, descendants and client examples.
Single path operand command i
Shared access to routines of class EL_OS_ROUTINES
Further Information
Click on class link to see client examples.
Shared access to routines of class EL_SYSTEM_ROUTINES_I
Further Information
Click on class link to see client examples.
OS operations based on command line utilities accessible via EL_MODULE_OS
Further Information
Click on class link to see notes.
System operations based on command line utilities
Further Information
Click on class link to see notes.
Command to create a symbolic link to a file or directory
Delete file command i
Delete directory tree command interface
Command to find file count and directory file content size
File relocation command i
Fork a system utility operating on a path argument
Further Information
Click on class link to see client examples.
Interface to Unix gunzip command
Further Information
Click on class link to see client examples.
Interface to Unix gunzip command using the --list switch to obtain the uncompressed size of a gz file.
Command to parse JPEG metadata fields from output of Exiv2 command-line tool using command form:
exiv2 -p a <$file_path>
Example Output
Exif.Image.ImageWidth Long 1 3264 Exif.Image.ImageLength Long 1 2448 Exif.Image.Make Ascii 8 samsung Exif.Photo.DateTimeOriginal Ascii 20 2023:01:14 14:44:57 Exif.Thumbnail.ImageWidth Long 1 512 Exif.Thumbnail.ImageLength Long 1 384
Further Information
Click on class link to see tests and client examples.
Create a directory and it's parents if necessary. If directory already exists, no error is reported.
Move file command i
Move file or directory source_path into destination_path
Copy file command interface
Copy tree command i
Find command abstraction
Further Information
Click on class link to see client examples.
Find directories command i
Cross platform interface to EL_FIND_FILES_COMMAND_IMP
Further Information
Click on class link to see client examples.
Default filter condition for class EL_FIND_COMMAND_I
File list filter condition is met if path base name matches any in list
Filter condition for appending to path_list in class EL_FIND_COMMAND_I
Path filters applicable to classes conforming to EL_FIND_COMMAND_I
File list filter condition is met if agent predicate returns True
Further Information
Click on class link to see client examples.
Shared access to instance of EL_FIND_FILE_FILTER_FACTORY
Further Information
Click on class link to see client examples.
GVFS command to copy a file
Further Information
Click on class link to see notes and client examples.
Parses output of command:
gvfs-ls "$uri" | grep -c "^.*$"
Further Information
Click on class link to see notes.
GVFS command to detect if file exists
Further Information
Click on class link to see notes and client examples.
GVFS command to read file properties
Further Information
Click on class link to see notes.
GVFS command to obtain list of files in directory
Further Information
Click on class link to see notes.
GVFS command to create a directory
Further Information
Click on class link to see notes and client examples.
Parse mount uri's from result of command:
gvfs-mount --list
Further Information
Click on class link to see notes.
GVFS command to move a file
Further Information
Click on class link to see notes and client examples.
GIO virtual file system command
Further Information
Click on class link to see descendants and client examples.
GVFS command to remove a file
Further Information
Click on class link to see notes.
GVFS command taking a single uri argument
Further Information
Click on class link to see notes.
GVFS command to move/copy a file
Further Information
Click on class link to see notes.
Get gnome setting command
Further Information
Click on class link to see client examples.
Gnome setting command
Set gnome setting command
Further Information
Click on class link to see client examples.
Cross-platform command to obtain CPU model name
Further Information
Click on class link to see client examples.
Sends a desktop notification warning of an error
Further Information
Click on class link to see client examples.
Command to obtain list of session information for the Unix screen command.
Further Information
Click on class link to see notes.
Creates a list of system users that have a directory in Directory.home. For Windows this is usually C:\Users and for Linux /home
The user list is best accessed via {EL_MODULE_SYSTEM}.user_list