Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

unix executables

9 posts in Unix Last posting was on 2001-04-11 03:11:55.0Z
jbuhl Posted on 2001-04-03 17:02:31.0Z
From: "jbuhl" <jbuhl@peerdigital>
Subject: unix executables
Date: Tue, 3 Apr 2001 11:02:31 -0600
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <C2etIKGvAHA.259@forums.sybase.com>
Newsgroups: sybase.public.sqlserver.unix
NNTP-Posting-Host: 12.41.162.201
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.sqlserver.unix:646
Article PK: 1092736

Hello,

When i make a script on one of our Solaris boxes I have to prefix the it
with ./ (dot slash) to get it to execute. If i don't it says it can't find
it. Im using the korn shell. I suspect there is something missing from my
.profile that is causing this.



Thanks
Joe Buhl


Anthony Mandic <amandic Posted on 2001-04-03 23:50:18.0Z
Date: Wed, 04 Apr 2001 09:50:18 +1000
From: Anthony Mandic <amandic@*t.com.au>
Organization: Mandic Consulting Pty. Ltd.
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: unix executables
References: <C2etIKGvAHA.259@forums.sybase.com>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <1e94$tJvAHA.260@forums.sybase.com>
Newsgroups: sybase.public.sqlserver.unix
Lines: 13
NNTP-Posting-Host: 210.9.51.46
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.sqlserver.unix:643
Article PK: 1092732


jbuhl wrote:

> When i make a script on one of our Solaris boxes I have to prefix the it
> with ./ (dot slash) to get it to execute. If i don't it says it can't find
> it. Im using the korn shell. I suspect there is something missing from my
> .profile that is causing this.

You don't have the current directory (i.e. ".") in your $PATH. Type
"echo $PATH" and check for a dot. Add it to the end (this is safer),
if its not there. Then run ". .profile" to reload your shell profile.

-am © 2001


Michael Peppler Posted on 2001-04-04 21:26:28.0Z
From: "Michael Peppler" <mpeppler@peppler.org>
Subject: Re: unix executables
Date: Wed, 04 Apr 2001 14:26:28 -0700
Organization: Data Migrations, Inc.
References: <C2etIKGvAHA.259@forums.sybase.com> <1e94$tJvAHA.260@forums.sybase.com>
User-Agent: Pan/0.9.3_cvs (Unix)
Mime-Version: 1.0
Content-Type: text/plain charset=ISO-8859-1
Content-Tranfer-Encoding: 8bit
X-No-Productlinks: Yes
Message-ID: <PEdTUCVvAHA.260@forums.sybase.com>
Newsgroups: sybase.public.sqlserver.unix
Lines: 13
NNTP-Posting-Host: gw.peppler.org 206.55.243.57
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.sqlserver.unix:633
Article PK: 1092722


Anthony Mandic <amandic Posted on 2001-04-04 23:14:38.0Z
Date: Thu, 05 Apr 2001 09:14:38 +1000
From: Anthony Mandic <amandic@*t.com.au>
Organization: Mandic Consulting Pty. Ltd.
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: unix executables
References: <C2etIKGvAHA.259@forums.sybase.com> <1e94$tJvAHA.260@forums.sybase.com> <PEdTUCVvAHA.260@forums.sybase.com>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <hll6w#VvAHA.259@forums.sybase.com>
Newsgroups: sybase.public.sqlserver.unix
Lines: 8
NNTP-Posting-Host: 210.9.51.46
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.sqlserver.unix:631
Article PK: 1092720


Michael Peppler wrote:
>
> Sid. wrote:
>
> > am wrote
> >> Then run ". .profile" to reload your shell profile
> >
> > It should be ". ./.profile" for home directory.
>
> Close.
>
> . ~/.profile

". .profile" works if you're in your home directory at the time.

-am © 2001


Scott Jackson Posted on 2001-04-10 12:22:39.0Z
Reply-To: "Scott Jackson" <Scott.Jackson@SSCoop.com>
From: "Scott Jackson" <Scott.Jackson@SSCoop.com>
References: <C2etIKGvAHA.259@forums.sybase.com> <1e94$tJvAHA.260@forums.sybase.com> <PEdTUCVvAHA.260@forums.sybase.com> <hll6w#VvAHA.259@forums.sybase.com>
Subject: Re: unix executables
Date: Tue, 10 Apr 2001 08:22:39 -0400
Lines: 22
Organization: Southern States Coop., Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <yJU6QubwAHA.157@forums.sybase.com>
Newsgroups: sybase.public.sqlserver.unix
NNTP-Posting-Host: 12.4.254.172
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.sqlserver.unix:616
Article PK: 1092706

