My target is to create the /var/tmp/add_user.bash script by /var/tmp/create_script_add_user.bash script
and run the expect script ( add_user.bash ) from create_script_add_user.bash script.
The problem is that when I run the script add_user.bash from create_script_add_user.bash, then expect stuck on the question:
Proceed?
How may I know if a script is either written in bash or sh?
The first line of the script mean nothing, since on Linux, bash script has this line:
#!bin/sh
Actually, there are many distribution where bin/sh is bash (maybe a bin/sh is a link to bin/bash in those distro), and not bourn shell.
How can I find out whether a script is written in bash or sh?
The first line of the script is not helpful here, since on Linux, bash scripts have this line:
#!bin/sh
Actually, there are many distribution where bin/sh is bash (maybe bin/sh is a link to bin/bash in those distributions), and not Bourne Shell.
So I just wanted to take a minute to say how awesome GNU Bash is, and that you can do a great many things with it. One of those things you can do is run commands from the cross-platform-compatible(mostly) IBM Rational Clearcase cleartool.Since I was working on cleaning up some old user views, I thought I'd just make a quick writeup on a script for helping with this task.
I am writing a bash script to run test some scripts.
The names scripts of the scripts to tests are stored in an array.
Code:
scptArr[1]='chcksfrd.bash'
scptArr[2]='compute-misfit.bash'
scptArr[3]='compute-travel-times.bash'
scptArr[4]='create-data-tinv.bash'
scptArr[5]='create-docs.bash'
scptArr[6]='create-model.bash'
scptArr[7]='darwin-ga.bash'
scptArr[8]='listdir.bash'
scptArr[9]=
I am using bash as my default shell. I don't have root access. But I would like to customize my bash by setarch. So the question is how to do this automatically?
Currently, I have to manually run "setarch ... /bin/bash" when I want to use thecustomized bash. Is there a way that this setarch is always automatically done for all my bash sessions?
thanks
I've learnt the basics of programming in bash.
I'm very new at bash scripting, and I'm making a bunch of scripts as practice. This is a script I made that can count up or down at different intervals, but I'd like advice on how to improve it/learn more about bash scripting. Can anyone recommend a good way to learn bash for noobs?
Hey guys I made a very useful application using Bash script I am so excited about it, I wonder can I package this bash script as an installable .Deb package and give it to people to install it ? [I would want my bash script to be copied to the bin folder so it be run able]
another question is, if I be able to do that, what should I do to list my program in software center?