This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
v1993/systemscripting
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
It's library for system scripting. Tested and developed under linux and for linux. Install: 1. Install subprocess for lua. 2. Move file systemscripting.lua to correct way (read about package.path and package.cpath). 3. Use with require. Easter egg (!): it provides two exterenal functions: table.copy(tab) and table.contact(tab1, tab2). Using: systemscripting.cmd(program, args..., input) Use this function for full completed extrenal programs support! Output: If start is passed: table with fileds exitcode (number), out (output from stdin), err (output from stderr) If problems while starting process: three results: nil, errormsg, errno (as you can see, this function is full compactible with assert) Example: for k,v in pairs(sys.cmd('grep','-o', 'world','Hello, world!')) do print(k,v) end Result: out world err exit 0
About
Lua library for system scripting (developed for linux)
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published