RE: dumn unix script question

2001-06-11 Thread Henry Poras

Jared,
Thanks for the summary. Any comments on where Tcl fits in to the mix? 

Henry

-Original Message-
Sent: Friday, June 08, 2001 5:11 PM
To: Multiple recipients of list ORACLE-L



Let me start off by saying that I like Java. I took a class 
in it from Sun, and Java is easy.  Learning the libs is hard
but the language is easy.

I'm going to say something now that may sound counter intuitive:

Learn Perl first.  The reason it may seem counter intuitive is
that Perl is hard to learn, at least at first.  Much easier if
you've had exposure to C though.

The reason for learning Perl is that there are many tasks that 
are easy in Perl that are hard in Java.  It's the same old balance:
with power comes complexity.

The basics of Perl aren't really *too* hard, just take a little 
getting used to.

The payoff is big.  There is no better language for data munging
than Perl.  If you need to clean up data for SQL loader files, 
use Perl.  Don't try to do it with PL/SQL or Korn as it is just
too much work.

While SQL*Loader allows you to do some very complex things in it,
it is *very* difficult at times.  Clean your data first.

Need to deal with a lot of text files, search for errors in log
files, etc., do it with Perl.

You will also be able to develop Perl code much faster than you
can develop Java code.  Java is very wordy, Perl can be very 
terse if you want or require.

Perl makes hard things easy, and impossible things possible.  :)

see www.perl.com for articles, downloads and tutorials.

Good first books for the non-programmer are Learning Perl and/or
Learning Perl for Win32.

Jared

On Friday 08 June 2001 04:10, Mark Leith wrote:
 A quick question - I have VERY limited scripting experience - for
arguments
 sake, lets say - none:)

 Now, looking at the code below, and having started with java a short time
 ago to implement certain functions in to our web page, I have to say that
 they look similar in style.. Is the case? Could I learn one code
 intimatley - like java - and have a good head start when faced with
others?

 If so, which would you reccomend starting to REALLY learn? I'm thinking
 java myself, and have already started as mentioned, but wanted to get your
 invaluable knowledge..

 Cheers

 Dorothy Red Shoes

 -Original Message-
 Sent: Friday, June 08, 2001 01:46
 To: Multiple recipients of list ORACLE-L



 Well, you've got the right idea, just in the
 wrong order.

 The korn shell does not compile the whole script
 and then execute as say Perl does.

 It executes it a line at a time.

 So rearrange your script like so:

 ==
 #!/bin/ksh

 function quick_test {
 echo hello
 }

 echo supposed to show hello below
 quick_test

 ==

 and it will work.

 Might be a good idea to pick up a good Korn
 shell book.  O'Reilly has one I believe.

 I like the one by Kochan and Wood, published
 by Hayden books.


 Jared

 On Thursday 07 June 2001 15:55, Janet Linsy wrote:
  Hi all,
 
  This must be a really dumn question. :-
 
  I have a script which doesn't work well, since it
  doesn't recognize a subroutine.  I compared my code
  with other codes that work fine with sub function, and
  didn't see any difference. (at least look the same
  style to me.)
 
  So I wrote a really small scipt to test the sub:
  ==
  #!/bin/ksh
 
  echo supposed to show hello below
  quick_test
 
  function quick_test {
  echo hello
  }
  ==
  after I run it, I got: 1[3]: quick_test:  not found.
 
  The box is:
  Machine hardware:   sun4u
  OS version: 5.6
 
  Don't know ksh version, how to know ksh version
  really?
 
  Thanks!
 
  Janet
 
 
  __
  Do You Yahoo!?
  Get personalized email addresses from Yahoo! Mail - only $35
  a year!  http://personal.mail.yahoo.com/

 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 --
 Author: Jared Still
   INET: [EMAIL PROTECTED]

 Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
 San Diego, California-- Public Internet access / Mailing Lists
 
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
 the message BODY, include a line containing: UNSUB ORACLE-L
 (or the name of mailing list you want to be removed from).  You may
 also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jared Still
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL 

Re: dumn unix script question

2001-06-11 Thread Jared Still

On Monday 11 June 2001 10:21, Henry Poras wrote:
 Jared,
 Thanks for the summary. Any comments on where Tcl fits in to the mix?


