Tag Archive: script

Aug 27 2017

How to Pass Arguments to a Bash-Script

You can write a bash script such that it receives arguments specified when the script is called from the command line. This method is used when a script has to perform a slightly different function depending on the values of input parameters (the arguments). For example, you may have a script called “stats.sh” that performs …

Continue reading »

Dec 29 2016

Your Own Linux..! series on Linux / Unix Shell (Bash) Scripting

Your Own Linux..! recently published a multi-part series on Unix/Linux shell scripting, that would be useful to anyone desiring to write a bash script. The articles are: Introduction – Linux / Unix Shell (Bash) Scripting Bash Scripting Variables – Environment and Special Shell Variables Bash Scripting – Arithmetic, Logical, Relational and Bitwise Operators Bash Scripting …

Continue reading »

Nov 13 2016

How to Run Bash Script as Root During Startup on Linux – Make Tech Easier

Have you ever wanted to run bash script as a root user during startup? Here’s how you can harness the power of cron and set your scripts to run at startup. Source: How to Run Bash Script as Root During Startup on Linux – Make Tech Easier

Nov 16 2013

Link: Run Automated Scripts Over SSH

We’ve shown you how to use SSH to transfer files securely. But there’s a major issue with SSH’s default behaviour. You are only connected with the remote machine after you’ve manually entered the password which rules it out for any tasks you want to run unattended. Or does it? Here’s a quick lowdown on how …

Continue reading »

Jul 15 2013

Link: BASH Frequently Asked Questions

Here is something we could have used a few times in the past, had we known it existed: These are answers to frequently asked questions on channel #bash on the freenode IRC network. These answers are contributed by the regular members of the channel (originally heiner, and then others including greycat and r00t), and by …

Continue reading »

%d bloggers like this: