Form6 package doc & unix question

Hi,
I starting to work using Forms6.
Can someone give me some links about Form6 doc about built-in packages (TEXT_IO ...) and other doc . I found PDF file on this site but I cant download them (problem with my navigator i suppose).
I searching a function to load unix environment variable too in forms.
Thanks for your help & sorry for my poor english

eaglelark,
You have two issues here; file names and text file formats for Unix vs PC (there is yet a third for Mac).
1) File names. By default the Finder does not display the file dot suffix (.txt). In the Finder, open the Finder Preferences and click the Advanced tab and there is a check box for "Show all file extensions". If you check that box then you can click each file and change the name. This is fine for a hand full of files, but if you have lots of files then the shell commands can clean up thousands in a few seconds.
2) Text file formats. All three text formats are really the same, but each uses a different character to indicate a line break (a classic example of how history haunts us). BBEdit is still alive and well. BBEdit lite (the freebee version) has been replaced by TextWrangler. If you are at all familiar with BBEdit you will be write at home with TW (pun intended;). I use it frequently and highly recommend it. Both have the option to change the line endings under a convenient pull down menu. Again, if you only have a few files this is certainly the easy way and again a good shell script could do thousands without issue.
So how many files do you need to fix? Is this a recurring issue? If only a few but you have to do it on an ongoing basis I would suggest using AppleScript. It's more approachable than shell scripting and you could create an applet where you drop the files and they get fixed in a flash.
Here's the url to TextWrangler:
http://www.bbedit.com/products/textwrangler/index.shtml
Hope this helps.
Reese