I've not used TCL, so I can't really say too much about it.  It is generally
considered simpler than Perl, and likewise less robust.  

TK is another matter.  If you wish to use a GUI interface with Perl, this
is a good way to do it, as it's fairly transportable between OS's.

There are a few good Oracle tools that use Perl/TK, OraC comes to mind.

Andy Duncan, feel free to chime in if you're reading your mail yet.

Jared
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jared Still
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: dumn unix script question

2001-06-09 Thread Mark Leith

Thanks Jared!

Off to find my first Perl Book :) I've seen on the list the things you do
with perl scripts, and have to say I'm always impressed..

Mark

-Original Message-
Sent: Friday, June 08, 2001 10:11
To: Multiple recipients of list ORACLE-L



Let me start off by saying that I like Java. I took a class
in it from Sun, and Java is easy.  Learning the libs is hard
but the language is easy.

I'm going to say something now that may sound counter intuitive:

Learn Perl first.  The reason it may seem counter intuitive is
that Perl is hard to learn, at least at first.  Much easier if
you've had exposure to C though.

The reason for learning Perl is that there are many tasks that
are easy in Perl that are hard in Java.  It's the same old balance:
with power comes complexity.

The basics of Perl aren't really *too* hard, just take a little
getting used to.

The payoff is big.  There is no better language for data munging
than Perl.  If you need to clean up data for SQL loader files,
use Perl.  Don't try to do it with PL/SQL or Korn as it is just
too much work.

While SQL*Loader allows you to do some very complex things in it,
it is *very* difficult at times.  Clean your data first.

Need to deal with a lot of text files, search for errors in log
files, etc., do it with Perl.

You will also be able to develop Perl code much faster than you
can develop Java code.  Java is very wordy, Perl can be very
terse if you want or require.

Perl makes hard things easy, and impossible things possible.  :)

see www.perl.com for articles, downloads and tutorials.

Good first books for the non-programmer are Learning Perl and/or
Learning Perl for Win32.

Jared

On Friday 08 June 2001 04:10, Mark Leith wrote:
 A quick question - I have VERY limited scripting experience - for
arguments
 sake, lets say - none:)

 Now, looking at the code below, and having started with java a short time
 ago to implement certain functions in to our web page, I have to say that
 they look similar in style.. Is the case? Could I learn one code
 intimatley - like java - and have a good head start when faced with
others?

 If so, which would you reccomend starting to REALLY learn? I'm thinking
 java myself, and have already started as mentioned, but wanted to get your
 invaluable knowledge..

 Cheers

 Dorothy Red Shoes

 -Original Message-
 Sent: Friday, June 08, 2001 01:46
 To: Multiple recipients of list ORACLE-L



 Well, you've got the right idea, just in the
 wrong order.

 The korn shell does not compile the whole script
 and then execute as say Perl does.

 It executes it a line at a time.

 So rearrange your script like so:

 ==
 #!/bin/ksh

 function quick_test {
 echo hello
 }

 echo supposed to show hello below
 quick_test

 ==

 and it will work.

 Might be a good idea to pick up a good Korn
 shell book.  O'Reilly has one I believe.

 I like the one by Kochan and Wood, published
 by Hayden books.


 Jared

 On Thursday 07 June 2001 15:55, Janet Linsy wrote:
  Hi all,
 
  This must be a really dumn question. :-
 
  I have a script which doesn't work well, since it
  doesn't recognize a subroutine.  I compared my code
  with other codes that work fine with sub function, and
  didn't see any difference. (at least look the same
  style to me.)
 
  So I wrote a really small scipt to test the sub:
  ==
  #!/bin/ksh
 
  echo supposed to show hello below
  quick_test
 
  function quick_test {
  echo hello
  }
  ==
  after I run it, I got: 1[3]: quick_test:  not found.
 
  The box is:
  Machine hardware:   sun4u
  OS version: 5.6
 
  Don't know ksh version, how to know ksh version
  really?
 
  Thanks!
 
  Janet
 
 
  __
  Do You Yahoo!?
  Get personalized email addresses from Yahoo! Mail - only $35
  a year!  http://personal.mail.yahoo.com/

 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 --
 Author: Jared Still
   INET: [EMAIL PROTECTED]

 Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
 San Diego, California-- Public Internet access / Mailing Lists
 
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
 the message BODY, include a line containing: UNSUB ORACLE-L
 (or the name of mailing list you want to be removed from).  You may
 also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Jared Still
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from 

