Seriously Using the Bin

This page tells you everything you need to know about how to use the commands, the CGIs, and the Perl in the User Bin.

Commands

To use the programs and scripts, put this in your .cshrc file:

set path = (/local/userbin/os/bin $path)

To use the man pages, put this in your .login file:

if ($?MANPATH) then
   setenv MANPATH /local/userbin/os/man:$MANPATH
endif

If you don't want to add the User Bin to the front of your path, there are several alternatives. You could append the User Bin to the end of your path, or create a symbolic link to the User Bin directory, or create symbolic links to specific items, or set up aliases to specific items.

If you are using some other shell besides the default csh or tcsh, well . . . you're experienced enough to know what to do. . . .

If you want to set up your own bin and man directories for your own programs and scripts for both SunOS and FreeBSD, note that you can use ~userbin/`uname` in place of /local/userbin/os in your .cshrc and .login files. See the ~userbin directories for a working example of how to support both SunOS and FreeBSD.

CGIs

To use the CGI programs and scripts, access them from this URL:

http://www.rahul.net/cgi-bin/userbin/

If you have your own cgi-bin directory, you could also create symbolic links to specific items in the User Bin cgi-bin directory.

Perl

To specify Perl in executable scripts, start your script with a line like this:

#!/local/userbin/perl

This is equivalent to #!/local/userbin/os/bin/perl, but it leaves more room for command-line options.


a2i User Bin / 15 Sep 2003