10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Gurus,
I have written small script which will start the given service if its stop .Its running fine when manually executed but its unable to run from crontab.
#!/bin/bash
SERVICENAME=rsyslog
service $SERVICENAME status > /dev/null
SYSLOGSTATUS=`echo $?`
COUNT=0
THRESHOLD=3
if ... (4 Replies)
Discussion started by: kapil514
4 Replies
2. UNIX for Dummies Questions & Answers
Testing some old script developed by different user.
#!/usr/bin/sh
case "$0" in
*/*) cmd="$0";;
*) cmd=`which "$0"`;;
esac
dir=`dirname "$cmd"`
node="$dir/."
echo $node
below two simple tests are failing, I am not seeing any Control+M characters in the script file and I am not able... (4 Replies)
Discussion started by: srimitta
4 Replies
3. Shell Programming and Scripting
Hi,
I have a single script that was running fine in parallel on Linux 2.6.9-89 now it has been upgraded to Linux 2.6.18-308.24.1.el5 and the script has started to fail unpredictably. Is this an upgrade issue? As the script runs fine for some parallel threads while fails for others. Please... (4 Replies)
Discussion started by: Panna
4 Replies
4. Shell Programming and Scripting
I create a file that may contain several full path name files on a remote Linux that are to be copied. This file, called AWKOUTPUT is created from another script.
It contains:
X/picture1.png
The script is very simple
-------------------------------------------
REMOTEDIR="/var/CC/Stuff"... (4 Replies)
Discussion started by: mohrsville12
4 Replies
5. Solaris
I have this oracle script which my dba is trying to run as a cron job that fails. attached is the script. It seems to run when executed by itself but just not when scheduled. (3 Replies)
Discussion started by: Kjons76
3 Replies
6. Shell Programming and Scripting
Hey all. Sometimes I'm tasked to change some router configs for the entire network (over 3,000 Cisco routers). Most of the time its a global config parameter so its done with a loop and an IP list as its the same configuration change for all routers. This is working OK.
However, sometimes an... (3 Replies)
Discussion started by: mrkz1974
3 Replies
7. Shell Programming and Scripting
I have a script and code is like this ..
if ]; then
it's compiling about @ . what's the wrong in Solaris 10 with this?
Thanks (1 Reply)
Discussion started by: talashil
1 Replies
8. UNIX for Dummies Questions & Answers
i am basically DWH professional.
I want to
write a script such that whenver the file size is greather than 0 the script fails
plz help me in this (1 Reply)
Discussion started by: er_zeeshan05
1 Replies
9. Shell Programming and Scripting
Hi,
I'm ssh-in to a remote machine (ubuntu) and trying to execute a little script in there.The script looks like this:
ssh user@ubuntu <<EOF
cd ~/test
ls -l
echo "Continue counting files starting with a`s ?"
read answer
if
then
ls -l a*
else
exit
fi
EOF
Now everything works... (9 Replies)
Discussion started by: rubionis
9 Replies
10. UNIX for Advanced & Expert Users
Hi folks,
I have written down a UNIX script which actually FTP the file to other server. What is happening now , this script is not working only for 1 server , as it is working for 32 different FTP server .
In this particular server , we are getting message “FTp:550 access denied”... (1 Reply)
Discussion started by: khan1978
1 Replies