The UNIX and Linux Forums  


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 !!

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 10-24-2006
SUSANR9999 SUSANR9999 is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 4
Question Csh Vs Ksh

I created a simple script and attempted to run it. All that the scrip contained was "ls -l".
At first I received the message "ksh: run_dir: not found"
I then tried typing "csh run_dir" This time the script worked.
typing echo $SHELL produced /bin/ksh

I would like to understand why this happened.

thank you for your help
  #2 (permalink)  
Old 10-24-2006
ranj@chn ranj@chn is offline Forum Advisor  
Playing with Ubuntu Now!
  
 

Join Date: Oct 2005
Location: Chennai
Posts: 365
PATH variable

Your PATH variable may not be properly set up. If your working directory is /home/susan - set this in your '.profile' file,
Code:
export PATH=$PATH:/home/susan/
Then run the profile (by giving '. .profile') and try executing the script again.
  #3 (permalink)  
Old 10-24-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,776
or
Code:
./run_dir
  #4 (permalink)  
Old 10-24-2006
SUSANR9999 SUSANR9999 is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 4
thank you - that worked

but what does ./ mean?
  #5 (permalink)  
Old 10-24-2006
ranj@chn ranj@chn is offline Forum Advisor  
Playing with Ubuntu Now!
  
 

Join Date: Oct 2005
Location: Chennai
Posts: 365
current dir

'.' - means the current directory. Since the script is in the current directory, ./run_dir amounts to giving the complete path of the script to be run.
Closed Thread

Bookmarks

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 05:58 PM.


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