10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am using blow script :--
#!/bin/bash
FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not
if
then
# echo "process found"
exit 0;
else
echo "process not found"
exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
Discussion started by: ketanraut
1 Replies
2. Shell Programming and Scripting
Hi,
I want to write a script which continuously checking status of a script running in background by nohup command. And if same script is not running then immediately start the script...please help..
i am using below command to run script
nohup system_traps.sh &
but in some... (9 Replies)
Discussion started by: ketanraut
9 Replies
3. Shell Programming and Scripting
#!/bin/ksh
number1="20"
if
then
number1=$1
fi
number2="1"
while ]
do
if ]
then
print "FizzBuzz"
elif ]
then
print "Fizz"
elif ]
then
... (3 Replies)
Discussion started by: bjhum33
3 Replies
4. UNIX for Dummies Questions & Answers
I have a simple script that processes files. Here's a simplified example of what I'm doing:
foreach t (web.*)
mv $t dnw$t:e.log
end
foreach t (card.*)
mv $t card$t:e.log
end
The problem is that sometimes there is no web.* file. In that case, I get an error "foreach: No match" and... (4 Replies)
Discussion started by: software5723
4 Replies
5. Shell Programming and Scripting
solution found....
Please use tags for scripts, listings, and console output (2 Replies)
Discussion started by: audiolord
2 Replies
6. Shell Programming and Scripting
hey watsup guys
i am new in the shell script world. so i need help fom you guys, i have written these two codes and they both give the same errors( expr : syntax error).
Code 1 :
#! /bin/sh
# count1 appends an increment to a file 200 times
# note that a file called numbers must be... (5 Replies)
Discussion started by: surubi_abada
5 Replies
7. Shell Programming and Scripting
Hello;
I'm trying to write a script to capture any hardware error from logs/syslog on my SUSE 10 servers so i can be notified if we have any hardware issues such a bad fan or battery, etc..
Thanks in advance for any help (2 Replies)
Discussion started by: Katkota
2 Replies
8. Shell Programming and Scripting
I m having trouble in a script.I need To write a script that will check for Following Errors in Logs Files,i.e files having Extension .log
The erros are
2008-01-01 15:19:11,822 ERROR - ORA-01115: IO error reading block from file 51 (block # 717090)
ORA-01110: data file 51:... (4 Replies)
Discussion started by: ali560045
4 Replies
9. Programming
Hi all,
I have created a post-C (PC) script OrdItmpopulate.pc. When I am compiling this using the “Make” command I am getting the following error. My “make” command looks like this:
make -f $ORACLE_HOME/precomp/demo/proc/demo_proc.mk build EXE=OrdItmpopulate8.exe OBJS="OrdItmpopulate8.o"... (1 Reply)
Discussion started by: musavir19
1 Replies
10. UNIX for Dummies Questions & Answers
#!/bin/ksh
sqlplus -s user/passwd@remoteserver << EOF > errors2.log
set pagesize 0 feedback off verify off heading off echo off
select directory_nm || '/' || file_nm || '|' ||venue_id || '|' || time_id from file_control;
EOF
The output of this script is;
... (2 Replies)
Discussion started by: pavan_test
2 Replies