HEREDOC(7) | Miscellaneous Information Manual | HEREDOC(7) |
heredoc
— write
content
module:heredoc heredoc{ [content] }
heredoc
module reads the “heredoc”
variable content and writes it to the automate(1) output.
The heredoc
utility exits 0 on
success, and >0 if an error occurs.
To create a hello world:
#!/bin/automate -s default,c program:hello hello.c{ output:$3 module:heredoc heredoc{ #include <stdio.h> int main(void) { puts("Hello, World!"); return 0; } } }
October 8, 2024 | EltaninOS |