Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PATH variable not being recognised

Status
Not open for further replies.

nolim073

IS-IT--Management
Nov 9, 2006
21
US
Hello,
this is a weired one.
i vi'd a users .profile and added

MAIL=/usr/mail/${LOGNAME:?}
PATH=$PATH:/usr/local/bin/:/usr/bin:/usr/sbin:/web/ebmo/work70/bin/:

i logged out and logged in and am trying to run ant command in /web/ebmo/work70/bin/. i get permission denied.

If i do /web/ebmo/work70/bin/ant it runs!

any idea why?
 
can you post

ls -al /web/ebmo/work70/bin/ant

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
You could check that you don't have a copy of ant (in the PATH), with bad permissions, and another copy in /web/ebmo/work70/bin/ant with the correct permissions. See output from 'which ant'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top