The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
isql query in unix shell script jaydeep_sadaria Shell Programming and Scripting 3 11-14-2007 03:07 AM
Setting value of Shell variable from within ISQL tipsy Shell Programming and Scripting 3 08-29-2006 07:23 PM
isql in shell script help mrviking Shell Programming and Scripting 2 06-09-2006 05:11 AM
how to convert from korn shell to normal shell with this code? forevercalz Shell Programming and Scripting 21 11-23-2005 02:18 AM
KORN Shell - Spawn new shell with commands frustrated1 Shell Programming and Scripting 2 04-20-2005 02:23 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-25-2008
risk_sly risk_sly is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 17
Using isql in korn shell

Hi all,

I have two accounts in a Unix server, the first one uses .tcsh as default shell and the other uses .ksh (korn shell) as default.

When I login using the account with .tcsh default, I can use the isql command and connect to our database server. However, when I use the other account that uses korn shell (.ksh) as default, the isql does not work. Unix does not recognise it.

I noticed that in the .tcsh account, i have these two files .login and .tcshrc, which I think contain the configuration to connect to our database server.

I tried copying these files to my .ksh account, and even tried renaming the file .tcshrc to .cshrc but still, the .ksh account does not recognise the isql command.

Any suggestions how I can make my .ksh account recognise isql? I also noticed that even though i have this .login file in my .ksh account, it does not load. (as the echo command is not being displayed)

Thank you.
  #2 (permalink)  
Old 09-25-2008
raidzero's Avatar
raidzero raidzero is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 60
Find where the isql binary resides ( find / | grep isql ), and put in your PATH for ksh, and if not even echo is working I would check the PATH and make sure it has /usr/bin:/usr/sbin:/sbin:/usr/local/bin etc or symlink the isql binary to /usr/bin or something like that and make sure it is in your PATH. echo $PATH will show you the current PATH variable. do
Code:
export PATH=$PATH:/dir/with/isql
the PATH variable is where unix stores the locations of command commands so you do not need to type the absolute path every time you want to execute them. hope this helps
  #3 (permalink)  
Old 09-25-2008
risk_sly risk_sly is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 17
thank you raidzero.

However, when I tried using find / | grep isql, the command returns too many directories and most of them displays "Permission denied" at the end of the directory. e.g.

find: cannot read dir /var/sadm/patch/: Permission denied
find: cannot read dir /var/adm/db/patchlogs: Permission denied
find: cannot read dir /var/spool/cron/crontabs: Permission denied
find: cannot read dir /var/spool/clientmqueue: Permission denied
find: cannot read dir /var/spool/mqueue: Permission denied
find: cannot read dir /var/krb5/rcache/root: Permission denied
find: cannot read dir /var/fm/fmd/xprt: Permission denied
find: cannot read dir /var/fm/fmd/rsrc: Permission denied
find: cannot read dir /var/fm/fmd/ckpt: Permission denied
find: cannot read dir /var/preserve/casaall: Permission denied
find: cannot read dir /var/preserve/chuljay: Permission denied
find: cannot read dir /var/preserve/cheherb: Permission denied
find: cannot read dir /var/cron: Permission denied
Closed Thread

Bookmarks

Tags
unix commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0