RE: dumn unix script question

2001-06-08 Thread Mark Leith

A quick question - I have VERY limited scripting experience - for arguments
sake, lets say - none:)

Now, looking at the code below, and having started with java a short time
ago to implement certain functions in to our web page, I have to say that
they look similar in style.. Is the case? Could I learn one code
intimatley - like java - and have a good head start when faced with others?

If so, which would you reccomend starting to REALLY learn? I'm thinking java
myself, and have already started as mentioned, but wanted to get your
invaluable knowledge..

Cheers

Dorothy Red Shoes

-Original Message-
Sent: Friday, June 08, 2001 01:46
To: Multiple recipients of list ORACLE-L



Well, you've got the right idea, just in the
wrong order.

The korn shell does not compile the whole script
and then execute as say Perl does.

It executes it a line at a time.

So rearrange your script like so:

==
#!/bin/ksh

function quick_test {
echo hello
}

echo supposed to show hello below
quick_test

==

and it will work.

Might be a good idea to pick up a good Korn
shell book.  O'Reilly has one I believe.

I like the one by Kochan and Wood, published
by Hayden books.


Jared

On Thursday 07 June 2001 15:55, Janet Linsy wrote:
 Hi all,

 This must be a really dumn question. :-

 I have a script which doesn't work well, since it
 doesn't recognize a subroutine.  I compared my code
 with other codes that work fine with sub function, and
 didn't see any difference. (at least look the same
 style to me.)

 So I wrote a really small scipt to test the sub:
 ==
 #!/bin/ksh

 echo supposed to show hello below
 quick_test

 function quick_test {
 echo hello
 }
 ==
 after I run it, I got: 1[3]: quick_test:  not found.

 The box is:
 Machine hardware:   sun4u
 OS version: 5.6

 Don't know ksh version, how to know ksh version
 really?

 Thanks!

 Janet


 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail - only $35
 a year!  http://personal.mail.yahoo.com/
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Jared Still
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Mark Leith
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: dumn unix script question

2001-06-08 Thread Jared Still


Let me start off by saying that I like Java. I took a class 
in it from Sun, and Java is easy.  Learning the libs is hard
but the language is easy.

I'm going to say something now that may sound counter intuitive:

Learn Perl first.  The reason it may seem counter intuitive is
that Perl is hard to learn, at least at first.  Much easier if
you've had exposure to C though.

The reason for learning Perl is that there are many tasks that 
are easy in Perl that are hard in Java.  It's the same old balance:
with power comes complexity.

The basics of Perl aren't really *too* hard, just take a little 
getting used to.

The payoff is big.  There is no better language for data munging
than Perl.  If you need to clean up data for SQL loader files, 
use Perl.  Don't try to do it with PL/SQL or Korn as it is just
too much work.

While SQL*Loader allows you to do some very complex things in it,
it is *very* difficult at times.  Clean your data first.

Need to deal with a lot of text files, search for errors in log
files, etc., do it with Perl.

You will also be able to develop Perl code much faster than you
can develop Java code.  Java is very wordy, Perl can be very 
terse if you want or require.

Perl makes hard things easy, and impossible things possible.  :)

see www.perl.com for articles, downloads and tutorials.

Good first books for the non-programmer are Learning Perl and/or
Learning Perl for Win32.

Jared

