Set a permanent PATH

Hi all,
I am under Sun Solaris 11 (Express 6/05), and I want to set a permanent PATH, for all user of the computer (When I reboot the computer, I wan't to have these path already set).
But I don't know what is the file where I can set that.
I wan't to add these path:
/opt/csw/bin -> to $PATH
/opt/csw/man -> to $MANPATH
Thanks.

Hi Folk,
I am a newbie in Sun Solaris 10 x86. Recently I installed gcc and tried to add the global path in /etc/profile. But it shows me the some sort of error message as below
# . /etc/profile
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
PATH=/usr/sbin:/usr/bin:/usr/sfw/bin: is not an identifierMay I know how do I solve this problem? Please advise....

Similar Messages

  • How to set the report path in a model plugin

    I am trying to figure out how to set the report path in a process model plug-in. I can seem to figure out how to get access to it. It seems like this would be a reasonable thing to do since the plug-ins are for results processing. Does anyone know how to do this? We typically use the Sequential process model but I am trying to keep my plug-in as independent of that as possible. 
    Thanks.
    Solved!
    Go to Solution.

    If I understand, you want your plug-in, when enabled, to alter the settings of any other instances of the NI report plug-in such that their reports share the same directory as your plug-in is configured to use.
    If so, your plug-in can access and modify the settings of all other plug-in instances. All instances are passed to all plug-in entries point in the plugins array sub-property of the ModelConfiguration parameter. You can iterate through this array. Any element of the array with a Base.SequenceFilename equal to "NI_ReportGenerator.seq" is an instance of the NI report plug-in. Its report options are stored in the element under PluginSpecific.Options.
    You can change the report options to what ever you want. Note that the ReportOptions model callback is called from the Initialize model-plugin entry point, so you might want to ensure that your changes are applied after that, so they aren't overwritten. To do that, you could make your changes in the the Initialize entry point of your plug-in, and ensure that your plugin runs last. To make it run last, you could set the FileGlobals.ModelPluginComponentDescription.Default.Base.RunOrder in your plug-in file to a value greater than 0, such as 1.0 (see TestStand Help>>Fundamentals>>Process Model Architecture>>Process Model Plug-in Architecture>>Structure of Plug-in Sequence Files>>Model Plug-in Entry Points>>Order of Entry Point Execution at Run Time).

  • How to set default file path for save

    Hello all,
    I'm currently blocked on the below issue and is hoping to gain your help and insights.
    We have recently upgraded to InDesign CS6. Now when an INDD file created in an older version of INDD is opened in CS6, all the save dialogs would not default to the location of the original INDD file. Though if the same file is opened in the version of InDesign that created it, the save dialog goes to the proper location by default.
    Debugged using our custom plugin as a gate way, and found out that after InDesign CS6 performed the document upgrade/convert, the database for the converted document loses file information. i.e.  IDataBase::GetSysFile() returns nil. I think we can figure out some way to get the original file path. For example, we can intercept "kAfterOpenDocSignalResponderService", and get the original file path of the opened file from IDocumentSignalData. Though I haven't yet able to figure out a safe way to set this file path to the document, so that the save dialogs would by default point at this path.
    Utils<Facade::IWorkgroupFacade>()->InitDocumentAssetManagement(docRef, filePath) seems to do the right thing, but it seems to be quite intruding, and I'm afraid that it is overkilling and will cause bad side effect for the use case I'm looking for.
    So I'm wondering if anyone has any suggestions to achieve this without implementing/overriding the file save dialog.
    Thanks.
    -Jeff

    You should be able to avoid writing your own open-doc trap by using kDocBoss's IOpenedFileInfo to obtain the original file's path. It seems fairly reliable; the only time I've seen it come up empty is for an opened QuarkXPress document.
    I'm afraid I don't know of a sanctioned way to change IDataBase::GetSysFile() without going through the database's SaveAs machinery. Overriding this behavior might only be possible by replacing the regular Save dialog with your own.
    But if InitDocumentAssetManagement() is helping, maybe the workgroup/asset management approach is worth pursuing. Have you tried spying on that call in the debug app? You might be able to isolate and use one of the commands that it's invoking (IAMSPManager::BindAsset() / kSetAssetAttributesCmdBoss?) without all of the side-effects of the higher-level call.

  • How to set the File Path to run a javascript using Plugin Code?

    Hi All,
    Im new to Indesign Plugin Development.Can any one help me out with my problem.
    What i want to do is to run a javascript using Plugin Code.When i went through this forum i was able to find out that i should use the IscriptRunner Class to automate this.I could also figure out that the Member Function to use is "CanHandleFile" &"RunFile".
    The first parameter in CanHandleFile & RunFile Member Function is to specify the path of the JavaScript File i suppose!I could also find out that IDFile has to used to set the file path Information.
    But im clueless how to set the Javascript FilePath using IDFile.Can any one help me how to do this?Any Code Snippets Please?
    Waiting for reply.
    Thanks
    myRiaz

    Hi,  Andreas<br /><br />  Can you explain this in detail? I found it in your post before.<br /><br />  The content of elements are returned through the Characters callback function:<br /><br />From ISaxContentHandler.h:<br /><br />/**<br />        Receives character data<br /><br />The parser will call this method to report each chunk of<br />        character data. SAX parsers may return all contiguous<br />        character data in a single chunk, or they may split it into<br />        several chunks. But all characters in any single<br />        event must come from the same external entity so the<br />        Locator provides useful information.<br /><br />Note some parsers will report whitespace using the<br />        IgnorableWhitespace() method rather than this one (validating<br />        parsers must do so).<br /><br />@param Chars The characters from the XML document.<br />        */<br />virtual void Characters(const PMString& chars) = 0; <br /><br />  What i have done is implement my own SAXContentHandlerServiceBoss, and in my file XXXSAXContentHandler.cpp, I override the fonctions StartElement, EndElement, and Characters() like below: I add the PMString xmlData to collect the file content:<br /><br />class XXXSAXContentHandler : public CSAXContentHandler<br />{<br />void XXXSAXContentHandler::Characters(const WideString& chars)<br />{<br />xmlData.Append(chars);<br />}<br /><br />void XXXSAXContentHandler::StartElement(const WideString& uri, const WideString& localname, const WideString& qname, ISAXAttributes* attrs)<br />{<br />xmlData.Append("<"); xmlData.Append(localname); xmlData.Append(">");<br />}<br />void XXXSAXContentHandler::EndElement(const WideString& uri, const WideString& localname, const WideString& qname)<br />{<br />xmlData.Append("</"); xmlData.Append(localname); xmlData.Append(">");<br />}<br /><br />}<br /><br />and in my program, I use the code below to call the fonction I overrided, but I dont know how I can get the String xmlData I defined in the XXXSAXContentHandler.cpp<br /><br />InterfacePtr<IK2ServiceRegistry> serviceRegistry(gSession, UseDefaultIID());<br /><br />InterfacePtr<IK2ServiceProvider> xmlProvider(serviceRegistry->QueryServiceProviderByClassID(kXMLParserService, kXMLParserServiceBoss));<br /><br />InterfacePtr<ISAXServices> saxServices(xmlProvider, UseDefaultIID());<br />InterfacePtr<ISAXContentHandler> saxHandler(::CreateObject2<ISAXContentHandler>(kXXXSAXContentHandlerServiceBoss));<br />saxHandler->Register(saxServices);<br />bool16 parseFailed = saxServices->ParseStream(readStream, saxHandler);<br /><br />Can you give me any help?<br /><br />Thanks and regards!

  • How to set default file path while downloading alv output

    Hi,
    Can anyone tell me that how to set default file path while downloading the ALV output to system using Local file button on tool bar.
    Please look below screenshots:
    Kindly help me resolve it.
    Thanks in advance.
    Regards,
    Ashutosh Katara

    This information initial value is (maybe) stored in Windows Register (register.exe) at Software\SAP\SAPGUI Front\SAP Frontend Server\Filetransfer -> PathDownload, you can read it thru class CL_GUI_FRONTEND_SERVICES method GET_UPLOAD_DOWNLOAD_PATH and update it thru method REGISTRY_SET_VALUE. (Else there may be some parameter ID to force data, but I'm no longer sure)
    Regards,
    Raymond

  • How to set the file path dynamically based on sytem, username, and date

    Hi All,
    My requirement is upload the data into one  structure like xyz that is related to t.code MCSZ.
    file will be in  UNIx SERVER .
    PATH IS: /sapif
    file name is xy789 load .txt
    I have  to write code in one user-exit
    how can i set the file path for this.
    shall i put hard code file path?
    because i have to writecode in user-exit.
    plz tell me how to set the file path based ons syetem, username, date
    Thanks in advance
    Ram.A

    Concatenate the field SY-SYSID, SY-UNAME and SY-DATUM for the file path

  • Sun ONE Studio 4 aka Forte: How to set the output path for classes ?

    Help !
    Beginner's question:
    Sun ONE Studio 4 aka Forte:
    How to set the output path for classes ?
    As default, the class files are created in the same directory as the
    sources.
    In opposite, both JBuilder and Together support that there is a tree
    with the sources and another tree with the classes.
    The first answer I got was "not possible with Forte, but just if you write your own "ANT Build script" !
    a) Please point me to a ready-to-use ANT script for this purpose, if such is available
    b) Is using ANT instead of the MAKE as comfortable ? Besides the separation of sourcecode and classes, I would like to keep everything else to be the same, i.e. I don�t want to edit the ANT file if I enlarge the project by directories or files.
    Tia
    Sincerely
    Rolf

    You can set S1S's options to place newly created .class files in a specific location.
    Identify the compiler that is being used - Open the S1S's Tools/Options window, expand Editing and select Java Sources. Note the Default Compiler value. (If it's one if the Ant options, you use Ant to specify this option, not S1S.)
    Open the S1S's Tools/Options window, expand Building/Compiler Types and select the appropriate compiler.
    The Properties tab of the compiler has the property Target, which sets the filesystem where the compiler output is directed. If you choose <not set>, the .class files are written to their source directory.
    When you set the Target, your change affects all classes that use this compiler.
    Very few options can't be set in S1S; the challenge is finding out where they're set!

  • Problems setting the recording path

    I have recorded hundreds of songs successfully by setting the recording path to the project folders on my external hard drive. Now whenever I open a new project and go to record an audio file it ask me every time to set the recording path. I pick the location on my external, click save and then hit the record button and then the whole process starts all over.

    does your drive has a Sleep mode (or something like that) preference?that's after a certain time of inactivity...goes to sleep
    Might be that..
    A

  • Set default directory/path for SaveAs Dialog using WPG_DOCLOAD

    Hi, im trying to set the default directory/path for the SaveAs Dialog called by wpg_docload.download_file.
    I'm not able to find where I can specify the default path.
    Is it something like "htp.p('Content-Disposition: attachment; path=:PX_OUTPUT_DIR" ?
    Thx for your help !
    Here's a part of my code
    owa_util.mime_header( NVL(mime,'application/octet'), FALSE );
    htp.p('Content-length: ' || length);
    htp.p('Content-Disposition: attachment; filename="'||substr(fileName,INSTR(fileName,'/')+1)|| '"');
    owa_util.http_header_close;
    wpg_docload.download_file( lobLoc );
    /*********************/

    I don't believe you're allowed to set the directory path in the Content-Disposition (or any other) header. More accurately, you can set path in the filename, but browsers don't pay any attention to that, they only look at only the terminal filename.
    <p>According to RFC 2183, browsers are supposed to ignore any path information sent with the filename. Even though it's dated 1997, I believe this RFC is still in effect.
    <p>This was done as a security precaution against malicious web apps that might try to download into a system directory or other dangerous place. Also, browsers (usually) allow users to specify their own default download directories. Further, even if you could specify the path, you'd have to do it for any and all filesystems (Linux, Mac HFS, Mac OSX, Windows, etc etc).

  • How to set the default path of the tag while working with xtype "tags"

    Hi,
    I am working with xtype tag, where i have to select tags in the dialog box. Everything is fine, but my requirement is set the tags path.
    Currently it is defaulted to /etc/tags and showing all the tags. Instead i have show only the single tag path that is required for me.
    Is there any way where i can set the root path and set to my custom tag path like: /ets/tags/mycustomtags/
    Thanks for the support in advance
    Riyaz

    Hi,
    Use namespaces property to set the path. But it only works with namespaces that you directly creates under /etc/tags
    so for example if you want to use or show two namesapces /ets/tags/mycustomtags & /ets/tags/mycustomtags1
    then set this property as
    namespaces       string[]             mycustomtags  
                                                       mycustomtags1
    and if you have only want to show one then
    namespaces       string[]             mycustomtags
    I hope it will help you.
    Also refer http://dev.day.com/docs/en/cq/current/widgets-api/output/CQ.tagging.TagInputField.html
    Let me know if you need more information.
    THanks,
    Pawan

  • Trying to launch another profile, get: "Impossible to find the executable file. To fix this, set a valid path in the options window"

    When I try to launch another profile in firefox, I get this message: [JavaScript Application] Impossible to find the executable file. To fix this, set a valid path in the options window.

    Having this problem with FF21 Beta1, add-on version 1.5.0.2 on Win7 immediately after upgrading FF.
    I would try to make a shortcut to the other profile as you suggested, but I honestly don't even know where the file is, if its a separate config or another executable all together.

  • Setting java.library.path property in java code

    Hi,
    i'd like to set java.library.path property in java code to load a dll-library. I know that a funtional way is to run JVM with parameter -Djava.library.path=c:\tmp, but I need it do it IN CODE.
    I'v tried this:
    System.setProperty("java.library.path", "c:\\tmp");
    System.loadLibrary("libapr");The library 'libapr.dll' is situated really in 'c:\tmp' directory, but I get 'java.lang.UnsatisfiedLinkError: no libapr in java.library.path' exception.
    It seems like the already running java program doesn't use actual java.library.path set in previous step.
    Is there any possibility to set java.library.path property in java code?
    Thanx
    Brny

    I think the following code should work:
    // Reset the "sys_paths" field of the ClassLoader to null.
              Class clazz = ClassLoader.class;
              Field field = clazz.getDeclaredField("sys_paths");
              boolean accessible = field.isAccessible();
              if (!accessible)
                   field.setAccessible(true);
              Object original = field.get(clazz);
              // Reset it to null so that whenever "System.loadLibrary" is called, it will be reconstructed with the changed value.
              field.set(clazz, null);
              try {
                   // Change the value and load the library.
                   System.setProperty("java.library.path", "c:\\tmp");
                   System.loadLibrary("libapr");
              finally {
                   //Revert back the changes.
                   field.set(clazz, original);
                   field.setAccessible(accessible);
    The idea is to make the static field "sys_paths" null so that it would construct the paths from the changed value.

  • ITunes Music Folder will not play from external hardrive after setting the correct path

    I've decided to try and create some more space for my music collection and decided to keep my entire iTunes library on a portable external hardrive. I researched how to do so online and was successful at first. I set the correct path from the advanced menu so that iTunes would recognize and save music to the folder on my HD. It worked fine last night, but today when I try and access it I get the, "could not be used because the original file could not be found. Would you like to locate it?" error message when I try and play a song anywhere in iTunes. I then tried to import the library from my external hardrive and then everything was duplicated. I some how reversed the duplication by using time machine and then redownloading iTunes, which is a riduculous story in itself, but thankfully, I am back at square one.
    I have over 24,000 songs with a majority of them rated as well as playlists I do not want to lose. I don't understand why it will not play the songs. Can anyone help me?

    If you are going to have the library on an ext HD the transfer the entire iTunes folder. This way you capture all the files - not just the music.
    Launch iTunes with the 'option' key down and follow the dialog - tell iTunes to open the iTunes library file on the ext HD and things should be ok.
    MJ

  • OK - I can set the Class Path. Now - what else?

    Dear all,
    I read with interest the many posts in this forum debating whether to use an IDE for your Java development, or to use some other (more primitive????) means of crafting code - notepad for example. As I understand things:
    If I use notepad and the command line to build, run, and compile my classes, then I will hopefully come to learn and understand how to set my class path correctly, and gain an insight into the environment in which I work - an insight moreover, that I might not happen upon if I leave an IDE to do all this for me. Ok - fine, I can use my IDE, but also do some testing on the command line to fill this gap in my knowledge.
    If I use an IDE to help me build my UIs, then it is more than likely that I will progress through life without a profound knowledge or understanding of layout managers, cell renderers, event handelers etc. OK - this is fine too, and I have decided to craft my UI 'by hand' because I want a broad appreciation of Swing and anyway, after the initial pain (akin, I imagine, to child birth), it's not so bad really.
    Now I feel I am cooking. I understand my environment, and the more esoteric features of Swing; I use my IDE to fashion my code - it's cool and helps me with code completion, and direct access to the API documentation as I type, and it does a whole bunch of refactoring stuff too.
    I feel as if I am getting the best from both worlds now.
    Would anyone argue against an approach such as this?

    ChuckBing wrote:In general, a good approach. You're correct, using the IDE will make life easier.
    What you have to watch out for is using it as a crutch. If it ever does something that you can't do, or don't know why it's doing "that", then you aren't learning. The next time "that" has to be done, if the IDE isn't available to do "that" for you, you're dead.
    Then you'll be posting the "how do I do that outside the IDE" question here.
    Make a promise to yourself: You'll learn why and what the IDE does, and read the API's - A lot!Yes, I agree Chuck. I am not comfortable with a tool doing something for me which I don't understand; which is one of the reasons I build the UIs by hand.
    I also become somewhat downcast when I see people in the forums requesting code so they can simply paste it into their aplpications. Learning can be painful, but it is a necessary pre-requisiite to knowledge in my view - so copy/paste can be a most harzardous thing.
    I am hoping this thread will be a small guide to new folk.
    Thank you for your input,
    Steve

  • Set audio record path

    setting audio record path?

    Let me guess - your tempo's set to 120 and 4/4 time, right?
    The limit is on the number of quarter notes Logic can handle (8550).
    Set your song length to max (2158), reduce your tempo, and/or adjust your time signature. Example, temp 60, 4/8 time will give you 2hrs 22minutes of recording.
    good luck

Maybe you are looking for

  • Where did the calendar list go in the day view?

    In Yosemite, it has happened - the list view is gone from the day view in calendar. iOS7 took it away, and they restored it because of popular demand. Let the requests begin to restore it in OS X calendar. You can never see all the appointments in a

  • Ipad 2 16 GB or 32 GB ...

    First of all, sorry for my English ... I am going to buy an Ipad an I need you suggest me which Ipad would be better ... 16 GB or 32 GB ... I don't think to store so many movies or books ... just applications, photos and videos, word documents and ex

  • How to process Idoc status file within Sap?

    Hi All, We would like to process received status file to update the sent IDOC's. Our current setup is that we send/push  the Outbound Idoc to external EDI sub system and pull the status file for processed Idoc from external EDI system to our R/3 serv

  • OFTP_TCP Receiver Adapter locking issue /stopped working

    Hello, OFTP Receiver adapter stopped processing of GOTYPE commands which are used to extract available EDI files from mailbox.All command messages are in 'To Be Delivered' status. As there are no commands reached to mail box all EDI files remians une

  • Attach Secure PDF to email?

    Does anyone know a way to attach a secure (i.e. password-protected) PDF to an email. I've tried using Mail and through gmail, but the thing won't attach. I've secured it through Acrobat (using 9.4.3). I've tried using the attach to email menu option