Hello,
Why is this not working in a script?
Code:
files="test.fsa"
echo $files
for file in $files
do
if [ !
Hello all,
I'm writing an if statement where a variable is a number such as 14.05 (this is actually a temperature) and I want to compare it to a predefined value, sample code below:
Code:
warning=15.03
DEV_TMP=`long curl string which retrieves the temperature.`
if [ $DEV_TMP -ge $warning ];then
msg="temperature currently "$DEV_TMP"°C"
&nb
Hi All,
Thanks in Advance
I wrote the following code
Code:
if [ $VERSION == 1.1 ]
then
echo "version is 1.1"
for i in "subscriber promplan mapping dedicatedaccount faflistSub faflistAcc accumulator pam_account"
do
FILE="SDP_DUMP_$i.csv"
&nb
hi
I have the following script named ./daemonscript
Code:
while true
do
#echo string to file results
echo ok >> results
#commands
sleep 2
done
I call it the following way : ./daemonscript &
and I want it to stop when the user presses the "S" button together wi
can anyone offer some help here
i have a string that contains course codes. i separate the string into the individual course codes using the explode function. however i want to run a query on each of the course codes that was present in the string and store the result in an array that i have created this is the code that i have thus far
<?php
Code:
#!/bin/bash
ARCHIVE="$PWD"
#ARCHIVE="/home/kschmidt/public_html/Files/DrMathArchive"
NUMBERofDIRS=0
TEST=""
for dir in `ls -l ${ARCHIVE}| egrep '^d' | awk '{print $9}'`;
do
for EACHFILE in `find ${ARCHIVE}/${dir} -type f -name "prob*" `
do
In all my Googling, this usually happens when someone is comparing a variable, and that variable is unset.
I've found this script which seems very promising to solve my issue:
To search and replace many different database passwords in many different (.php, .pl, .cgi, etc.) files across my filesystem.
Hello All,
I want to write a shell script for extracting a content from a xml file
the xml file looks like this:
HTML Code:
[CODE]<Variable name="moreAxleInfo">
<