03-21-2011
thank you LivinFree
now the thinghs are more clear to me
your example was cool
Regards,
Digvijay Singh
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I'm developing a system which requires me to run a ksh script from within a cgi script. What sort of syntax will I need to do this, I'm sure it's simple but can't find out how anywhere!
Thanks. (1 Reply)
Discussion started by: hodges
1 Replies
2. Shell Programming and Scripting
In a ksh script on an AIX box running a jillion oracle database processes, I'm setting a variable to one of two possible arguments, depending on cmd line arguments.
FINDIT="ps -ef | grep oracle | grep DBexport | grep rshrc"
-or-
FINDIT="ps -ef | grep oracle | grep prod | grep runback"
I... (3 Replies)
Discussion started by: zedmelon
3 Replies
3. Shell Programming and Scripting
Hi,
I'm new to unix scripting.How can i call a script from another script.
I have a.ksh and b.ksh .I have to call b.ksh from a.ksh after it is successfully exceuted.
I tried using
#!/bin/ksh -x in a.ksh and at the end i have used /path/b.ksh
My problem is it is executing only a.ksh.it... (6 Replies)
Discussion started by: ammu
6 Replies
4. Shell Programming and Scripting
Please ignore.
I found the answer at:
https://www.unix.com/shell-programming-scripting/24557-difference-between.html (1 Reply)
Discussion started by: JamesByars
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am a new bie to unix shell programming. I have specified ksh as the first line in my script but when executed it complains.
*********** Script=test********************
#!/usr/bin/ksh
echo hello
print -p 123
************************************
++++++++ Execution... (7 Replies)
Discussion started by: akhilnagpal
7 Replies
6. Shell Programming and Scripting
Hi All,
I wrote a script to send a mail if a particular logfile did not get updated since 5 mins. Here is the Script.
log=`date +%e_%b_%Y`.log # returns todays logfile
x=`date -r $log` # returns last modification time of the Log file
h1=`expr substr "$x" 12 2`
m1=`expr substr "$x" 15 2`... (5 Replies)
Discussion started by: AnneAnne
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am in ksh.
below mentioned 3 commands I executed at command prompt & got the expected results.
csh
source csh_infa
<special command>
Now I have to do this in the script in ksh. I entered it as it is.
#!/bin/ksh
csh
source csh_infa
<special command>
Now after... (1 Reply)
Discussion started by: girish_kanak
1 Replies
8. Shell Programming and Scripting
I have a question about the following
what is the difference between running myscript vs . myscript vs exec myscript ?
I know that when you just run myscript it will fork a child process and run the script and exits.
What does the . myscript and exec myscript do and why is it different and... (1 Reply)
Discussion started by: jlim0930
1 Replies
9. Shell Programming and Scripting
I am trying to call a ksh script from another ksh script.
in the called script , i am doing sum calculation(used typeset etc)
suppose a.ksh is the calling script and b.ksh is the called script .
. b.ksh (used this inside a.ksh)
this execution gives some error like bad number.
but when i... (1 Reply)
Discussion started by: urfrnddpk
1 Replies
10. Shell Programming and Scripting
Hello,
I have two "for loops" in my script and the second one is not executing the way i want.
Script:
#!/bin/ksh
IFS=' '
printf "Enter Account name: "
read A B C D E F G H I J K L M N O
for i in ${A} ${B} ${C} ${D} ${E} ${F} ${G} ${H} ${I} ${J} ${K} ${L} ${M} ${N} ${O};... (3 Replies)
Discussion started by: seekryts15
3 Replies
LEARN ABOUT CENTOS
cvscheck
CVSCHECK(1) [FIXME: manual] CVSCHECK(1)
NAME
cvscheck - Offline status report for files in a checked-out CVS module.
SYNOPSIS
cvscheck [dir]
DESCRIPTION
cvscheck prints information about the status of your local CVS checkout without communicating with the server. This means it is extremely
fast and does not require a network connection.
The given directory and all of its subdirectories will be processed recursively. If no directory is given, the current directory and its
recursed subdirectories will be used.
Each file with an interesting status will be printed with a status character in front of its name. The status characters are as follows.
? foobar.c
The file is not known to CVS
M foobar.c
The file is definitely locally modified
m foobar.c
The file might have local changes. You should diff with the server to make sure.
C foobar.c
The file has a CVS conflict and therefore cannot be committed.
U foobar.c
This file is in CVS but is missing in your local checkout.
T foobar.c
This file has an unusual sticky CVS tag.
A foobar.c
You have done a cvs add for this file, but have not yet committed it.
R foobar.c
You have done a cvs rm for this file, but have not yet committed it.
This utility is part of the KDE Software Development Kit.
SEE ALSO
cvs(1)
AUTHORS
cvscheck was written by Dirk Muller<mueller@kde.org> and Sirtaj.Singh.Kang; <taj@kde.org>
This manual page was prepared by Ben Burton<bab@debian.org> for the Debian GNU/Linux system (but may be used by others).
[FIXME: source] March 8, 2003 CVSCHECK(1)