bash ¤
This is the default evaluation mode, i.e. run when no mode
parameter is given in the header.
It runs the given statements within a bash shell, subprocess.call
style.
Example¤
LP Source:
```bash lp:bash addsrc
ls -lta --color=always /etc | head -n 20
```
Result:
$ ls -lta --color=always /etc | head -n 20
$ ls -lta --color=always /etc | head -n 20
total 1120
-rw-r--r-- 1 root root 484 Apr 11 14:54 hosts
-rw-r----- 1 root shadow 1229 Apr 11 14:54 shadow
drwxr-xr-x 2 root root 20480 Apr 11 14:53 alternatives
drwxr-xr-x 4 root root 4096 Apr 11 14:53 ssh
-rw-r--r-- 1 root root 326 Apr 11 14:53 fstab
drwxr-xr-x 21 root root 4096 Apr 11 14:53 ..
drwxr-xr-x 139 root root 12288 Apr 7 10:17 .
-rw-r--r-- 1 root root 147 Apr 7 10:17 cgconfig.conf
-rw-r--r-- 1 root root 153 Apr 7 10:17 cgrules.conf
drwxr-xr-x 2 root root 4096 Apr 7 10:17 docker
-rw-r--r-- 1 root root 60866 Apr 7 10:17 ld.so.cache
-rw-r--r-- 1 root root 2637 Apr 7 10:17 environment
drwxr-xr-x 2 root root 4096 Apr 7 10:17 conf
drwxr-xr-x 2 root root 4096 Apr 7 10:17 vsts
drwxr-x--- 2 root root 4096 Apr 7 10:17 sudoers.d
-rw-r----- 1 root shadow 914 Apr 7 10:15 gshadow
-rw-r--r-- 1 root root 1074 Apr 7 10:15 group
-rw-r--r-- 1 root root 2230 Apr 7 10:15 passwd
-rw-r--r-- 1 root root 2231 Apr 7 10:15 passwd-
Parameters and Syntax¤
We have dedicated sections for those:
Sessions¤
When you supply a session
or new_session
parameter, we will send the statements over into tmux
and run them there - i.e. you may control blocking subprocesses, including REPLs, i.e. a nodejs
session (...).
See here for more about that.