On Friday 08 June 2001 04:10, Mark Leith wrote:
 A quick question - I have VERY limited scripting experience - for arguments
 sake, lets say - none:)

 Now, looking at the code below, and having started with java a short time
 ago to implement certain functions in to our web page, I have to say that
 they look similar in style.. Is the case? Could I learn one code
 intimatley - like java - and have a good head start when faced with others?

 If so, which would you reccomend starting to REALLY learn? I'm thinking
 java myself, and have already started as mentioned, but wanted to get your
 invaluable knowledge..

 Cheers

 Dorothy Red Shoes

 -Original Message-
 Sent: Friday, June 08, 2001 01:46
 To: Multiple recipients of list ORACLE-L



 Well, you've got the right idea, just in the
 wrong order.

 The korn shell does not compile the whole script
 and then execute as say Perl does.

 It executes it a line at a time.

 So rearrange your script like so:

 ==
 #!/bin/ksh

 function quick_test {
 echo hello
 }

 echo supposed to show hello below
 quick_test

 ==

 and it will work.

 Might be a good idea to pick up a good Korn
 shell book.  O'Reilly has one I believe.

 I like the one by Kochan and Wood, published
 by Hayden books.


 Jared

 On Thursday 07 June 2001 15:55, Janet Linsy wrote:
  Hi all,
 
  This must be a really dumn question. :-
 
  I have a script which doesn't work well, since it
  doesn't recognize a subroutine.  I compared my code
  with other codes that work fine with sub function, and
  didn't see any difference. (at least look the same
  style to me.)
 
  So I wrote a really small scipt to test the sub:
  ==
  #!/bin/ksh
 
  echo supposed to show hello below
  quick_test
 
  function quick_test {
  echo hello
  }
  ==
  after I run it, I got: 1[3]: quick_test:  not found.
 
  The box is:
  Machine hardware:   sun4u
  OS version: 5.6
 
  Don't know ksh version, how to know ksh version
  really?
 
  Thanks!
 
  Janet
 
 
  __
  Do You Yahoo!?
  Get personalized email addresses from Yahoo! Mail - only $35
  a year!  http://personal.mail.yahoo.com/

 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 --
 Author: Jared Still
   INET: [EMAIL PROTECTED]

 Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
 San Diego, California-- Public Internet access / Mailing Lists
 
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
 the message BODY, include a line containing: UNSUB ORACLE-L
 (or the name of mailing list you want to be removed from).  You may
 also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jared Still
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the 

Re: dumn unix script question

2001-06-08 Thread Diana_Duncan


While on the one hand I completely agree, as in my opinion Perl is the
absolutely bestest, yummiest and downright smartest language I've ever
encountered -- if you learn it first, you'll never be satisfied or happy in
any other language again ever.

;-)

Also, as a learning language, it can be confusing because any given
problem has as many possible solutions as there are programmers.  Learners
tend to want to know one way to do things at first.  I taught a couple of
Perl classes and all of my students suffered from information overload.
That may have been that I was a poor teacher...yeah, that was probably it.
I was also so enthusiastic about the logic and linguistics of Perl that I
think I talked over their heads.

Diana Duncan
TITAN Technology Partners
One Copley Parkway, Ste 540
Morrisville, NC  27560
VM: 919.466.7337 x 316
F: 919.466.7427
E: [EMAIL PROTECTED]


   

Jared Still

jkstill@cybcTo: Multiple recipients of list ORACLE-L 
[EMAIL PROTECTED]   
on.com  cc:   

Sent by: Fax to:   

root@fatcity.Subject: Re: dumn unix script question

com

   

   

06/08/2001 

05:11 PM   

Please 

respond to 

ORACLE-L   

   

   






Let me start off by saying that I like Java. I took a class
in it from Sun, and Java is easy.  Learning the libs is hard
but the language is easy.

I'm going to say something now that may sound counter intuitive:

Learn Perl first.  The reason it may seem counter intuitive is
that Perl is hard to learn, at least at first.  Much easier if
you've had exposure to C though.

The reason for learning Perl is that there are many tasks that
are easy in Perl that are hard in Java.  It's the same old balance:
with power comes complexity.

The basics of Perl aren't really *too* hard, just take a little
getting used to.

The payoff is big.  There is no better language for data munging
than Perl.  If you need to clean up data for SQL loader files,
use Perl.  Don't try to do it with PL/SQL or Korn as it is just
too much work.

While SQL*Loader allows you to do some very complex things in it,
it is *very* difficult at times.  Clean your data first.

Need to deal with a lot of text files, search for errors in log
files, etc., do it with Perl.

You will also be able to develop Perl code much faster than you
can develop Java code.  Java is very wordy, Perl can be very
terse if you want or require.

Perl makes hard things easy, and impossible things possible.  :)

see www.perl.com for articles, downloads and tutorials.

Good first books for the non-programmer are Learning Perl and/or
Learning Perl for Win32.

Jared

On Friday 08 June 2001 04:10, Mark Leith wrote:
 A quick question - I have VERY limited scripting experience - for
