ls -l tmp -rwxr-xr-x 1 ashishp rater 8 Apr 12" /> permission denied for ". " (dot space) - The UNIX and Linux Forums
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 Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Awk - to test multiple files "read" permission ? lokiman Shell Programming and Scripting 1 02-09-2008 12:10 PM
Development Releases: Linux Mint 4.0 Beta "Fluxbox", 4.0 Alpha "Debian" iBot UNIX and Linux RSS News 0 01-04-2008 03:00 PM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-20-2007 01:52 AM
screen throws "permission denied" miechu Shell Programming and Scripting 6 10-24-2006 09:17 PM
simple Unix Execute permission for "others" jsudha HP-UX 1 07-26-2004 03:45 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 04-12-2007
shriashishpatil shriashishpatil is offline
Registered User
  
 

Join Date: Dec 2005
Location: Pune
Posts: 81
permission denied for ". " (dot space)

Hi,
When I try to run a script with ". "(dot space) in my home, it gives me error ".: Permission denied".



Quote:
snv899!ashishp:~ [151]> ls -l tmp
-rwxr-xr-x 1 ashishp rater 8 Apr 12 09:38 tmp*
snv899!ashishp:~ [152]>
snv899!ashishp:~ [152]>
snv899!ashishp:~ [152]> cat tmp
echo hi
snv899!ashishp:~ [153]> . ./tmp
.: Permission denied.
snv899!ashishp:~ [154]> . tmp
.: Permission denied.
snv899!ashishp:~ [155]>
Any explanation for this behaviour?

Thanks in advance,
-Ashish
  #2 (permalink)  
Old 04-12-2007
shriashishpatil shriashishpatil is offline
Registered User
  
 

Join Date: Dec 2005
Location: Pune
Posts: 81
I am using tcsh. Isn't this command ". " avaibale in tcsh?

For ksh it works.

-Ashish
  #3 (permalink)  
Old 04-12-2007
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,116
The dot command is sh/bash/ksh. That family has a lot of stuff in common. csh/tcsh is another family of shells. Almost nothing is common between the two familes.

In csh try:
source ./tmp
  #4 (permalink)  
Old 04-12-2007
Sowser Sowser is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 90
try this

Usually if you want to run or refer to something in your current directory, you can simply address it with a "./" (dot slash)...to execute file in you directory, make sure it is execute permissions and then "./file". Hope that helps.

-S
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:18 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