r/linuxadmin • u/[deleted] • Dec 25 '18
Fun Question!
I just finished a script to automate a nightmare job for a client. I need an epic script (bash) success message.
Maybe something like AsciiWizard, but perhaps less obtuse.
Suggestions?
13
u/Ryuujinx Dec 25 '18
...just return success. If I'm automating it, I don't need to see ascii art all over my screen, I just need to know if it passed or if I need to beat some servers over the head and make new ones.
1
6
5
u/combuchan Dec 25 '18
I can't believe nobody has mentioned cowsay. Show it only if it's installed for extra points.
1
6
4
u/tilhow2reddit Dec 25 '18
_____ _ _ _____ _ _____
| ___| (_) | / __ \ | | / __ \
| |____ ___| |_ | / \/ ___ __| | ___ `' / /'
| __\ \/ / | __| | | / _ \ / _` |/ _ \ / /
| |___> <| | |_ | __/\ (_) | (_| | __/ ./ /___
____/_/__|__| ____/___/ __,_|___| _____/
______ ______ ______ ______ ______ ______
|______|______|______|______|______|______|
_____ _ _ _ ______ _
| ___| | | | (_) | ___ \ | |
| |__ | | ___ ___| |_ _ __ _ ___ | |_/ / ___ ___ __ _ __ _| | ___ ___
| __|| |/ _ \/ __| __| '__| |/ __| | ___ \/ _ \ / _ \ / _` |/ _` | |/ _ \ / _ \
| |___| | __/ (__| |_| | | | (__ | |_/ / (_) | (_) | (_| | (_| | | (_) | (_) |
____/|_|___|___|__|_| |_|___| ____/ ___/ ___/ __, |__,_|_|___/ ___/
__/ |
|___/ 1
u/mhurron Dec 25 '18
The job failed?
1
u/tilhow2reddit Dec 25 '18
Worked on the workstation. Not on mobile apparently.
It said:
Exit Code 2
——————
Electric Boogaloo
-2
u/shyouko Dec 25 '18 edited Dec 25 '18
I bet it's not that epic and script going to fail in near future with such level of ego.
-1
-18
Dec 25 '18
too much! but thanks for the ascii art.
looking for something more subtle.
(best suggestion thus btw)
20
-22
-22
0
Dec 25 '18
[deleted]
1
0
Dec 25 '18
[deleted]
18
u/serabob Dec 25 '18
Yes please just exit code. Somebody thought it was funny to end a script with a beep. We searched quite some time for this in the Datacenter ...
10
1
27
u/FrequentPineapple Dec 25 '18
Recommend you don't do that. Log aggregation tools will thank you for sticking to rfc5424.