Sponsored Content
Full Discussion: How do I set the path
Top Forums UNIX for Dummies Questions & Answers How do I set the path Post 302498017 by davcra on Friday 18th of February 2011 05:04:18 PM
Old 02-18-2011
thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Set PATH using a script

I am a corporate user of Solaris ?? I have to write a lot of scripts to do little repetitive actions. To make this easier I would like to set the PATH so that I do not have to type ./ first before the script name. Is there an easy script that will allow me to set this path when I log in??? ... (2 Replies)
Discussion started by: jagannatha
2 Replies

2. Solaris

set path

hi how do i change the default PATH in my system. i log in as root, and i have .profile file in my / directory. ive put the PATH=.:/usr.......... statement, but that doesnt seem to be working i also wanted to know why exactly we need the profile file in etc? (6 Replies)
Discussion started by: strider
6 Replies

3. UNIX for Dummies Questions & Answers

set variable PATH

Hi, i know that this topic discussed for many times but although i had researched them i couldnt succeed in my problem. i am following a step-by-step instruction guide and must do the following: ------------- To ensure access, set the path PATH $ORACLE_HOME/perl/bin:$PATH and set the Perl... (2 Replies)
Discussion started by: merope
2 Replies

4. UNIX for Dummies Questions & Answers

How to set a path for a command?

Hi, I install java at Fedora Core. So to run any java applications i have to write the complety path. For example, /usr/java/jre1.5.0_11/bin/java "javafile" I want to write only "java" but it said "command not found". How i fix this? Thank you very much Lakis (4 Replies)
Discussion started by: Lakis
4 Replies

5. UNIX for Dummies Questions & Answers

how to set man path

hi, I m not able to see manual page of any commmand in my linux system. every time if i m typing $man <comand> it is showing the no manual entry . I think the man path is not set properrly . could any one tell me how to get the man pages location in the system so that i can set it.... (1 Reply)
Discussion started by: useless79
1 Replies

6. UNIX for Dummies Questions & Answers

Set java Path

Hey eveyone, I am new to unix, and I just installed java 6, however it doesn't recognize javac command I tried to set the path such as: set path="/usr/java/jdk1.6.0_06/bin/ but i still got the same error message. any ideas? -andi (1 Reply)
Discussion started by: adtd8
1 Replies

7. Solaris

Not Able to Set the path

Hi, I want to set the path for my application so I am setting the path as below -- PATH=${PATH}:.:/envs/mldev/tools:/envs/mldev/common/tools:${HOME}:/bin/p4v:/usr/j2se:/usr/j2se/bin:/usr/j2se/lib or PATH="\ /usr/bin:\ /usr/sbin:\ /usr/dt/bin:\ ... (7 Replies)
Discussion started by: smartgupta
7 Replies

8. Solaris

How to set path for a command