Similar Messages

  • A Unix question: find command

    Hi all,
    Sorry for posting a Unix question here.
    In the following directory I have:
    /opt/SonicSoftware/SonicMQ/samples/TopicPubSub/DurableChat>ls
    DurableChat.class DurableChat.java Readme.txt
    However, if I try:
    /opt/SonicSoftware>find -iname DurableChat.class
    The path can not be found, it just gives me the prompt back; I don't know what the reason is. Any idea?

    I'm just wondering can the symbolic link be the
    reason that class file can not be found (I guess, not
    though, b/c other classes can be found):What do you mean "not found"?
    Do you mean why the find command isn't finding it? Yes, that's why. But now that you know, you can use -follow.
    Or do you mean the VM is unable to find the class at runtime? I'm almost certain the classloader can follow symbolic links in the classpath, so I don't think that's the problem.
    >
    /opt/SonicSoftware/SonicMQ/samples/TopicPubSub/Chat>..
    /../SonicMQ.sh DurableChat -u AlwaysUp
    Exception in thread "main"
    java.lang.NoClassDefFoundError: DurableChat
    Should I change the path that it won't be symbolic
    anymore?Try it and see if it fixes it. I'd be surprised, but you never know. If making it not a link fixes it, then maybe that's what you have to do. If it doesn't fix it, then you know you have to look somewhere else.

  • Simple Java Command-Line on Unix Question

    From the windows shell, the following command works fine:
    java -classpath MyJar.jar;. Test
    The class Test, in the current director, depends on files in MyJar.jar. However, when I open up the cygwin bash shell and try to execute the same command, I get this error:
    bash: /usr/bin/Test: No such file or directory
    It appears it's looking for Test in /usr/bin as opposed to in the current directory. Why is this happening and how can I get this to work in bash?
    I know it's kind of unix question, but I figured some one here could help.
    TIA,
    John

    How can I use aboslute classpaths within bash. For
    example, what it the bash equivalent of the
    following:
    java -classpath C:/Java;C:/Java/MyJar.jar Testjava -classpath /the/path/to/your/Java:/the/path/to/your/MyJar.jar Test
    Normally you will be using things relative to your home directory so yo can use
    java -classpath ~ /the/relative-path/to/your/Java:~/the/relarive-path/to/your/MyJar.jar Test
    or
    java -classpath $HOME/the/relative-path/to/your/Java:$HOME/the/relative-path/to/your/MyJar.jar Test
    Please don't use these blindly. Spend some time (half a day say) looking at the bash shell!

  • How compile and run a project or package in Unix environment?

    I write an application of java package using Jdeveloper tool. The first statement in each program is "package packgename". How can I compile this project or package in Unix command line? If I compile each program in the package, then error msg will show when one program reference another program.

    The first statement in each program is "package packagename".Then your java files must be in a directory called "packagename". Let's say this packagename directory is in your /source/java directory, then when you compiling, you need to do:
    cd /source/java/packagename
    javac -classpath /source/java OneOfYours.java
    and it should then compile.
    --lichu                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Anyone know of a good unix forum so i dont have to ask unix questions here?

    Anyone know of a good unix forum so i dont have to ask unix questions here?
    and how bout a good unix tutorial?

    what is solaris dev?
    What's wrong with asking unix questions. Anyways,if
    you go to the sun home page http://www.sun.com I
    think
    there is a solaris dev connection.
    What I meant was the solaris developer connection.
    Solaris is Sun's version of unix. just like this forum is part of the java developer connection I'm sure that they have a forum for unix.

  • "Batch" type script - maybe generic UNIX question!

    Hey peeps,
    We just set up an email filter on Solaris 9, which has 20MB of configuration files that need backing up on a regular basis. What I would like is a short executable script which does the following:
    tar -cf the config files into a tar file, named conf-backup-DATE.tar with todays date.
    open an ftp connection, with a specified username and password
    "put" the tar file on the ftp server
    disconnect from the ftp server
    I think this is more of a generic UNIX question than a Solaris question, but I don't know any more about UNIX than I do about Solaris anyway!

    Your script defines functions which will enable you to invoke the backup. But this script only defines functions. You need to invoke them for your backup to work. The sample invocation can look like this (CODE NOT TESTED!!!):
    Setup
    Initialize
    Gethottblspace
    BeginHotbackup
    Best Regards
    Krystian Zieja / mob

  • Unix question

    i could not see a unix section so i am asking this here , in ftp
    what does the following mean
    quote site CYL LR=50 REC=FB PRI=50 SEC=15 BLOCKS
    LR, REC, PRI, SEC, what do they mean

    Google is a much better site for random non-Oracle questions
    https://www.google.com/search?q=LR+REC+PRI+SEC
    Seems to be related to IBM mainframes
    http://www.sc.edu/ardc/docs/ftpbatch.htm
    http://www.ibm.com

  • Split Directory Packaging and Deployment Question

    Hello Rob Woollen and All,
    I have a question about packaging and deployment with the "split directory structure"
    in WebLogic Server 8.1.
    Specifically, how does one go about deciding which classes to put in myEnterpriseApp/myWebApp/WEB-INF/classes,
    versus myEnterpriseApp/myEjbModule, versus myEnterpriseApp/APP-INF/classes?
    I think the answer to the first part is easy enough: if there are classes depended
    on by, say, the servlets in a web app, but not depended on anywhere else in the
    enterprise app, then those classes should go in WEB-INF/classes.
    It's the other part of the question that gives me trouble. I use local interfaces
    on my session beans. Let's say I have a domain object class returned from a session
    bean method and depended on by the web app. If I put that domain object class
    under myEnterpriseApp/myEjbModule, then the web app can see it by virtue of the
    classloader arrangement.
    But the wlcompile Ant target supposedly compiles stuff to build/APP-INF/classes.
    What stuff? How does it decide? I haven't experimented and empirically observed
    yet, but I couldn't find the answer in the documentation and tutorials. Is it
    looking for java source files under src/myEnterpriseApp but not under myWebApp
    or myEjbModule? In general, does BEA have any recommendations in this area?
    Thanks,
    Randy

    "Randy Stafford" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi Mark,
    Thanks for the reply. I don't have 8.1 installed yet, so I can'tempirically
    observe the example's behavior. But I downloaded the example andinspected the
    code. It answers some, but not all, of my questions.Where to start.
    In 8.1 we have made optimizations to J2EE packaging. Mostly this is about
    not having to use manifest classpath's to do sharing of of common classes.
    MF Cp's are a pain to configure. You put your classes in one location in
    the ear and then EVERY module has to have a MF CP entry pointing to that
    location, and then you actually have N number of classes loaded per module.
    The mechanism to share classes across all modules is APP-INF/lib and
    APP-INF/classes. The benefit is that APP-INF is shared across all modules.
    So to your question below you could just put it in the EJB module, BUT if
    you have mutliple EJBs that you split into seperate modules your back tot
    the same issue. So APP-INF is just the simplist solution over-all.
    Split-dir is a specified way to lay out disk your src files
    Split-dir
    From code inspection, it looks like the JSP and EJB (therefore the web appmodule
    and EJB module) both depend on the AppUtils class, which is not inAPP-INF, but
    rather in a directory under the enterprise app directory that does notrepresent
    a web app module or EJB module. In the build file's compile target, is itthe
    wlcompile task invocation that causes compilation of AppUtils.java? Or isit
    the ant task invocation (with "build.appStartup" as the value of thetarget attribute)
    that causes compilation of AppUtils.java due to the dependency ofApplicationStartup
    on AppUtils? And what subdirectory of the build directory doesAppUtils.class
    end up in?
    Why not just put AppUtils.java in the EJB module? Both dependent moduleswould
    still be able to see it by virtue of the classloader arrangement. Doesputting
    it in outside of all dependent modules represent a convention that BEArecommends?
    >
    Finally, why not put applicationresource.properties in the same place asits user
    AppUtils.java?
    Thanks,
    Randy
    "Mark Griffith" <[email protected]> wrote:
    Randy:
    (Rob may post later, but here is my take)
    "Randy Stafford" <[email protected]> wrote in message
    news:[email protected]...
    Hello Rob Woollen and All,
    I have a question about packaging and deployment with the "split
    directory
    structure"
    in WebLogic Server 8.1.
    Specifically, how does one go about deciding which classes to put inmyEnterpriseApp/myWebApp/WEB-INF/classes,
    versus myEnterpriseApp/myEjbModule, versusmyEnterpriseApp/APP-INF/classes?
    I think the answer to the first part is easy enough: if there are
    classes
    depended
    on by, say, the servlets in a web app, but not depended on anywhereelse
    in the
    enterprise app, then those classes should go in WEB-INF/classes.
    It's the other part of the question that gives me trouble. I use localinterfaces
    on my session beans. Let's say I have a domain object class returnedfrom
    a session
    bean method and depended on by the web app. If I put that domain
    object
    class
    under myEnterpriseApp/myEjbModule, then the web app can see it by
    virtue
    of the
    classloader arrangement.
    But the wlcompile Ant target supposedly compiles stuff tobuild/APP-INF/classes.
    What stuff? How does it decide?wlcompile has a module factory. If a directory is claimed by a module
    factory then it is compiled by that specific module compiler. The rules
    for
    module definition follow the same J2EE formatting rules.
    So:
    /myejb/
    would be identified as a ebj module by:
    */myejb/meta-inf/ejb-jar.xml
    */myejb/myejb.ejb (EJBGen file)
    then src files (*.java) will be compiled to
    $BUILD_DIR/myejb/
    /myweb/
    would be identifid as a web module by:
    */myweb/WEB-INF/web.xml
    Also for webapps
    /myweb/WEB-INF/src/*.java
    will be compiled ot
    $BUILD_DIR/myweb/WEB-INF/classes
    We choose WEB-INF/src following the struts precedence.
    So a plain old module that has noting but .java files in it will go to
    $BUILD_DIR/APP-INF/classes
    If you have a jar of classes that you need to share across the entire
    ear,
    you would check it into your src tree at:
    $SRC_DIR/APP-INF/lib/mycommon.jar
    You can check out an example at:
    $BEA_HOME/weblogic81/samples/server/examples/src/examples/splitdir/helloWorl
    dEar
    Hope this helps.
    cheers
    mbg
    I haven't experimented and empirically observed
    yet, but I couldn't find the answer in the documentation and tutorials.Is it
    looking for java source files under src/myEnterpriseApp but not undermyWebApp
    or myEjbModule? In general, does BEA have any recommendations in thisarea?
    Thanks,
    Randy

  • CC 2014 package folder fonts question

    I'm in CC 2014 I had a client send me a package with all links and fonts, when I open  the .indd file inside the main folder of the package I get the update links? box. Once the links update I get the Typekit dialogue box which shows I have 4 missing fonts ( no matching fonts in Typekit. When I click Find Font I see the orange symbols with the missing font but I already know that the missing fonts are NOT on my computer ( I have a Mac) But the fonts are in the fonts folder within the package. I also see ( in the dID font drop down, the fonts missing are in parenthesis.
    SO my questions here are as follows:
    do I ALWAYS need to EXTRACT fonts from the fonts folder in the package and place in my computer when I have this situation?
    R

    Make sure the name of the fonts folder in the package is Document Fonts and ID should automatically use them without other intervention with a few exceptions. First, it doesn't work with Type 1 fonts. Second, Mac format fonts are not cross-platform compatible, so .dfont or Mac TrueType will not work on Windows.

  • Using Packages in Unix

    I have many class files that I have been developing in a Windows environment, and I have just recently moved them to a UNIX environment and when I did the package statements are being ignored. When compiling the .java files the .class files are being put in the current directory and not the directory specified by the package statement. I am using jre 1.3.1 environment. Does anyone know why the package statements are not being recongnozed.
    Thanks
    Shawn

    in unix the the first line in your java file should be like
    packnix com.acme.myproggy;
    So, if you want cross platform, do
    #ifdef WIN32
    package com.acme.myproggy;
    #else
    packnix com.acme.myproggy;
    #endif
    NOTE: it's surprising that sun wouldn't have made this cross platform, as well.
    Sorry, but i'm just feeling silly.

  • Odi  packages with unix code

    Hi Experts
    I have a set of Odi Packages and want to run this code in an unix server.
    Can you Please guide me in the same.
    Edited by: 945367 on Jul 15, 2012 10:52 PM

    Hi Sutirtha, any documents on how to install ODI agent in Unix box?
    Edited by: user13599912 on Jul 19, 2012 11:48 AM
    Edited by: user13599912 on Jul 19, 2012 11:49 AM
    Edited by: user13599912 on Jul 19, 2012 11:49 AM

  • Very general doc class question

    Hi
    Just wondering how you decide what functions should be in a doc class, and what ones should have their own class?  Are there any rules of thumb, or specific rules?
    Thanks

    there's no one answer to that and there's no simple answer to that.  you're actually asking a fairly profound question that would probably generate varying answers from knowledgeable people.
    i doubt you really want this but here's a start if you're interested in oop class architecture design:  http://www.codeproject.com/Articles/22769/Introduction-to-Object-Oriented-Programming-Conc ep#Architecture

  • Oracle + Unix question , Error validation for SQL statements in co process

    Hi,
    If I use co process in a shell script , what is the best way to do the error validation of the execution of any sql statements . I was trying to change the following code to make use of co process concept. When I tried echo $? after the execution of a "wrong statements"
    it is still giving Zero output ( meaning success)
    <<<<<<<<<<<<<<<<<<<<<<<<<<<
    cat ${CFG_DIR}/srs_indx.lst | egrep -v '^#' | egrep -v '^[    ]*$' | while read x
    do
    echo " Processing values :: pre $pre tbl $tbl indx $indx tblspc $tblspc cols $cols param $param" >> ${LOGS_DIR}/srs_indx.log
    sqlplus ${BIZSTG} << EOT >> ${LOGS_DIR}/srs_indx.log
    set verify on timing on term on echo on feedback on serveroutput on
    WHENEVER SQLERROR CONTINUE
    drop index $indx;
    WHENEVER SQLERROR EXIT FAILURE
    alter session set query_rewrite_enabled = true;
    create $pre index $indx on $tbl ($cols)
    tablespace $tblspc
    $param;
    exit
    EOT
    RC=$?
    if ( test $RC -ne 0 )
    then
         ERR_MSG="ERROR in creating index $indx for table $tbl from srs_indx.ksh of $ENVIR : $APP by `whoami`@`hostname` on `date` "
         echo $ERR_MSG >> ${LOGS_DIR}/srs_indx.log
         process_warning ${LOGS_DIR}/srs_indx.log
         exitstat=1
    else
         echo "$indx created at `date`" >> ${LOGS_DIR}/srs_indx.log
    fi
    done
    >>>>>>>>>>>>>>>>>>>>
    Any help will be appreciated .
    with thanks and regards
    Ranjeesh K R

    Hi,
    Thanks for the response, I guess people misunderstood my question .
    My question was about "error handling in case of CO PROCESS". For those who don't know about this, in case CO PROCESS you just need to login once to Oracle. In my above code It is logging in & out for each entry in the list. CO process statements may look Similar to SQL statements in pro*C. In PRO*C we use EXEC, but here print -p statements..
    a sample is given for those who are new to co process.
    sqlplus -s /nolog |& # Open a pipe to SQL*Plus
    print -p -- 'connect user/password@instance'
    print -p -- 'set feed off pause off pages 0 head off veri off line 500'
    print -p -- 'set term off time off'
    print -p -- "set sqlprompt ''"
    print -p -- "select sysdate from dual;"
    read -p SYSDATE
    print -p -- "select user from dual;"
    read -p USER
    print -p -- "select global_name from global_name;"
    read -p GLOBAL_NAME
    print -p -- exit
    echo SYSDATE: $SYSDATE
    echo USER: $USER
    echo GLOBAL_NAME: $GLOBAL_NAME
    But I got stuck during error handling of these SQL statements, especially the $? / $* returns 0 even after an erroneus execution.
    Regards

  • ESS Business Package role authorization question

    Hi,
    We are going live in a few weeks with the ESS BP in EP7 SP12.  All we are planning to use right now are two of the Benefits webdynpro's (Benefits Participation Overview and Enrollment). 
    My question is this; Do I have to give all users the Employee-Self-Service role or can I simply just add the everyone group to the two benefits webdypro's?
    Any insight to this would be greatly appreciated.
    Regards,
    Rick
    Points always awarded for helpful answers!

    Rick,
    best solution would be to create a new role (for example "myESS") and add the two iViews to it. then assign the role to a group that includes all employees (I wouldn't use "Everyone"...). This keeps you the best flexibility and structures your content from the beginning.
    kr, achim

  • Creating Packages Recource Name Question

    I am trying to create a package combining the data grim a LightSwitch control. I have the following code in my application folder. but I don't know what to put in for the string ResourceName. I am trying to add this data to the excel Zip file in a way that
    it "creates" the table overwriting the current sheet1 and replacing it with one that has the Data From the Entity/Silverlight screen's grid which is filter by another table selecting the orders for a person. I get a Null not handled exception I believe
    because I am not address the resource right. Also were am I supposed to put the reference to the filtered Grid I am trying to access I am very new at building packages this way. also note there is code to Open(process Start) the other excel file but I can't
    seem to place it so it fires after the code for building the package runs this is necessary because the Process started package has links to the book1 I am trying to build.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.IO.IsolatedStorage;
    using Microsoft.LightSwitch;
    using Microsoft.LightSwitch.Security.Server;
    using Microsoft.LightSwitch.Framework.Server;
    using System.IO;
    using System.IO.Packaging;
    using System.Reflection;
    //added this to allow the process statement that opens excel
    using System.Diagnostics;
    using System.Linq.Expressions;
    namespace LightSwitchApplication
    public partial class ApplicationDataService
    private string _PackageName = "Book1.xlsx";
    partial void Commands_Inserting(Command entity)
    switch (entity.Argument)
    case "CreateDocument":
    //This opens the excel file from the current directory
    Process.Start("MAR mod1.1.xlsx");
    entity.Result = _PackageName;
    //Package, file name and Uri location
    Package package = Package.Open(_PackageName, FileMode.Open);
    Uri uri = new Uri("/xl/worksheets.sheet1", UriKind.Relative);
    //Content Type for Each Part
    PackagePart DocPart = package.CreatePart(uri, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml");
    string ResourceName = "Book1.xlsx.zip/xl/worksheets/sheet1.xml";
    Assembly ResourceAssembly = Assembly.GetExecutingAssembly();
    using (Stream DocPartStream = DocPart.GetStream(FileMode.Create))
    using (Stream DocSourceStream = ResourceAssembly.GetManifestResourceStream(ResourceName))
    DocSourceStream.CopyTo(DocPartStream);
    package.CreateRelationship(uri, TargetMode.Internal, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", "rID1");
    package.Close();
    break;
    Exception Detail
    System.NullReferenceException was unhandled by user code
      HResult=-2147467261
      Message=Object reference not set to an instance of an object.
      Source=Application.Server
      StackTrace:
           at LightSwitchApplication.ApplicationDataService.Commands_Inserting(Command entity)
           at LightSwitchApplication.ApplicationDataService.DetailsClass.__Commands_Inserting(ApplicationDataService d, Command e)
           at Microsoft.LightSwitch.Details.Framework.Server.EntitySetEntry`2.Microsoft.LightSwitch.Details.Framework.Server.IEntitySetEntry.InvokeInserting(IDataService dataService, IEntityObject entity)
           at Microsoft.LightSwitch.ServerGenerated.Implementation.DataServiceImplementation`1.<>c__DisplayClass40.<PerformPreEvent>b__3a(IEntitySetEntry entitySetEntry)
           at Microsoft.LightSwitch.ServerGenerated.Implementation.DataServiceImplementation`1.<>c__DisplayClass43.<CallPrePostUserCode>b__42()
           at Microsoft.LightSwitch.Utilities.Internal.UserCodeHelper.CallUserCode(Type sourceType, String methodName, String instance, String operation, ILoggingContext context, Action action, String additionalText, Func`1 getCompletedMessage,
    Boolean tryHandleException, Boolean swallowException, Exception& exception)
      InnerException:

    Thanks I have been doing research watching following video and this is my updated code in application.cs. I got the resource into my project manually by copying the whole zip file contents into the project file and then in file view I deleted and rebuilt
    the xml resource sheet 13 making it an embedded resource and left the rest of the package alone.
    video
    //This is what I have on the ApplicationData.cs end of things
    private string _PackageName = "Book1.xlsx";
    partial void Commands_Inserting(Command entity)
    switch (entity.Argument)
    case "CreateDocument":
    //This opens the excel file from the current directory
    Process.Start("MAR mod1.1.xlsx");
    entity.Result = _PackageName;
    //Package, file name and Uri location
    Package package = Package.Open(_PackageName, FileMode.Open);
    Uri uri = new Uri("/xl/worksheets.sheet13", UriKind.Relative);
    //Content Type for Each Part
    PackagePart DocPart = package.CreatePart(uri, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml");
    string ResourceName = "Patient Records.Server.Package.xl.worksheets.sheet13.xml";
    /*"Book1.xlsx/xl/worksheets/sheet1.xml";*/
    Assembly ResourceAssembly = Assembly.GetExecutingAssembly();
    int buffer;
    using (Stream DocPartStream = DocPart.GetStream(FileMode.Open))
    using (Stream DocSourceStream = ResourceAssembly.GetManifestResourceStream(ResourceName))
    buffer = DocSourceStream.ReadByte();
    while (buffer != -1)
    DocPartStream.WriteByte((byte)buffer);
    buffer = DocSourceStream.ReadByte();
    package.CreateRelationship(uri, TargetMode.Internal, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet", "rId13");
    package.Close();
    //opens the new package
    Process.Start("Book1.xlsx");
    break;

Maybe you are looking for