Browsed by
Category: Bash

Pushbullet: How to Send a message from Bash

Pushbullet: How to Send a message from Bash

With this simple one line of code it is possible to send a message to your Pushbullet account from the Linux terminal. This is great if you want your BASH script to message you when a specific task completes or fails. All that is required is a Pushbullet token that you can obtain from the settings within your PushBullet Account. This can be found here https://www.pushbullet.com/#settings Now paste the code to your terminal replacing the pushbullettoken with your own token and changing…

Read More Read More

SteamCMD Commands and Convars

SteamCMD Commands and Convars

Description SteamCMD does not have a “list all” command to get all command options within SteamCMD. Instead you have to use find . This script outputs all the commands available and saves it to a file. Usage Simply download the script and run it. wget https://raw.githubusercontent.com/dgibbs64/SteamCMD-Commands-List/master/steamcmdcommands.sh;chmod +x steamcmdcommands.sh;./steamcmdcommands.sh List Results You can get the output without using the script. steamcmdcommands.txt My server now checks daily for updates and posts them to this repo. So this list will always be up-to-date….

Read More Read More

SSH Login Without Password Setup Script

SSH Login Without Password Setup Script

About This is a simple script to allow you to easily setup RSA keys and upload the public key to a remote host for SSH login without requiring a password. This can also be used to add an extra layer of security to your server by using RSA keys and a password. Features Setup SSH login without a password using RSA keys Setup SSH login with a password and using RSA keys Description I found I kept forgetting how to…

Read More Read More

Bash: Simple User Input Yes/No Question

Bash: Simple User Input Yes/No Question

Often in bash you need to ask for user input that requires a yes or no answer. I have tried variations of this. However I found one that worked better than others I have seen. This version will give an error if the user types anything other than y/n/yes/no. Below is an example that I use in all my scripts. while true; do read -p “Continue? [y/N]” yn case $yn in [Yy]* ) fn_function;; [Nn]* ) exit ;; * )…

Read More Read More