arguments
 sake, lets say - none:)

 Now, looking at the code below, and having started with java a short time
 ago to implement certain functions in to our web page, I have to say that
 they look similar in style.. Is the case? Could I learn one code
 intimatley - like java - and have a good head start when faced with
others?

 If so, which would you reccomend starting to REALLY learn? I'm thinking
 java myself, and have already started as mentioned, but wanted to get
your
 invaluable knowledge..

 Cheers

 Dorothy Red Shoes

 -Original Message-
 Sent: Friday, June 08, 2001 01:46
 To: Multiple recipients of list ORACLE-L



 Well, you've got the right idea, just in the
 wrong order.

 The korn

dumn unix script question

2001-06-07 Thread Janet Linsy

Hi all, 

This must be a really dumn question. :-

I have a script which doesn't work well, since it
doesn't recognize a subroutine.  I compared my code
with other codes that work fine with sub function, and
didn't see any difference. (at least look the same
style to me.) 

So I wrote a really small scipt to test the sub:
==
#!/bin/ksh

echo supposed to show hello below
quick_test

function quick_test {
echo hello
}
==
after I run it, I got: 1[3]: quick_test:  not found.

The box is: 
Machine hardware:   sun4u
OS version: 5.6

Don't know ksh version, how to know ksh version
really?

Thanks!

Janet


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Janet Linsy
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Thanks, works! -- Re: dumn unix script question

2001-06-07 Thread Janet Linsy

Thank you Michael and Balaji. It works! I'm still in
vb mind.  vb is what I was doing.  shell script is a
mistery to me.


--- Janet Linsy [EMAIL PROTECTED] wrote:
 Hi all, 
 
 This must be a really dumn question. :-
 
 I have a script which doesn't work well, since it
 doesn't recognize a subroutine.  I compared my code
 with other codes that work fine with sub function,
 and
 didn't see any difference. (at least look the same
 style to me.) 
 
 So I wrote a really small scipt to test the sub:
 ==
 #!/bin/ksh
 
 echo supposed to show hello below
 quick_test
 
 function quick_test {
 echo hello
 }
 ==
 after I run it, I got: 1[3]: quick_test:  not found.
 
 The box is: 
 Machine hardware:   sun4u
 OS version: 5.6
 
 Don't know ksh version, how to know ksh version
 really?
 
 Thanks!
 
 Janet
 
 
 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail -
 only $35 
 a year!  http://personal.mail.yahoo.com/
 
 
 Oracle documentation is here:
 http://tahiti.oracle.com/pls/tahiti/tahiti.homepage
 To unsubscribe: send a blank email to
 [EMAIL PROTECTED]
 To subscribe:   send a blank email to
 [EMAIL PROTECTED]
 Visit the list archive:
 http://www.LAZYDBA.com/odbareadmail.pl
 Tell yer mates about http://www.farAwayJobs.com
 By using this list you agree to these
 terms:http://www.lazydba.com/legal.html
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Janet Linsy
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: dumn unix script question

2001-06-07 Thread Jared Still


Well, you've got the right idea, just in the
wrong order.

The korn shell does not compile the whole script
and then execute as say Perl does.

It executes it a line at a time.

So rearrange your script like so:

==
#!/bin/ksh

function quick_test {
echo hello
}

echo supposed to show hello below
quick_test

==

and it will work.

Might be a good idea to pick up a good Korn 
shell book.  O'Reilly has one I believe.

I like the one by Kochan and Wood, published
by Hayden books.


Jared

On Thursday 07 June 2001 15:55, Janet Linsy wrote:
 Hi all,

 This must be a really dumn question. :-

 I have a script which doesn't work well, since it
 doesn't recognize a subroutine.  I compared my code
 with other codes that work fine with sub function, and
 didn't see any difference. (at least look the same
 style to me.)

 So I wrote a really small scipt to test the sub:
 ==
 #!/bin/ksh

 echo supposed to show hello below
 quick_test

 function quick_test {
 echo hello
 }
 ==
 after I run it, I got: 1[3]: quick_test:  not found.

 The box is:
 Machine hardware:   sun4u
 OS version: 5.6

 Don't know ksh version, how to know ksh version
 really?

 Thanks!

 Janet


 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail - only $35
 a year!  http://personal.mail.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jared Still
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).