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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Reading a file and writing the file name to a param file. thebeginer UNIX for Advanced & Expert Users 1 10-05-2007 01:38 PM
Reading file names from a file and executing the relative file from shell script anushilrai Shell Programming and Scripting 4 03-10-2006 02:25 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-22-2002
Registered User
 

Join Date: Nov 2001
Location: Singapore
Posts: 12
Why can't I run a *.ksh file?

Hi

I'm interested to know why is it that I can't run a specific *.ksh file, is it due to permission settings? If it is, how can I work around that? I'm not logging on as the administrator, do I need to be an administrator to run *.ksh files?
__________________
Best regards

Hun Khee
Forum Sponsor
  #2  
Old 07-22-2002
Registered User
 

Join Date: Nov 2001
Location: New Zealand
Posts: 333
The extension is irrelevant when it comes to what files you can run - unless you have something specifically written in your system - which is not likely.

Can you show me what the file permissions look like...and how it is you are trying to run the file.

i.e do an "ls -l" for the file and then from the directory it's in type => ./filename
__________________
Pete
  #3  
Old 07-23-2002
Registered User
 

Join Date: Jun 2002
Location: Chennai, India
Posts: 110
Type ls -l for looking at the permissions for the file..


The file's permission looks something like this..

-rwxr-xr-x

r - read
w - write
x - execute

The first three is for the owner and the second is for the group and the third for the others.

U can change the file permissions using chmod

Is this what u wanted to know??

-Nisha
  #4  
Old 07-23-2002
Registered User
 

Join Date: Nov 2001
Location: New Zealand
Posts: 333
well you might be able to change the permissions....depending on what they are...if you don't have the appropriate access you can't change the permissions....!!
__________________
Pete
  #5  
Old 07-23-2002
Registered User
 

Join Date: Nov 2001
Location: Singapore
Posts: 12
Thanks!

Thanks guys for all the help you've provided me, I guess I'll have to check with my admin to see if I have the rights...
__________________
Best regards

Hun Khee
  #6  
Old 07-24-2002
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Also, if you are calling a binary from a directory you don't have access to, you will get errors as well. So make sure you have permission to run any binaries that may be in your script.

__________________
My brain is your brain
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0