Shell Scripts

How do I make my script commands execute in the current shell. By default
the script starts a sub-shell and executes.

How do I make my script commands execute in the current shell. By default

… shellscript #/bin/sh
source shellscript #csh

I put those two lines as the first two lines in my script. I get
“shellscript not found”
I’m new to POSIX OS’s so please forgive if these are too simple.

<kabe@sra-tohoku.co.jp> wrote in message news:a24l2a$snj$2@inn.qnx.com

How do I make my script commands execute in the current shell. By
default

. shellscript #/bin/sh
source shellscript #csh

I believe that shellscript was supposed to be the name of your shell script.


Bill Caroselli – 1(626) 824-7983
Q-TPS Consulting
QTPS@EarthLink.net


“Chris Rose” <esorcc@hotmail.com> wrote in message
news:a24o12$2fp$1@inn.qnx.com

I put those two lines as the first two lines in my script. I get
“shellscript not found”
I’m new to POSIX OS’s so please forgive if these are too simple.

kabe@sra-tohoku.co.jp> > wrote in message news:a24l2a$snj$> 2@inn.qnx.com> …
How do I make my script commands execute in the current shell. By
default

. shellscript #/bin/sh
source shellscript #csh

I tried that also. I get “cddevel not found”. (cddevel is the name of my
script). I’ve made it executable by using “chmod +x cddevel”

“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:a24p8p$39b$1@inn.qnx.com

I believe that shellscript was supposed to be the name of your shell
script.


Bill Caroselli – 1(626) 824-7983
Q-TPS Consulting
QTPS@EarthLink.net


“Chris Rose” <> esorcc@hotmail.com> > wrote in message
news:a24o12$2fp$> 1@inn.qnx.com> …
I put those two lines as the first two lines in my script. I get
“shellscript not found”
I’m new to POSIX OS’s so please forgive if these are too simple.

kabe@sra-tohoku.co.jp> > wrote in message
news:a24l2a$snj$> 2@inn.qnx.com> …
How do I make my script commands execute in the current shell. By
default

. shellscript #/bin/sh
source shellscript #csh
\

I tried that also. I get “cddevel not found”. (cddevel is the name of my

… ./cddevel

You really have to get an introductory material on shells.
Any “for dummies” book smelling UNIX in the bookstore/library/whatever
will do.

Then my guess is that it is not in your PATH. Either refer to it using a
complete pathname or put it’s directory in your path. Of as someone has
said, if you are in the directory where the script is just type

… ./scriptname

The leading dot, by itself, says that this file should be read as input to
the current shell. The ‘./’ says to look for it in the current directory.


Bill Caroselli – 1(626) 824-7983
Q-TPS Consulting
QTPS@EarthLink.net

“Chris Rose” <esorcc@hotmail.com> wrote in message
news:a24qf2$49e$1@inn.qnx.com

I tried that also. I get “cddevel not found”. (cddevel is the name of my
script). I’ve made it executable by using “chmod +x cddevel”

“Bill Caroselli” <> qtps@earthlink.net> > wrote in message
news:a24p8p$39b$> 1@inn.qnx.com> …
I believe that shellscript was supposed to be the name of your shell
script.


Bill Caroselli – 1(626) 824-7983
Q-TPS Consulting
QTPS@EarthLink.net


“Chris Rose” <> esorcc@hotmail.com> > wrote in message
news:a24o12$2fp$> 1@inn.qnx.com> …
I put those two lines as the first two lines in my script. I get
“shellscript not found”
I’m new to POSIX OS’s so please forgive if these are too simple.

kabe@sra-tohoku.co.jp> > wrote in message
news:a24l2a$snj$> 2@inn.qnx.com> …
How do I make my script commands execute in the current shell. By
default

. shellscript #/bin/sh
source shellscript #csh


\

<kabe@sra-tohoku.co.jp> wrote in message news:a252a5$9b6$1@inn.qnx.com

I tried that also. I get “cddevel not found”. (cddevel is the name of
my

. ./cddevel

You really have to get an introductory material on shells.
Any “for dummies” book smelling UNIX in the bookstore/library/whatever
will do.

Guess this http://dvl.novosoft.ru/documents/books/orelly/unix/ksh/index.htm
can help a bit

// wbr

Basic things are explained in helpview. Take a look at Utilities/ksh.
Eduard.

p.s. I’ve found this conference today only :wink: Thanks!

kabe@sra-tohoku.co.jp wrote in article <a252a5$9b6$1@inn.qnx.com>…

I tried that also. I get “cddevel not found”. (cddevel is the name of my

. ./cddevel

You really have to get an introductory material on shells.
Any “for dummies” book smelling UNIX in the bookstore/library/whatever
will do.