Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
bash-scripting
- Page 1
Re: Create Infinite Loop In Bash
Hardware and Software
Linux and Unix
2 Months Ago
by Vince_6
Be Careful what you wish for. When I was first using Unix one of our programmers wrote a
Bash
script something like: While 1 Do Something He eventually overloaded the system and it crashed.
Re: Create Infinite Loop In Bash
Hardware and Software
Linux and Unix
2 Months Ago
by asadalikhan
while true; do echo "Running..."; sleep 60; done This runs forever, printing "Running..." every 60 seconds. No script file needed, just drop it in the terminal and you're good.
Bash Scripting Search For Records
Programming
Software Development
15 Years Ago
by isxrc
… with an assignment I must complete by tomorrow. I started
Bash
Scripting
yesterday so am a complete newbie. I don't have… time to teach myself
Bash
scripting
so please don't redirect me to some tutorials. The…
Bash Scripting vs AWK GAWK
Programming
Software Development
16 Years Ago
by cpp_noobsauce
Hi. I'm new to linux. I have a question.... What is the difference between
BASH
Scripting
and AWK? When would I use one over the other?
New to Bash Scripting - Service Restart
Programming
Software Development
16 Years Ago
by kmarty009
All, I am relatively new to
bash
scripting
. I have been a Windows Admin for 10+ years and …
Re: Bash Scripting vs AWK GAWK
Programming
Software Development
16 Years Ago
by eggi
Hey there, In simple terms,
bash
is a Unix/Linux shell and
scripting
in it is just like using the shell in a…. Awk is a standalone utility that you can launch from
bash
.
Bash
can pretty much do anything (if you're creative) but…
Re: Bash Scripting Search For Records
Programming
Software Development
15 Years Ago
by Aia
isxrc> PLS PLS PLS can someone help. I have 24 hours from now and the clock is ticking. The urgency is on your part, not on ours. You have chosen to fail already. Read the rules of the forum. We do not give away code solutions without proof of effort on your part. We are not [I][B]code-o-rama[/B][/I], use and abuse. Do your own homework!!!
Re: Scripting for Solaris
Programming
Software Development
13 Years Ago
by JeoSaurus
… I used Solaris, most of my
scripting
was done with plain ol' bourne shell and
bash
scripting
. I've always found the [url…=http://tldp.org/LDP/abs/html/]advanced
bash
scripting
guide[/url] at [url=http://tldp.org/]the linux documentation…
Re: BASH script - sales per each associate (3 files)
Programming
Software Development
17 Years Ago
by stilllearning
Well, in basic
bash
scripting
you cannot add floating point numbers, and i assume your …
web page statistics - my first bash script
Programming
Software Development
20 Years Ago
by danny_xmas
…'m new to this forum and to
bash
scripting
. I am required to write a
bash
shell script that processes statistical information for…
simple bash help
Programming
Software Development
14 Years Ago
by endisbegun
so im just starting to get into the basics of
bash
scripting
yes this is for a class, no i dont want … someone please point me in the right direction? [CODE]#!/bin/
bash
if [ $# -gt 3 ] then echo "Invalid number of arguments…
refreshing gnuplot screen in bash
Programming
Software Development
14 Years Ago
by Freude
… computations. How can I refresh gnuplot output produced in the
bash
script (usually i call gnuplot in the pipe). In [URL… "loop_forever.gnu" [/CODE] But I am new in
bash
scripting
. What does > mean and what is .gnu file? Thank…
Re: New to Bash Scripting - Service Restart
Programming
Software Development
16 Years Ago
by eggi
Hey There, Check this out. Basically, you just need to copy keys out to all your servers, so root can login without a password [url]http://linuxshellaccount.blogspot.com/2007/11/quick-guide-to-setting-up-ssh-keys.html[/url] There's another link on the site for how to run ssh in a loop if you have problems with that Best wishes, Mike
Re: Bash shell needs tweeking
Programming
Software Development
19 Years Ago
by shanenin
bash
only allows you to start variables with letters. You can … echo "Please enter in a name" fi [/code]
bash
is kind of picky. you need to have a space…
Re: Linux Bash Script
Programming
Software Development
16 Years Ago
by moqwen
Do your home work. Spend some time on the [URL="http://cleansoftware.net/guides/linux/
bash
-
scripting
/"]linux
bash
shell
scripting
guide[/URL].
Bash Script to start application after two checks
Programming
Software Development
16 Years Ago
by rman10
Hello! I am a newbie to
scripting
and I'm trying to start an application via a
bash
script after checking to make… output from my awk commands and use them within the
bash
script to determine whether or not to start the process…
Re: Scripting project
Programming
Software Development
15 Years Ago
by gerard4143
… execute the line in a
bash
terminal then you can include it in a
bash
shell script
bash
.sh [CODE] #! /bin/… exit 0 [/CODE] then make the
bash
shell script executable with chmod +x
bash
.sh For example your shell script with… the first line could be
bash
.sh [CODE] #! /bin/sh mount /dev/sda1 /mnt/…
Re: Scripting project
Programming
Software Development
15 Years Ago
by copa1x1
… execute the line in a
bash
terminal then you can include it in a
bash
shell script
bash
.sh [CODE] #! /bin/… exit 0 [/CODE] then make the
bash
shell script executable with chmod +x
bash
.sh For example your shell script with… the first line could be
bash
.sh [CODE] #! /bin/sh mount /dev/sda1 /mnt/…
Re: Scripting project
Programming
Software Development
15 Years Ago
by Skifter
… (#!) and the program to run it, in this case /bin/
bash
or /bin/sh . Every following line is executed in that… environment, one at a time. In
Bash
a line ending in "&" will be executed… of utilities you are familiar with already are probably just
bash
scripts sitting in /usr/sbin. Take a look through them…
Re: Bash Script to start application after two checks
Programming
Software Development
16 Years Ago
by rman10
… backticks (will work in any shell) or the $() test in
bash
For instance, you could take your statement: and assign it…'ve changed it just a bit to the following: #!/bin/
bash
#dynamips.sh xceedPROC=$(ps -ef | awk '/dynamips/ {print $10}' | awk…
Re: Bash Script to start application after two checks
Programming
Software Development
16 Years Ago
by rman10
… shouldn't have been. I neglected to account for the
bash
shell nambe "dynamips.sh" which was showing up… for your help Mike! Here's my final version: #!/bin/
bash
#dynamips.sh (start with sudo ./dynamips.sh "TCP port…
bash expect issues
Programming
Software Development
16 Years Ago
by jesseb07
… are some suggestions, I'm not the best at shell
scripting
. I wrote this to work with ssh as well as… ls' 'password'" I am using ubuntu linux. [CODE] #!/bin/
bash
#!/usr/bin/expect expect -c " spawn $1 expect { password…
Bash Hex,Oct,Dec,Bin converter using bc and tr
Programming
Software Development
15 Years Ago
by gerard4143
Hi, I wrote this simple
bash
script(yeah simple now that its done) and it uses … to do it? I'm not very experienced with shell
scripting
...well anything complicated. script usage: cnvt value inbase outbase example…
Re: Bash Hex,Oct,Dec,Bin converter using bc and tr
Programming
Software Development
15 Years Ago
by Aia
…. I starting to get a love/hate relationship with shell
scripting
...its really something but I'm not really sure what…; -a -x "$file" ][/CODE] Sometimes you can use
bash
operators instead of if/elses: [CODE]cp oldfile newfile &…
bash keeps returning error: is a directory
Programming
Software Development
12 Years Ago
by jo386
… code is rather basic so excuse my lack of shell
scripting
experience. I keep getting errors for line 3. I have… change them in a specific directory rather than globally. #!/bin/
bash
if $1 ; then find $1 -name "*.sh" >…
Re: Bash Script to start application after two checks
Programming
Software Development
16 Years Ago
by eggi
… backticks (will work in any shell) or the $() test in
bash
For instance, you could take your statement: [QUOTE]ps -ef…
Bash: Nested functions and including other scripts
Programming
Software Development
16 Years Ago
by FractalizeR
Hello. I have the following problem with
bash
code: [CODE=
bash
] function fl1_load_modules_and_get_list() ........... for module in $FL_MODULES_TO_PROCESS do…source seem to complete successfully because I have [CODE=
bash
]set -o errexit set -o nounset set -…the source code I play with. Execute [CODE=
bash
]f-linsey install all[/CODE] And the error …
Bash shell screipt help
Programming
Software Development
20 Years Ago
by tccummings
…start looking; 2 the size to equal or exceed. Example
bash
find_big.sh /lib 20000. ---Hint you shell should begin …#!/bin/
bash
#validate there are 2 arguments passed #validate argument 1 exists… all I've come up with so far. #!/bin/
bash
#validate there are 2 arguments passed #validate argument 1 …
Bash (if..then) error
Programming
Software Development
13 Years Ago
by Felipevd
Hey guys, I was doing some basic
bash
shell script, as I am new to this, and I … pass over this error. Here is the code: [CODE] #!/bin/
bash
echo "Please, type in the day of the week… variables would be assigned, but even if I type Monday,
bash
interprets it like if I had typed something else, and…
bash script pass variables to awk script
Programming
Software Development
13 Years Ago
by spowel4
… (note: I ultimately want to pass these values to the
bash
script from the commandline but I haven't gotten that….txt' FIELDWIDTHS='1 10 4 2 2' Next, inside the
bash
script I'm attempting to call an awk script and…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC