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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

which in AIX

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi all,

anybody knows why I can "which" an executable file but I cannot execute it?

e.g.
/home > which testing
/home/klins/testing

/home > testing
testing: command not found

thanks
 
From your post it could be a number of problems. First thing to try would be either giving the full path of the file or changing into the directory its in.

/home/klins

From what you said in the post you are trying to run it from home?

If you don't have a . in your path then you might try changing to the directory and typing ./testing

If you still have problems change to the directory and type
ls -la testing and make sure it has the x - execute permission on the file where you need it and that depends
on if you are the owner or in the same group as the owner.

Hope this helps,

Tcorum
 
In AIX the correct command to use to "find" commands on Korn Shell is [tt]whence[/tt]. [tt]which[/tt] was created for CSH users, then it will look for alias and path definitions a-la Csh style.

I hope it works...
Unix was made by and for smart people.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top