09-14-2006
Hi, kindly give an example script of lockfiles usage?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have wriiten the following scripts in UNIX. The file name is bk.ksh
rman target=/ << EOF
RUN {
SHUTDOWN IMMEDIATE
STARTUP MOUNT
ALLOCATE CHANNEL ch1 device TYPE
DISK FORMAT '/u01/oradata/ora/%U';
BACKUP DATABASE PLUS ARCHIVELOG;
SQL'ALTER DATABASE OPEN'
;}
EXIT;
EOF
when i try... (8 Replies)
Discussion started by: manna
8 Replies
2. Solaris
Hi,
i have a script which need to do behave differently when run as a startup process from init.d/ rc2.d script and when run manually from shell.
How do i distinguish whether my script is run by init process or by shell??
Will the command
/proc/$$/psinfo | grep "myscript" work well???... (2 Replies)
Discussion started by: vickylife
2 Replies
3. Programming
hello everybody!
Is there any way to identify if a process is defunct or if it is still running? (in C).
for example: by using a signal such as SIGCHLD?
thanx in advance (1 Reply)
Discussion started by: nicos
1 Replies
4. UNIX for Dummies Questions & Answers
hi,
is it ok for more than one inetd daemon running at a time?
if not okay, possible to kill the rest and make only one daemon running?
i understand that inetd is a process that enables tcp connections from external sources...kindly advise more on inetd...thanks alot..Happy New Year!:) (2 Replies)
Discussion started by: cromohawk
2 Replies
5. Shell Programming and Scripting
Hi. A shell scripting newbie here. I am trying to write a script that will create a running total of Sales, and increment a counter for each Sales entry, but when I executed the program it never stopped.
counter=0
Sales=0
echo "enter sales price"
read sales
while
do
let counter=counter+1... (6 Replies)
Discussion started by: Ccccc
6 Replies
6. Shell Programming and Scripting
i have a script tool.sh,but i want to include a script within it that checks if tool.sh is already running,if already running then the new one called should exit,but if not then the new one should proceed and run.
i want to prevent the duplicate running of the script. (5 Replies)
Discussion started by: tomjones
5 Replies
7. AIX
I know about standard "ps ..|grep .. | grep -v grep" solution, but...
this is different issue I have encountered in several companies I worked for.
And I see this only for AIX - not HP, not Solaris, not Linux.
Korn shell script is scheduled in the background (via cron /via Tivoli Scheduler or... (6 Replies)
Discussion started by: ooops
6 Replies
8. Shell Programming and Scripting
Hi.. i have written a shell script and made this script to run on every day night 11: 55 pm using a cron job.
This cron job running for some days and is not running for some day. but i need this script to run every day night. Please help me.
Here is the cron tab entries,
55 23 * * *... (1 Reply)
Discussion started by: vidhyaS
1 Replies
9. Shell Programming and Scripting
Hi,
I have a script which does couple of database connection and run some SELECT queries to get some output in the file.
I am surprised to see :eek: that when i run my script some times it gives the desired out put and sometimes it shows some error :confused: .
Suppose if i execute it say... (3 Replies)
Discussion started by: Sharma331
3 Replies
10. UNIX for Beginners Questions & Answers
hi
i have a alarm file mentioned as below
alarm_log.15122017
i want to fetch failure detail but script is not working .
kindly let me now where is the mistake
#!/bin/bash
cd /scripts/
DATE=`date "+ %d%m%Y"`
ls -lrt | grep -i "alarm_log.$DATE"
cat alarm_log.$DATE |grep -B 1... (6 Replies)
Discussion started by: scriptor
6 Replies
MAKESH(1) General Commands Manual MAKESH(1)
NAME
makeSH - a .SH script maker
SYNOPSIS
makeSH files
DESCRIPTION
MakeSH examines one or more scripts and produces a .SH file that, when run under sh, will produce the original script. The .SH script so
produced has two sections containing code destined for the output. The first section has variable substitutions performed on it (taking
values from config.sh), while the second section does not. MakeSH does not know which variables you want to have substituted, so it puts
the whole script into the second section. It's up to you to insert any variable substitutions in the first section for any values you want
from config.sh.
You should run makeSH from within your top-level directory and use the relative path to the file as an argument, so that the "Extracting
..." line printed while running the produced .SH file later on will give that same path.
AUTHOR
Larry Wall <lwall@netlabs.com>
SEE ALSO
pat(1), metaconfig(1), makedist(1).
BUGS
It could assume that variables from metaconfig's Glossary need to be initialized in the first section, but I'm too lazy to make it do that.
LOCAL MAKESH(1)