From 180843f9bd28b191c7404245ba0a121107992511 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 23 Feb 2020 20:48:02 +0100 Subject: Also move Lua scripts to share subfolder --- scripts/_system_exec.lua | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 scripts/_system_exec.lua (limited to 'scripts/_system_exec.lua') diff --git a/scripts/_system_exec.lua b/scripts/_system_exec.lua deleted file mode 100644 index 281f5dee0b..0000000000 --- a/scripts/_system_exec.lua +++ /dev/null @@ -1,20 +0,0 @@ -ardour { ["type"] = "EditorAction", name = "System Exec" } - -function factory () return function () - -- ** EXAMPLES TO RUN EXTERNAL APPLICATIONS ** -- - - -- run a command in a shell and wait for it to complete. - -- - -- Details: basically just system(3), except on Unix like systems with - -- memory-locking, this call is special-cased to use vfork and close - -- file-descriptors. On other systems it defaults to Lua's os-library - -- built-in os.execute system() call. - os.execute ("date > /tmp/testdate") - - -- os.forkexec() works as fire-and-forget. execv(3) style - -- - -- Details: It calls vfork() and exec() under the hood, passing each - -- argument separately to exec (and needs a full-path to the binary). - os.forkexec ("/usr/bin/xterm") - os.forkexec ("/bin/sh", "-c", "import --frame \"/tmp/scr_$(date).png\"") -end end -- cgit v1.2.3