Procedures are not called ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Procedures are not called ?
# 1  
Old 11-11-2004
Procedures are not called ?

My shell script is executing i am having no syntax errors or other errors. When i am testing the shell script i am having a problem that the procedure Prompt, Environment,List are not found.
I defined all these procedures in the shell script.
Environment()
{
FULL=N export FULL
LOGON=cat | grep ....... etc
.....
}

Prompt(), List()
{
echo Enter the Action here
read action
}

After all these definitions at the botton i am calling these for my use

Environment
case $1 in
-p) Prompt; shift 1;;

but when testing i am getting err: Prompt not found
List not found, Environment not found
# 2  
Old 11-11-2004
What shell are you using? What is the line
Prompt(), List()
supposed to do? Try to write a small script that illustrates your problem and then post the whole thing. Except for the garbled line, it really isn't possible to do much with your code excerpts.
# 3  
Old 11-11-2004
Had not seen any prblem the way u defined functions/proceedures , but would u mind posting entire scrpt ?

the prblem might be with in the proceedures ;
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

For loop mysql procedures

Hi Forum how can I make for loop or while loop as below, in mysql language for i in (1, 2, 4, 6, 9) do ...... done similar to unix... (1 Reply)
Discussion started by: yahyaaa
1 Replies

2. Solaris

Solaris upgrade/migration procedures

Guys, I am more into IBM/HP unix stuff and my org wants me to do some kungfu on SUN :wall: , I have fair understanding of solaris only and I need ur help . I have to migrate all of my existing solaris boxes to their latest levels ( soalris 10) , having this daunting task I need your... (4 Replies)
Discussion started by: nivaspIND
4 Replies

3. Debian

Procedures in the #apt commands.

I have installed squeeze 6.0.0 as a base install from: Network install from a minimal CD. Debian -- Network install from a minimal CD i do see a lot of information on the various #apt commands , yet is is all garble goop as far as trying to make sense of where to begin at to install... (3 Replies)
Discussion started by: cowLips
3 Replies

4. Shell Programming and Scripting

calling two procedures from one ksh ???

Hi to all, This is first posting in this forum. I quite new to this KSH....i guess i ll have some fun...:) Well, I have two indivdual korn shell scripts. i m calling PL/SQL stored procedure from korn shell script. It works absolutely fine. Once its completed the log is updated and data is... (5 Replies)
Discussion started by: shashi369
5 Replies

5. Shell Programming and Scripting

Needed help in understanding these procedures?

Hi all, i needed some help in understanding a few procedures and how exactly is the sequence? FINISHED="Done" COLUMNS=$( stty -a | head -n 2 | cut -d " " -f2 |cut -d " " -f4 ) COLS=$((${COLUMNS} -${#FINISHED} - 5)) RET_ARR="\010" KILLLINE=${RET_ARR}${RET_ARR} for i in $(seq 1... (0 Replies)
Discussion started by: wrapster
0 Replies

6. Shell Programming and Scripting

Executing multiple Oracle procedures concurrently

I am using KSH with an OS of AIX Version 5.3. From my shell script, that will be scheduled thorugh a CRON, I need to execute 2 Oracle stored procedures concurrently. If we execute them one at a time, the total execution time takes 4 hours or more. Since they are not dependent on each other and... (6 Replies)
Discussion started by: multidogzoomom
6 Replies

7. UNIX for Dummies Questions & Answers

Stored Procedures

Dear friends, can anyone suggest links for online books on stored procedures in oracle. Cheers, (2 Replies)
Discussion started by: thumsup9
2 Replies

8. UNIX for Dummies Questions & Answers

printing out procedures in unknown format

Does Anybody know how to print procedures written in this format? .. .nr PS 11 .nr VS 14 .nr LL 6.5i .ad l .DA 1/9/91 .in 4.0i .DS Shepard D. Johnson .DE .in 0i .sp .sp .sp .LG .ce .B Pressure Sensors (P/N 16-0018-0 & 16-0018-1) Test Procedure (1 Reply)
Discussion started by: rjtrjt
1 Replies
Login or Register to Ask a Question