You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Julian Noble a8a60ea81b scriptapps misc 4 weeks ago
..
bin agent hints, test package changes, pattern module changes, new module punk::net::vxlan, etc (late checkin) 6 months ago
wrappers misc scriptapps and file/folder organisation 10 months ago
AGENTS.md AGENTS.md with DOX framework 1 month ago
README.md src/scriptapps/README.md 10 months ago
SELFSIGN.PS1 scriptapps misc 4 weeks ago
argsrecord.tcl
argsrecord.txt
bits.pl minor bin experiments 10 months ago
bits.ps1 scriptwrap fixes 11 months ago
bits.sh scriptwrap fixes 11 months ago
bits_wrap.toml scriptwrap fixes 11 months ago
create-localmachine-selfsigned-cert.ps1
dtplite.tcl
example.sh make.tcl fixes and scriptwrap fixes, sdx.kit 1 year ago
example.tcl make.tcl fixes and scriptwrap fixes, sdx.kit 1 year ago
example_wrap.toml make.tcl and console rawmode fixes 11 months ago
fetchruntime.bash change fetchruntime script to download to appropriate os-arch folder under bin/runtime 11 months ago
fetchruntime.ps1 scriptapps misc 4 weeks ago
fetchruntime.tcl update fetchruntime and getzig scripts 11 months ago
fetchruntime_bits.ps1 scriptapps misc 4 weeks ago
fetchruntime_old.ps1 scriptapps misc 4 weeks ago
fetchruntime_wrap.toml scriptapps misc 4 weeks ago
getpunk.bash update multishell scriptsapps 11 months ago
getpunk.ps1 scriptapps update 10 months ago
getpunk_wrap.toml scriptapps update 10 months ago
kettle.tcl
punk.tcl scriptapps misc 4 weeks ago
runtime.bash fix runtime.cmd on unix to not list local _BUILDTIME copies of runtime files 5 months ago
runtime.ps1 short-term fix for bin/runtime.cmd listing and runtime selectin, fix logic errors in last 5 months ago
runtime_wrap.toml scriptapps update 10 months ago
selfsign_wrap.toml scriptapps misc 4 weeks ago
tclargs.tcl update multishell scriptsapps 11 months ago
tclargs_wrap.toml update multishell scriptsapps 11 months ago
tcltm.tcl scriptapps misc 4 weeks ago
wrapfiletofile.tcl

README.md

Create multishell scripts from your .tcl .sh and .ps1 scripts that are stored here.

Use the deck scriptwrap commands to generate a multishell .cmd file from your scripts. This .cmd is a 'polyglot' script - it should run when called from any of the target interpreters.

A multishell .cmd file is a cross-platform script that can easily be run on Windows and unix-like platforms.

The .cmd extension is primarily a convenience so that it can be run easily by name on windows but it is ok to either leave it as that on other platforms, or rename it appropriately.

On unix-like platforms it can be called with a bourne shell such as sh or bash.

On windows, it can also be called with sh or bash if they are available - but the usual method would be to run it under cmd.exe initially just by opening a cmd prompt and running it. This will run some windows batch script to automatically generate a corresponding .ps1 file and execution will switch to powershell 5 or powershell 7 (pwsh) if available. Subsequently the command can be run directly from powershell.

Whether called from Bourne shell, or cmd.exe or powershell - the usual payload would be your wrapped Tcl code - but it's also possible for powershell or sh/bash to be the primary payload script. Any of these languages could easily be used to detect and launch other scripts/utilities that you may distribute with your app.