Hi all, I am trying ping command in SUN v240 server but it is not working but when i am using the full path /usr/sbin/ping <ip address> then it is working. how to set the path of ping command so that by simply typing ping <ip address> it should work ? Plz help me out:( (7 Replies)
Discussion started by: saurabh84g
7 Replies

9. UNIX for Dummies Questions & Answers

PATH set but I can't find where!!!!

Hi, Can anybody help with this? When I log into my user account on my box via ssh and then instantly perform an env command I see that my path has been set as follows: PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin My user account uses the ksh shell. In my home directory there is no... (7 Replies)
Discussion started by: Donkey25
7 Replies

10. UNIX for Dummies Questions & Answers

Path set

Something changed on my unix box. Now when I log in it is showing entire path. It used to show only $ prompt before. I know I need to do something in .profile to show only $ prompt Could you please tell me what I should do, to show only $ prompt. (4 Replies)
Discussion started by: raopatwari
4 Replies
XtResolvePathname(3)						   XT FUNCTIONS 					      XtResolvePathname(3)

NAME
XtResolvePathname - search for a file using standard substitution SYNTAX
String XtResolvePathname(Display *display, String type, String filename, String suffix, String path, Substitution substitutions, Cardinal num_substitutions, XtFilePredicate predicate); ARGUMENTS
display Specifies the display to use to find the language for language substitutions. type filename suffix Specify values to substitute into the path. path Specifies the list of file specifications, or NULL. substitutions Specifies a list of additional substitutions to make into the path, or NULL. num_substitutions Specifies the number of entries in substitutions. predicate Specifies a procedure called to judge each potential file name, or NULL. DESCRIPTION
The substitutions specified by XtResolvePathname are determined from the value of the language string retrieved by XtDisplayInitialize for the specified display. To set the language for all applications specify ``*xnlLanguage: lang'' in the resource database. The format and content of the language string are implementation-defined. One suggested syntax is to compose the language string of three parts; a ``language part'', a ``territory part'' and a ``codeset part''. The manner in which this composition is accomplished is implementation- defined and the Intrinsics make no interpretation of the parts other than to use them in substitutions as described below. XtResolvePathname calls XtFindFile with the following substitutions in addition to any passed by the caller and returns the value returned by XtFindFile: %N The value of the filename parameter, or the application's class name if filename is NULL. %T The value of the type parameter. %S The value of the suffix parameter. %L The language string associated with the specified display. %l The language part of the display's language string. %t The territory part of the display's language string. %c The codeset part of the display's language string. %C The customization string retrieved from the resource database associated with display. %D The value of the implementation-specific default path. If a path is passed to XtResolvePathname, it will be passed along to XtFindFile. If the path argument is NULL, the value of the XFILE- SEARCHPATH environment variable will be passed to XtFindFile. If XFILESEARCHPATH is not defined, an implementation-specific default path will be used which contains at least 6 entries. These entries must contain the following substitutions: 1. %C, %N, %S, %T, %L or %C, %N, %S, %T, %l, %t, %c 2. %C, %N, %S, %T, %l 3. %C, %N, %S, %T 4. %N, %S, %T, %L or %N, %S, %T, %l, %t, %c 5. %N, %S, %T, %l 6. %N, %S, %T The order of these six entries within the path must be as given above. The order and use of substitutions within a given entry is imple- mentation dependent. If the path begins with a colon, it will be preceded by %N%S. If the path includes two adjacent colons, %N%S will be inserted between them. The type parameter is intended to be a category of files, usually being translated into a directory in the pathname. Possible values might include ``app-defaults'', ``help'', and ``bitmap''. The suffix parameter is intended to be appended to the file name. Possible values might include ``.txt'', ``.dat'', and ``.bm''. A suggested value for the default path on POSIX-based systems is /usr/lib/X11/%L/%T/%N%C%S:/usr/lib/X11/%l/%T/%N%C%S: /usr/lib/X11/%T/%N%C%S:/usr/lib/X11/%L/%T/%N%S: /usr/lib/X11/%l/%T/%N%S:/usr/lib/X11/%T/%N%S Using this example, if the user has specified a language, it will be used as a subdirectory of /usr/lib/X11 that will be searched for other files. If the desired file is not found there, the lookup will be tried again using just the language part of the specification. If the file is not there, it will be looked for in /usr/lib/X11. The type parameter is used as a subdirectory of the language directory or of /usr/lib/X11, and suffix is appended to the file name. The %D substitution allows the addition of path elements to the implementation-specific default path, typically to allow additional direc- tories to be searched without preventing resources in the system directories from being found. For example, a user installing resource files under a directory called ``ourdir'' might set XFILESEARCHPATH to %D:ourdir/%T/%N%C:ourdir/%T/%N The customization string is obtained by querying the resource database currently associated with the display (the database returned by XrmGetDatabase) for the resource application_name.customization, class application_class.Customization where application_name and applica- tion_class are the values returned by XtGetApplicationNameAndClass. If no value is specified in the database, the empty string is used. It is the responsibility of the caller to free the returned string using XtFree when it is no longer needed. SEE ALSO
X Toolkit Intrinsics - C Language Interface Xlib - C Language X Interface X Version 11 libXt 1.1.3 XtResolvePathname(3)
All times are GMT -4. The time now is 04:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy