Questions tagged [bash-script]

Scripts written in the bash shell language. Most questions should use the tags /bash and /shell-script instead.

A for the shell. Use the tags and instead.

90 questions
10
votes
3 answers

Script to prevent screen blanking using "mouse move" doesn't work

This is my attempt to make a script that will use a "mouse move" to prevent screen blanking while watching videos. I'm hoping to use the value for highest CPU% process in top and if CPU usage exceeds 5%, a mouse move should occur. #!/usr/bin/env…
user15760
3
votes
4 answers

How do I make sure that a script is run exclusively?

So I have a bash scripts that does some things (pull from github, delete folders .. etc ..) pretty basic stuff. I usually run it whenever I need a new version of the web app on the server. The thing is there isn't anything that stopping this script…
Ali
  • 133
1
vote
0 answers

FuncName(){} vs function FuncName() {}

There is two ways to define function in bash script. 1. function FuncName() { echo "$FUNCNAME" } 2. FuncName() { echo "$FUNCNAME" } So my questions is what's the different between in this and which one should be use.
Rahul Patil
  • 24,711