01-25-2010
Hello ,
Add 'set -x' to the beginning of the script
Regards,
Gaurav.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
SEND_MESSAGE=test
echo $SEND_MESSAGE
if
then
echo `date` > update_dt_ccaps.lst
echo "The file transfer failed" >> update_dt_ccaps.lst
SEND_MESSAGE=false
fi
The above code is showing error in bash shell as :
./test: line 5: [: test: integer expression expected
... (2 Replies)
Discussion started by: DILEEP410
2 Replies
2. Shell Programming and Scripting
I'm currently playing with the below script;
#!/bin/sh
for d in /export/home/siward/staff/pasit/jamiecr/scripts/first-file.sh \
/export/home/siward/staff/pasit/jamiecr/scripts/second-file.sh \
/export/home/siward/staff/pasit/jamiecr/scripts/third-file.sh \
... (13 Replies)
Discussion started by: JayC89
13 Replies
3. Shell Programming and Scripting
Hi,
I am currently encounter an error of:-
./max.bash: line 45:
then
max=0
else
max=$maximum
It seems that it does not allow max to assigned with floating numbers.
Please help.
Thanks. (2 Replies)
Discussion started by: ahjiefreak
2 Replies
4. Shell Programming and Scripting
Hi,
I am working on bash script after a long time. I am getting error near done statement while running a for loop snippet. The error says "Syntax error near unexpcted token 'done'"
please suggest what could be wrong. here is the snippet
elements=${#option_arr} //an array of values... (1 Reply)
Discussion started by: arundhati_s
1 Replies
5. Shell Programming and Scripting
Hi
I am very new to using BASH, but I have a problem with a piece of script that I have been working on. Basically the script goes through a mailbox file looking at particular aspects of the file, for example how many spamwords there are email address etc. It does this pretty well except for an... (13 Replies)
Discussion started by: 9aza
13 Replies
6. Shell Programming and Scripting
Hi, although I am not expert in bash, so please forgive me if this is silly, I think that this is strange:
I have this command:
find . -type f -print0 |xargs -0 grep -i -e 'some rexp'
and it works fine. But when I create a bash script (on cygwin) to run this command, there is no output !!!... (3 Replies)
Discussion started by: Niki999
3 Replies
7. Shell Programming and Scripting
more run.sh
!/bin/bash
input="data.txt"
while IFS= read -r var
do
startdir="/web/logs"
searchterm=$(echo $var | awk -F'=' '{print $1}')
replaceterm=$(echo $var | awk -F'=' '{print $2}')
find "$startdir" -type f -exec grep -l "$searchterm" {} + |
while read file
do if sed -e... (1 Reply)
Discussion started by: mohtashims
1 Replies
8. Shell Programming and Scripting
Hello,
I am trying to concatenate a string in a bash script like this:
runCmd="docker run -e \"IMAGE_NAME=$IMAGE_NAME\" "
env | grep "$ENV_SUFFIX" | while read line; do
envCmd="-e \"${line}\" "
runCmd=$runCmd$envCmd
echo $runCmd # here concatenation works fine
done
echo... (3 Replies)
Discussion started by: czabak
3 Replies
9. Shell Programming and Scripting
Hello,
I work in Ubuntu 16.04, I am new to Bash and something is wrong with my script, please help.
I have a few hundreds of subjects data (like subj003.nii.gz, subj012.nii.gz etc. up to subj567.nii.gz) in a directory /usr/afewmoredirectories/subjects.
I may run for each subject a command... (5 Replies)
Discussion started by: lim-lim
5 Replies
10. Shell Programming and Scripting
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
Discussion started by: siegfried
3 Replies
LEARN ABOUT SUSE
sendinpaths
SENDINPATHS(8) InterNetNews Documentation SENDINPATHS(8)
NAME
sendinpaths - Send Usenet Path: statistics via e-mail
SYNOPSIS
sendinpaths [-n]
DESCRIPTION
sendinpaths checks pathlog/path for ninpaths dump files, finds dump files generated in the past 30 days, makes sure they are valid by
running ninpaths on each one and making sure the exit status is zero, and passes them to ninpaths to generate a cumulative report. That
report is mailed to the e-mail addresses configured at the beginning of this script (by default <pathsurvey@top1000.org> and
<top1000@anthologeek.net>) in order to supply the TOP1000 project with useful statistics: see <http://www.top1000.org/> for more
information.
When finished, sendinpaths deletes all dump files in pathlog/path that are older than 14 days (configurable at the beginning of the
script).
For more information on how to set up ninpaths, see ninpaths(8).
OPTIONS
-n Don't e-mail the report; instead, just print it to standard output. Don't delete old dump files.
HISTORY
sendinpaths was written by Olaf Titz <olaf@bigred.inka.de>.
$Id: sendinpaths.pod 8148 2008-10-25 18:12:55Z iulius $
SEE ALSO
ninpaths(8).
INN 2.5.2 2009-05-21 SENDINPATHS(8)