Skip to content

piko::tutorial

piko::tools store

bash

Sharing variable between bash scripts
Posted in
  • Linux

Sharing variable between bash scripts

Sharing Variables The simplest way to share variables between Bash scripts is to place them in a separate common script and source that script wherever the variables are needed. Then, in another script: Using source executes the contents of common.sh in the current shell, making the exported variables available to…

Sharing variable between bash scripts Read More
Running commands with timeout on Linux
Posted in
  • Linux

Running commands with timeout on Linux

Welcome to the next pikoTutorial! Bash comes with a bunch of useful, built-in commands. One of them is timeout which allows you to run another command with a time limit. The syntax is simple: To avoid providing large numbers for long timeouts, duration parameter accepts suffixes which mark the exact…

Running commands with timeout on Linux Read More
    Powered by WordPress and HybridMag.

    Resources

    • Privacy Policy