My .02 worth: sign off and then sign back on.

"Anthony Mandic" <amandic@*t.com.au> wrote in message
news:hll6w#VvAHA.259@forums.sybase.com...
> Michael Peppler wrote:
> >
> > Sid. wrote:
> >
> > > am wrote
> > >> Then run ". .profile" to reload your shell profile
> > >
> > > It should be ". ./.profile" for home directory.
> >
> > Close.
> >
> > . ~/.profile
>
> ". .profile" works if you're in your home directory at the time.
>
> -am © 2001


Anthony Mandic <amandic Posted on 2001-04-11 03:11:55.0Z
Date: Wed, 11 Apr 2001 13:11:55 +1000
From: Anthony Mandic <amandic@*t.com.au>
Organization: Mandic Consulting Pty. Ltd.
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: unix executables
References: <C2etIKGvAHA.259@forums.sybase.com> <1e94$tJvAHA.260@forums.sybase.com> <PEdTUCVvAHA.260@forums.sybase.com> <hll6w#VvAHA.259@forums.sybase.com> <yJU6QubwAHA.157@forums.sybase.com>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <XodgpfjwAHA.165@forums.sybase.com>
Newsgroups: sybase.public.sqlserver.unix
Lines: 9
NNTP-Posting-Host: 210.9.51.46
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.sqlserver.unix:611
Article PK: 1092701


Scott Jackson wrote:
>
> My .02 worth: sign off and then sign back on.

Well, that's almost like hitting CTRL-ALT-DEL on a PC!
Note that with a GUI interface on your workstation or
desktop, starting up another xterm (or whatever) would
suffice since it would start a new shell - which reads
the new .profile.

-am © 2001


Sid. Posted on 2001-04-04 21:22:07.0Z
From: Sid.
Date: Wed, 4 Apr 2001 17:22:07 -0400
Newsgroups: sybase.public.sqlserver.unix
Subject: Re: unix executables
Message-ID: <F2BF8F365EDBAB6B007561C285256A24.00017D6985256A24@webforums>
References: <C2etIKGvAHA.259@forums.sybase.com> <1e94$tJvAHA.260@forums.sybase.com>
Lines: 6
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.sqlserver.unix:634
Article PK: 1092725


am wrote
> Then run ". .profile" to reload your shell profile

It should be ". ./.profile" for home directory.

Sid.


wkraatz Posted on 2001-04-03 17:43:55.0Z
From: wkraatz@csc.com
Date: Tue, 3 Apr 2001 13:43:55 -0400
Newsgroups: sybase.public.sqlserver.unix
Subject: Re: unix executables
Message-ID: <FF9A52CD579F2105006167D585256A23.005F855E85256A23@webforums>
References: <C2etIKGvAHA.259@forums.sybase.com>
Lines: 2
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.sqlserver.unix:644
Article PK: 1092734

You can enter the "." (current directory) as a part of your PATH variable.
Note that your site may concider this a violation of good
practice/security.


Torsten Zielinski Posted on 2001-04-03 17:29:44.0Z
Message-ID: <3ACA0888.4070707@lehmanns.de>
Date: Tue, 03 Apr 2001 19:29:44 +0200
From: Torsten Zielinski <zilli@lehmanns.de>
User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.3 i686; en-US; 0.8) Gecko/20010215
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: unix executables
References: <C2etIKGvAHA.259@forums.sybase.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.sqlserver.unix
Lines: 12
NNTP-Posting-Host: glogauer6.lehmanns.de 212.121.137.33
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.sqlserver.unix:645
Article PK: 1092735

check your $PATH variable. the . is the current directory. you need it
in your $PATH, if you don't wanna prefix your commands.

jbuhl wrote:

> Hello,
>
> When i make a script on one of our Solaris boxes I have to prefix the it
> with ./ (dot slash) to get it to execute. If i don't it says it can't find
> it. Im using the korn shell. I suspect there is something missing from my
> .profile that is causing this.
>
>
>
> Thanks
> Joe Buhl