UNIX The home directory of the administrator who restarts the Siebel Server

Unix the home directory of the administrator who

This preview shows page 229 - 232 out of 334 pages.

UNIX. The home directory of the administrator who restarts the Siebel Server. Format Clib.chdir( dirPath ) Table 131 describes the arguments for the Clib Change Directory method. Example The following example uses the Clib Change Directory method to change the current working directory of the Siebel application. The default Siebel working directory is SIEBEL_ROOT \bin . For example, if you install the Siebel client in the C:\sea81\client directory, then the default working directory is C:\sea81\client\bin : function Application_Start (CommandLine) { // Start Tracing TheApplication().TraceOn("c:\\temp\\SiebTrace.txt","Allocation","All"); var currDir = Clib.getcwd(); TheApplication().Trace("Current directory is " + Clib.getcwd()); // Create a new directory var msg = Clib.mkdir('C:\\Clib test'); // Display the error flag created by creating directory; // Must be 0, indicating no error. TheApplication().Trace(msg); // Change the current directory to the new 'Clib test' Clib.chdir("C:\\Clib test"); TheApplication().Trace("Current directory is " + Clib.getcwd()); // Delete 'Clib test' Clib.chdir("C:\\"); // Attempting to make a removed directory current gives an Table 131. Arguments for the Clib Change Directory Method Argument Description dirpath The directory path that this method makes current. This path can be absolute or relative.
Image of page 229
Siebel eScript Language Reference Version 8.1, Rev. A C Language Library Reference Clib File and Directory Methods 230 // error Clib.rmdir("Clib test"); msg = Clib.chdir("C:\\Clib test"); TheApplication().Trace(msg); } This example produces the following result: Current directory is D:\sea81\client\BIN 0 Current directory is C:\Clib test -1 Clib Create Directory Method The Clib Create Directory method creates a directory. It returns one of the following values: If successful, then it returns the following value: 0 If not successful, then it returns the following value: negative 1 Format Clib.mkdir( dirpath ) Table 132 describes the arguments for the Clib Create Directory method. Clib Get Current Working Directory Method The Clib Get Current Working Directory method returns the entire path of the current working directory. The default current working directory is the directory in which you install the Siebel application. If a script uses the Clib Change Directory method or a similar method to change the current working directory, then the current working directory returns to the original value after the script finishes. Table 132. Method Arguments for the Clib Create Directory Argument Description dirpath A string that contains a valid directory path. This directory can be an absolute path or a relative path. This method uses this string to create the directory. If you do not specify the dirpath argument, then it creates the directory in the C:\siebel\bin directory.
Image of page 230
C Language Library Reference Clib File and Directory Methods Siebel eScript Language Reference Version 8.1, Rev. A 231 Format Clib.getcwd() Example The following example displays the current directory in a message box. The script then makes the root directory the current directory, creates a new directory, removes that directory, and then
Image of page 231
Image of page 232

You've reached the end of your free preview.

Want to read all 334 pages?

  • Summer '16
  • Oracle
  • Type system, Siebel, Siebel eScript

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes