?
Solved

couple questions about set path

Posted on 1998-07-23
2
Medium Priority
?
257 Views
Last Modified: 2010-08-05
My sys admin has set couple paths at .cshrc_global and I don't have permission to edit the file.
How can I add my own path? If I type set path = ( ~/usr/local/bin ), this will set path ONLY to
my ~/usr/local/bin and the old paths that have been assigned by my sys admin will be deleted.

My 2nd question is: I hate to type ./my_executable_file everytime. How can I make the program runs
when I just type my_executable_file without ./  ?

Thanks.
0
Comment
Question by:kidz2001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
n0thing earned 60 total points
ID: 2009146
Hi,

  Just copy the .cshrc_global into your home directory and rename it to .cshrc, edit the file and add whatever path you need in
the path statement. Inorder to execute something in the current directory just add a "." to the end of your path statement.

Ex:
set path = ( /usr/bin /usr/local/bin /etc /abc/def . )

Regards,
Minh Lai
0
 

Author Comment

by:kidz2001
ID: 2009147
I found another simple way. I don't need to copy .cshrc_global, but instead at my .cshrc, I add

set path = ( $path ~/user/local/bin \
                    $path . )


0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question