Posts by Everton • 60 points
5 posts
-
1
votes4
answers9489
viewsA: How to call a new terminal from a shell script?
To call a background command (continue running non-stop), you use the command nohup [command] & to call the program or script. nohup [./script.sh] & In this case, the exits of the program…
-
1
votes1
answer257
viewsA: Database control (Mysql) in production environment
You could use crontab, for example every day at midnight, access the /directory folder, commit with current date and time, and push) 0 0 * * * git add . && commit -m `date` && git…
-
0
votes3
answers2285
viewsQ: How to get the local ip in shell-script?
I’m making a script that needs the machine IP on the network, tried several ways unsuccessfully until I figured out a way: ip="`ip addr show | grep global | grep -oE…
-
1
votes2
answers304
viewsA: Get the remote name
Or you can use the command git remote show: $ git remote show origin
-
1
votes2
answers152
viewsQ: How to cut a suffix from an expression in bash (egrep/sed/etc)
I’m making a script that works with directories that have suffixes defined and separated by "." for example "folder.teste.git" or "things.var" and would like to take as variable only the prefix…