The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: permission denied for ". " (dot space)
imparas
Newbie
Rank: 1



UID 185
Digest Posts 0
Credits 0
Posts 37
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 1, 2007 12:23 PM  Profile | P.M. 
permission denied for ". " (dot space)



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,


Top
ch1one
Newbie
Rank: 1



UID 85
Digest Posts 0
Credits 0
Posts 58
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 1, 2007 12:23 PM  Profile | P.M. 
i am using tcsh. isn't this command ". " avaibale in tcsh?

for ksh it works.
Top
carljohn
Newbie
Rank: 1



UID 83
Digest Posts 0
Credits 0
Posts 28
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 1, 2007 12:24 PM  Profile | P.M. 
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:
Top
ajscottsr
Newbie
Rank: 1



UID 44
Digest Posts 0
Credits 0
Posts 51
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 1, 2007 12:24 PM  Profile | P.M. 
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.
Top
 

 

All times are GMT, the time now is Jul 31, 2010 03:36 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.005881 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP