"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

Similar Messages

  • Installing a generic unix webclient on my MacBook Pro

    Hello,
    I have a small question. I'm trying to install a webclient on my new Intel based MacBook Pro 2.16 Ghz under X11. When I use :source setupunix_3.0.74.bin.sh
    the script starts, but at a certain point it says :
    This application requires a Java Run Time Environment (JRE)
    to run. Searching for one on your computer was not successful.
    Please use the command line switch -is:javahome to specify
    a valid JRE. For more help use the option -is:help.
    Then when I give the instruction: Java -version : it shows
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
    Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
    Am I doing something wrong, is JRE not running or is the generic script not valid for my Mac?
    Maybe I can send an email with the script attached to it to an Unix Guru?
    Thanks for any help
    Jack
    MacBook Pro   Mac OS X (10.4.7)   15", 2.16Ghz Intel Core Duo

    You might want to post your query in the forum for Unix questions:
    http://discussions.apple.com/forum.jspa?forumID=735

  • How to run script in HP -UNIX

    Hi all,
    I am facing problem in running oracle scripts in HP-Unix..
    In nohup option i can`t able to use @ symbol...
    can anyone suggest me how to run ???its urgent
    In solaris i usually run like below
    nohup sqlplus -s data/data @script.sql &
    but i cant do the same in HP-Unix please some one tell me how to run??

    Hello Kirupa,
    this is from the HPUX FAQ, maybe it helps:
    Subject: 8.14 Why can't I type an '@' character?
    If you do a 'stty -a' and you will see that your 'kill' character is
    set to '@'. You need to set your 'kill' character to be something
    other than the '@' character by doing something like 'stty kill '^U''.
    You should add this to your .profile or .cshrc file.
    Kind regards

  • Batching type for the connection (type 9i)

    OracleConnection in Oracle 9i 9.0.1 JDBC Drivers has two new methods setAccumulateBatchResult() and isAccumulateBatchResult(). JavaDoc description is very brief but it mentions type 9i batching (accumulating premature batch flushing).
    I have several questions regarding these methods:
    Are these methods intended for public use?
    If yes then why these methods are not available in the interface oracle.jdbc.OracleConnection but only in the (deprecated) class oracle.jdbc.driver.OracleConnection?
    What is the difference between type 9i batching and pre-9i batching?
    Thank you -- Maxim.

    If you are trying to do this on the internal Superdrive they have problems writing to Dual Layer DVD disks of any make and or type.
    IMHO the DVD drive Apple uses is not very good.
    If this is a fairly new Mac system I suggest you take it to an Apple store and show them that it can't write to Dual Layer DVD discs of any make and maybe they will replace it with on e that will.

  • 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.

  • Get the Type of a generic field at runtime, How to?

    Hello,
    As the topic already says, i need to get the Type of a particular field of a class. This field is declared private and generic. In C# there is a method
    Type Object.getTypeIs there any specific way to do this in Java 1.5?
    Please excuse my poor english.
    Thanks in advance.
    Markus

    McNepp wrote:
    endasil wrote:
    McNepp wrote:
    If you want to know the parametrized type (String in the example), I think there is no way of knowing this in Java 1.5 or Java 1.6, since the parametrized type is erased and not available at run time.The type of a parameterized field is not erased.For most intents and purposes, it is. Type erasure refers to the fact that at runtime, there are not actually multiple class binaries depending on the generic arguments to a class. Therefore, an ArrayList<T> is actually just an ArrayList with no generics.
    Frankly, I don't understand why you insist that the information on generic fields that the OP was asking about is lost at runtime.I wasn't trying to insist that. At the time, I was replying more to Saish and trying to reaffirm that most information about generics is lost at run-time. I mistakenly ignored how you qualified it with "field."
    What you write about instances of generic classes losing their type information is of course correct, albeit not to the point of the original question.Nope, you're right. I was just trying to reconcile the fact that many people get confused that there's any information available at run-time, and so start down the path of thinking that type erasure doesn't exist. But it very much does.
    The original question was about how to obtain the type of a generic field.And I did show in my example that even that is fairly limited, given that if the type is provided by the parameter of the class, it doesn't give you anything useful (I'm not trying to say you said it would!).
    The compiler preservers this information in the class file, so it can be obtained at runtime. Frameworks like JPA put this to use extensively, proving that it is of real value.Definitely. However I don't see this having as much to do with generics as basic reflection functionality. If you can get the type of a field at run-time, you should be able to get the parameters as well! That should in no way belittle its value, though. But I would have guessed (knowing little about) that JPA wouldn't put that to use so much as the type parameters of an accessor return type or mutator argument type. Especially since I thought we'd shown that you would need your fields to be non-private for JPA to be able to gain information about their type.
    Edit: getDeclaredField works fine with private members, and returns the expected "java.lang.String" from jschell's example above
    Edited by: endasil on 28-Apr-2009 10:39 AM

  • Batch or script..plug-in?

    Hopefully somebody can help me with this question!
    Will try to explain it as simple as possible;
    I have a folder with for instance 60 files. In this folder are always three files that I want to combine in one PSD. The three files are bracketed pictures and normally you make an HDR with this. The thing is that I want them NOT to be combined but that the three files stay seperate. This can be done with File- Scripts-Load Files into Stack. So that’s not the difficult part but the difficult part is that I want to do the whole folder automatically.
    In the end 20 PSD’s with all off them three seperate pictures of the bracketing. This is done with a batch or script as I an searching. Does anybody know a good plug-in for this or another program.
    Thank you in advance.

    Could you give this a try?
    It assumes the files are in order.
    // merge images in folder;
    // 2014, use it at your own risk;
    #target photoshop
    // dialog for folder-selection;
    var theFolder = Folder.selectDialog ("select folder");
    if (theFolder) {
    var theFiles = theFolder.getFiles(getSomeFiles);
    // create the psd-options;
    psdOpts = new PhotoshopSaveOptions();
    psdOpts.embedColorProfile = true;
    psdOpts.alphaChannels = false;
    psdOpts.layers = true;
    psdOpts.spotColors = true;
    // the number of files to combine;
    var theNumber = 3;
    // work through files;
    for (var m = 0; m < theFiles.length / theNumber; m++) {
              var thisNumber = m * theNumber;
              var theFile = app.open(File(theFiles[thisNumber]));
    // place;
              for (var n = 1; n < theNumber; n++) {
                        thisNumber++;
                        if (File(theFiles[thisNumber]).exists == true) {placeFile (theFiles[thisNumber])}
    // save the combined files;
              theFile.saveAs(new File (theFolder +"/"+ theFile.name.replace(/\.\D{3,4}$/i, "_comb.psd")), psdOpts);
              theFile.close(SaveOptions.DONOTSAVECHANGES)
    ////// get psds, tifs and jpgs from files //////
    function getSomeFiles (theFile) {
        if (theFile.name.match(/\.(jpg|tif|psd|pdf|)$/i)) {
            return true
    ////// place file //////
    function placeFile (thePath) {
    // =======================================================
    var idPlc = charIDToTypeID( "Plc " );
        var desc14 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        desc14.putPath( idnull, new File( thePath ) );
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc14.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc15 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc15.putUnitDouble( idHrzn, idPxl, 0.000000 );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc15.putUnitDouble( idVrtc, idPxl, 0.000000 );
        var idOfst = charIDToTypeID( "Ofst" );
        desc14.putObject( idOfst, idOfst, desc15 );
        var idWdth = charIDToTypeID( "Wdth" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc14.putUnitDouble( idWdth, idPrc, 100 );
        var idLnkd = charIDToTypeID( "Lnkd" );
        desc14.putBoolean( idLnkd, true );
    executeAction( idPlc, desc14, DialogModes.NO );

  • PPD's have Generic unix icon

    Hello,
    I have a few machines (Intel iMacs) running 10.5.4. The PPDs were copied over from a Mac Volume on an windows server to the new machines. The PPDs are not .gz files they have that generic UNIX executable icon. I opened them up with text edit and re-saved them but they still have that UNIX "exec" icon.
    Questions:
    1) Does this make a difference to the OS or Apps selecting and using the PPD?
    2) What's the best way to get them into the .gz format and the proper icon.
    I spoke to Quark and they said it didn't make a difference but I'm not completely buying that because I can't print from Quark 8. Quark 6.5 prints but nothing from 8. I put the PPDs in the folder that 10.5 needs to see them but no go, I'm just wondering if the fork information is causing this problem. Thanks in advance.
    Rick

    Greg,
    Thanks for the information, I'll try the cupstestppd command thanks!
    The quark folks said that it's possible that the Apps that do work with the PPDs may not be actually opening them and just using the generic PPD. Quark actually opens the PPD and uses them. We can print from all Adobe and Apple apps using the PPDs in the print set window. Wouldn't that be using the PPDs? Anywhere I can read up on this stuff?
    Thanks again,
    Rick

  • OIM 11.1.1.5.0 BP02 Generic UNIX Connector Configuration Problem

    I have an inquiry regarding the configuration of the Generic UNIX Connector on 11.1.1.5 of OIM. Basically, when I try to do Primary Group Recon and Shell Recon, I get an error saying:
    Oracle.iam.connectors.icfcommon.exceptions.IntegrationException: The value for a key [Host] is not defined in the provided map.
    I have followed the documentation of the UNIX guide connector and also created an attribute in OIM Design Console called privateKey[LOADFROMFILE] containg a value of file:\\\home\oracle\Oracle\Middleware\Oracle_OIM1\server\ConnectorDefaultDirectory\SSH\config\oim_rsa.
    I also tried to provisioned a user with the UNIX resource but I get an error message saying:
    Running CREATEUSER
    Target Class = oracle.iam.connectors.icfcommon.prov.ICProvisioningManager
    <Jul 2, 2012 6:20:32 PM PHT> <Error> <ORACLE.IAM.CONNECTORS.ICFCOMMON.PROV.ICPROVISIONINGMANAGER> <BEA-000000> <oracle.iam.connectors.icfcommon.prov.ICProvisioningManager : createObject : Error while creating user
    oracle.iam.connectors.icfcommon.exceptions.IntegrationException: The value for a key [Host] is not defined in the provided map.
    at oracle.iam.connectors.icfcommon.util.MapUtil.getRequiredValue(MapUtil.java:94)
    at oracle.iam.connectors.icfcommon.ConnectorFactory.createConnectorFacade(ConnectorFactory.java:122)
    at oracle.iam.connectors.icfcommon.prov.ICProvisioningManager.init(ICProvisioningManager.java:133)
    at oracle.iam.connectors.icfcommon.prov.ICProvisioningManager.init(ICProvisioningManager.java:141)
    at oracle.iam.connectors.icfcommon.prov.ICProvisioningManager.createObject(ICProvisioningManager.java:253)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpUNIXCREATEUSER.CREATEUSER(adpUNIXCREATEUSER.java:109)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpUNIXCREATEUSER.implementation(adpUNIXCREATEUSER.java:54)
    at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:196)
    at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2492)
    at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:2917)
    at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(tcScheduleItem.java:547)
    at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:602)
    at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
    at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.retryTasks(tcProvisioningOperationsBean.java:4042)
    at Thor.API.Operations.tcProvisioningOperationsIntfEJB.retryTasksx(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy329.retryTasksx(Unknown Source)
    at Thor.API.Operations.tcProvisioningOperationsIntfEJB_4xftoh_tcProvisioningOperationsIntfRemoteImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at Thor.API.Operations.tcProvisioningOperationsIntfEJB_4xftoh_tcProvisioningOperationsIntfRemoteImpl.retryTasksx(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
    at $Proxy167.retryTasksx(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
    at $Proxy328.retryTasksx(Unknown Source)
    at Thor.API.Operations.tcProvisioningOperationsIntfDelegate.retryTasks(Unknown Source)
    at com.thortech.xl.webclient.actions.ResourceProfileProvisioningTasksAction.retryTasks(ResourceProfileProvisioningTasksAction.java:702)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269)
    at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(tcLookupDispatchAction.java:133)
    at com.thortech.xl.webclient.actions.tcActionBase.execute(tcActionBase.java:894)
    at com.thortech.xl.webclient.actions.tcAction.execute(tcAction.java:213)
    at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
    at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
    at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.thortech.xl.webclient.security.CSRFFilter.doFilter(CSRFFilter.java:76)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.iam.platform.auth.web.PwdMgmtNavigationFilter.doFilter(PwdMgmtNavigationFilter.java:121)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.iam.platform.auth.web.OIMAuthContextFilter.doFilter(OIMAuthContextFilter.java:108)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    I would like to ask if there some configuration step I have missed upon which causes this error?
    Thanks in advance!

    Thanks for the reply! found out that I populated Connector Server with a value hence it was giving out this error. Thanks!
    Edited by: 940359 on Jul 2, 2012 9:08 PM

  • 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!

  • Cannot create a date in cfformitem type="script"

    I tried to create date variables using "new Date" in
    cfformitem type="script" and got an error about the "new" reserver
    word. Therefore, I removed the "new" and tested the script. It
    worked with the wrong result because the todayDate and selectedDate
    in the CheckDate2 were the same. By some reason, it ignored all the
    input parameters. However, everything worked fine in the
    cfsavecontent.
    Anyone has idea? Thanks in advance.
    Here is the script:
    <cfsavecontent variable="CheckDate1">
    var todayDate = new Date(myForm.todayYear,
    myForm.todayMonth, myForm.todayDate, 0, 0, 0, 0);
    var selectedDate = new Date(
    myForm.select_date1.substr(6, 4),
    myForm.select_date1.substr(0, 2) - 1,
    myForm.select_date1.substr(3, 2),
    0, 0, 0, 0
    alert("Today's Date in the cfsavecontent:\n" + todayDate +
    "\n\n" +
    "Seleced Date in the cfsavecontent:\n" + selectedDate);
    if (selectedDate > todayDate)
    alert("You cannot select a date greater than today's date");
    else
    alert("You are ok.");
    </cfsavecontent>
    <cfform name="myForm" format="Flash">
    <cfformitem type="script">
    function CheckDate2():Void
    var todayDate = Date(myForm.todayYear, myForm.todayMonth,
    myForm.todayDate, 0, 0, 0, 0);
    var selectedDate = Date(
    myForm.select_date2.substr(6, 4),
    myForm.select_date2.substr(0, 2) - 1,
    myForm.select_date2.substr(3, 2),
    0, 0, 0, 0
    alert("Today's Date in the cfformitem:\n" + todayDate +
    "\n\n" +
    "Seleced Date in the cfformitem:\n" + selectedDate);
    if (selectedDate > todayDate)
    alert("You cannot select a date greater than today's date");
    else
    alert("You are ok.");
    </cfformitem>
    <CFCALENDAR name="select_date1" height="150" width="310"
    onchange="#CheckDate1#">
    <CFCALENDAR name="select_date2" height="150" width="310"
    onchange="CheckDate2()">
    <cfinput type="text" name="todayYear"
    value="#DateFormat(Now(), 'yyyy')#" label="todayYear">
    <cfinput type="text" name="todayMonth"
    value="#DateFormat(Now(), 'm') - 1#" label="todayMonth">
    <cfinput type="text" name="todayDate"
    value="#DateFormat(Now(), 'd')#" label="todayDate">
    </cfform>

    > I am using CF 7.0.2.
    Good. That's that sorted.
    > The problem is the cfformitem does not allow
    “new” or other reserved words
    As I'm sure you're already aware, it is so by design. For
    security reasons, the Coldfusion Flash form compiler does not allow
    the creation of objects in an event handler. It therefore prohibits
    the use of the "new" keyword in an event handler script. In fact,
    It may not even allow its occurrence in a comment!
    > When I put the function in a .as file and include it in the
    CFM file or use
    > cfsavecontent to store the as function, the CF compiler
    accepts the reserved
    > word “new” and the script works fine.
    It's a hack, one design gremlin that got away. In programming
    as in nature there are (un)lucky accidents.
    > the Date constructor ignores the input parameters and
    creates the
    > current system date in the date objects.
    We should be glad it even gets that far. Without the "new"
    keyword, it should not be possible to create a new Date object. The
    flash compiler encounters a familiar constructor pattern, and
    simply makes do by creating the default date of today, right down
    to hours, minutes and seconds. Your arguments are ignored.
    Thus, the following will all return the same result, namely,
    the date of today.
    var todayDate = Date(myForm.todayYear, myForm.todayMonth,
    myForm.todayDate, 0, 0, 0, 0);
    var todayDate = Date(myForm.todayYear, myForm.todayMonth,
    myForm.todayDate);
    var todayDate = Date(0);
    var todayDate = Date(100000000000);
    var todayDate = Date();
    Even then, the todayDate variable doesn't behave properly
    like a Date object. For example, function calls like
    todayDate.getDate() fail. Comparing dates also fails. That is
    possibly because the machine cannot cast the todayDate variable.
    However, here is an approach that does what you want.
    <cfformitem type="script">
    function CheckDate2() {
    var todayDate:Date = Date();
    var todayDateInMillis =
    Date.UTC(myForm.todayYear,myForm.todayMonth,myForm.todayDate);
    var selected_date:Date = select_date2.selectedDate;
    var selected_dateInMillis = selected_date.getTime();
    alert("Today's Date from cfformitem tag :\n" + todayDate +
    "\n\n" + "Selected Date from cfformitem tag:\n" + selected_date);
    if (selected_dateInMillis > todayDateInMillis) alert("You
    cannot select a date greater than today's date");
    else
    alert("You are ok.");
    </cfformitem>

  • Batch or script cropping, renaming and resizing pdf's

    HELP!
    I'm desperatley looking for a way to do the folowwing in one batch or script with a complete folder of pdf's with printer marks and bleeds:
    Crop
    Create a file of 600*800 pixel on 72dpi with the addition of the word 'groot_' in front of the file name.
    Create a file of 300*400 pixel on 72dpi with the addition of the word 'klein_' in front of the file name.
    I work with CS4 on the mac.
    I have looking for a solution for a couple of days and found a work around:
    Cropping the files in a batch with acrobat.
    Create a 600*800 file with a photoshop script.
    The same thing for the 300*400 file.
    Add the words in front of the files with apple automator.
    This are 5 actions with 3 programs. I'm happy I found some way but I have the idea it could be done alot easier. Best would be with 1 script or batch in 1 program since I have to do this at least once a month and want to be able to instruct others as well without it being to complicated.
    Does anyone have an idea?
    Thanks!!!

    Yes this is doable in one go with script. You don't have to crop the PDF files in Acrobat is you set which PDF box to use with Photoshop's PDF open options. The only things that get a little more tricky are dealing with multi-page PDF's…

  • Standard driver programs,output type ,scripts,smartforms for SD reports

    hi experts,
                  Can any one list all the standard driver programs,output types ,scripts,smartforms for SD reports.
    mani

    Hi,
    Check this out
    NACE
    You can track the form and the print program used for that form
    The Tcode NACE is used to link the Standard SAP forms (SCRIPTFORM or SMARTFORM) or the customized form or the new form to its respective print programs. Also the output types, Form entry are linked with their forms and print programs. In short term, i can tell u that configuration or customization of forms to print programs, assigning output types, form entry to the forms are done using this Tcode.
    NACE is used to create output type while creating the output type you will mention forms, and driver program.
    that will be maintained in the table TNAPR.if you create the output type using NACE then it will be automatically visible in table NAST and TNAPR.
    so check in NAST, TNAPR table
    http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1989fe43b111d1896f0000e8322d00/frameset.htm
    Condition records in NACE?
    and
    NACE is used for message control customizing.
    Take a look at the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
    and also
    NACE is used for message control customizing.
    Take a look at the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
    If it helps reward with points..

  • Actionscript used in cfsavecontent vs cfformitem (type="script")

    I'm still trying to grasp why cfsavecontent is oft used in
    conjunction with cf flash rich forms. What would be the main
    impetus for using actionscript contained in cfsavecontent vs. using
    actionscript contained in the form (<cfformitem
    type="script">). Just trying to grasp this essential issue and
    can't seem to find it explained anywhere.
    Thanks!!!
    Tony Patch

    Tony,
    My guess is that they had their apps written before the 7.01
    updater which added the type="script" attribute for cfformitem.
    Everything I have seen points to using the new functionality. Not a
    very "geek" answer.
    Steve

  • Acrobat 8 Pro - how can I backup batch-processing scripts

    Is there a way to backup batch-processing scripts?

    Batch processes are saved locally as SEQU files, with the batch's name being the file name. You can get the path to the folder where they're located by running this code from the JS console:
    app.getPath("user", "sequences")

Maybe you are looking for

  • ABAP QUERY - ITS URGENT

    Hi Experts, In this scenario we have one Material – Mat1 and 2 plants namely, P1 and P2. At time of execution, in the selection screen, if we give for example: Mat1 and P1, data is displayed for that particular material and plant. Where as if we give

  • SELECT CASE WHEN not working?

    Hello, can't figure out why the following statement continues to return NULL values and seems to not recognize my case when portion?... INSERT tbl_Main select OrderID  ,(select   case    when (b.OrderValue is null or b.OrderValue = '') then 'Y'    el

  • Backup method, referenced vs managed

    Hi guys, I am going to backup my whole photo archive on an external drive and there are a couple of things I want to ask. First of all, I use referenced masters which are on my second drive of my MacPro (2 quad core, 16 Gb of ram). The Vault is not g

  • Serial# and SID

    hi!!! I am a DBA funa-1 9i WDP student.I need some help: (If i am not wrong)v$session is dynamic view which store some information about oracle.but my question is why serial# and SID is required to kill the session??why not just only SID to kill the

  • Safari slow after applying 2006-001 Sec update

    After applying 2006-001 my Safari is slow to the point of useless. Same goes for Firefox. In Firefox I can see that name resolution is the killer - takes from 3 to 5 secs even using my own inhouse DNS server. Changing to public DNS server maskes no d