Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the format Name#Password
Comment
[i]Italic Text[/i]
[b]Bold Text[/b]
[spoiler]Spoiler Text[/spoiler]
>Highlight/Quote Text
[pre]Preformatted & Monospace Text[/pre]
[super]Superset Text[/super]
[sub]Subset Text[/sub]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists
File

Sandwich


Discord Now Fully Linked With 420chan IRC

ISO

Reply
- Sat, 17 Jun 2017 13:28:42 EST D3O7TRoe No.37073
File: 1497720522706.png -(1157756B / 1.10MB, 1920x1200) Thumbnail displayed, click image for full size. ISO
Menu driven installer tutorials, howto.

Wanting to build a CLI menu installer to run system commands similar to setting up a headless server. Would need to work in SSH.
>>
Ebenezer Shittingfoot - Sat, 17 Jun 2017 19:04:40 EST MSuE7kG8 No.37074 Reply
>>37073
The quick-and-dirty way would be to use bash and something like this:

#!/bin/bash

while true; do
echo ''
echo 1 - Do thing 1
echo 2 - Do thing 2
echo 3 - Do thing 3
echo q - Quit
echo ''

read -p'>' -n1 option
echo ''

case $option in
1)
echo You have selected option 1
;;
2)
echo You have selected option 2
;;

3)
echo You have selected option 3
;;
q)

echo You have selected quit
break
;;
*)
echo You have selected an invalid option
;;
esac
done
>>
David Checkleworth - Sat, 17 Jun 2017 20:45:40 EST MSuE7kG8 No.37075 Reply
1497746740284.png -(6509B / 6.36KB, 484x316) Thumbnail displayed, click image for full size.
You can also use whiptail if you're looking for something more fancy:

#!/bin/bash

selection=$(whiptail \
--backtitle "This Is The Backtitle" \
--title "This Is The Title Title" \
--default-item Boobies \
--menu "Please select something" 20 75 8 Boobies "This is a description of boobies" Kittens "This is a description of kittens" Drugs "This is a description of drugs" 3>&1 1>&2 2>&3)
echo You selected $selection


https://en.wikibooks.org/wiki/Bash_Shell_Scripting/Whiptail

Report Post
Reason
Note
Please be descriptive with report notes,
this helps staff resolve issues quicker.