Executer un Script python avec Teststand pour agir sur un banc de Test

Bonjour à tous,
J'aimerais savoir comment peut-on exécuter un script python avec Teststand sans utiliser le "Call Executable".
Je m'explique: j'aimerais lancer deux script python sur Teststand. Le premier serait un script qui permettrait d'initialiser un modèle sur un banc de test ainsi que l'objet virtuel dans lequel je veux travailler. Dans le deuxième script, j'agirai sur l'objet virtuel. Je voudrais donc lire une variable du modèle sur le deuxième script à l'aide de l'objet virtuel et agir dessus après à l'aide de Teststand.
Lorsque j'utilise le "Call Executable", le deuxième script qui s'exécute ne reconnait pas l'initialisation du modèle du premier script.
Je pensais donc à utiliser Labpython avec labview puis Teststand, est-ce-que cela serait possible?
J'ai en ma possesion :
Labview 2009
Teststand 4.2.1
Python 2.5

Bonjour coconuts,
Merci d'avoir posté votre question sur le forum de National Instruments.
Après quelque recherche j'ai trouvé un tutoriel sur  Calling Scripting Languages from NI TestStand.
Vous l'avez peut être déja consulté mais je me permet de vous le renvoyer car il est assez interressant.
http://zone.ni.com/devzone/cda/tut/p/id/8847?metc=​nsi9321
Sinon je pense qu'il faudrait peut être créer une variable globale ou partagé pour dialoguer entre les deux Scripts. Essayez de faire plusieurs étapes dans votre manupulation. Utilisez le premier Scripts, enregistrez les données que vous souhaitez dans une variable. Vous réutiliserez celle-ci dans le deuxième script. Mais assurez-vous bien que le premier script à stocké votre objet.
Brice S.
National Instruments France

Similar Messages

  • Développement de Banc de Test de Production avec LabView et TestStand

    Bonjour,
    je dois réaliser pour un client un banc de test de production pour tester la rigidité diélectrique de plusieurs de ses produits.
    On a donc pour résumer, un appareil de mesure (diélectrimètre) à piloter par GPIB, de l'automatisme à gérer par soft (environ 32 Sorties 24 volts, 32 entrées 24 V), des rapports à imprimer/sauvegarder, les résultats à renseigner en base SQL Server 2000...
    Le client veut que j'utilise LabView (>= 8.0) et TestStand (>= 3.0) . Je connais bien LabView, par contre je n'ai jamais utilisé TestStand.
    Je sais ce qu'est TestStand (séquenceur de test).
    Il s'agit d'un vrai banc avec interface spécifique à développer, niveaux d'utilisateurs à gérer ...
    Quelle est la méthode/architecture à utiliser pour pouvoir développer ce banc/interface : utilisation d'api TestStand sous labview, tout faire à partir de TestStand qui appelle des Vi de LabView (à afficher ou non) ... ? J'ai du mal à voir comment développer l'IHM en liaison avec TestStand.
    D'avance merci.
    Eddy DUCHENE
    12 F Chemin de Boutary
    69300 CALUIRE ET CUIRE
    [email protected]

    Bonjour,
    Développer sa propre IHM n'est pas chose facile.
    Pour cela tu peux partir des exemples se trouvant dans le repertoire d'installation de Teststand à ces adresses:
        C:\Program Files\National Instruments\TestStand 3.5\OperatorInterfaces\NI\Simple\CVI
        C:\Program Files\National Instruments\TestStand 3.5\OperatorInterfaces\NI\Full-Featured\CVI
    Tu peux également te référer au teststand reference manual, chapitre 9.
    Tu peux trouver ce manuel à cette adresse:
        C:\Program Files\National Instruments\TestStand 3.5\Doc\Manuals
    .NIDays2008 {font-family:Arial, Helvetica, sans-serif; font-size:12px; color: #065fa3; font-weight: bold; text-decoration: none; text-align: right;} .NIDays2008 a, a:hover {text-decoration: none;} .NIDays2008 a img {height: 0; width: 0; border-width: 0;} .NIDays2008 a:hover img {position: absolute; height: 90px; width: 728px; margin-left: -728px; margin-top:-12px;}
    >> Avez-vous entendu parler de NI Days ?

  • Afraid of executing a script on server

    I have to make a script which deletes all the folders and files in the following directories on Windows Server 2008:
    D:\frotxy\out\backup\
    D:\frotxy\in\backup\
    Yesterday I tried executing the script from my Desktop to delete the files in a test folder but unfortunately I had mistaken the path to this folder. What happened was my Desktop files were deleted - ARGHH! 
    So my question is is there a safer way to do the script and check it before executing it on the server as it is important not to delete some other directory or file from the server :)
    This is the script:
    set folder="D:\frotxy\out\backup"
    cd /d %folder%
    for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
    set folder="D:\frotxy\in\backup"
    cd /d %folder%
    for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
    And where should I place the file containing the script?
    I am not into scripts at all so please help!

    If the folder doesn't exist, you have no error checking there to handle the failure of the cd command, and you continue on with the "delete everything" part.  You can either check for the existence of the folder first, check for an error after
    the CD command, or not use relative paths at all and just pass folder in to the dir command (which would be my preference.)  Here's my example (note the quotation marks have been removed from the set folder line; they're hard-coded later on):
    set folder=D:\frotxy\in\backup
    for /F "delims=" %%i in ('dir /b "%folder%\*"') do (rmdir "%folder%\%%i" /s/q || del "%folder%\%%i" /s/q)
    Note:  I'm not sure what's going on with that (rmdir || del) bit.  To my knowledge, there's no "||" operator in batch files, and "|" doesn't make any sense here, but I've left the original code alone and only changed the bits related
    to where things will be deleted, not how they are deleted.
    Edit:  On a side note, this would be much safer and easier in PowerShell, which is Microsoft's current command-line interface and scripting language.  For example:
    $folder = 'D:\frotxy\in\backup'
    Get-ChildItem -Path "$folder\*" -Recurse -Force | Remove-Item -Force -WhatIf
    That -WhatIf switch on the end of the Remove-Item command is a common parameter in PowerShell.  It shows you what the command would have done, allowing you to make sure you like the results first.  Then you run it again without -WhatIf, and it deletes
    things for you.

  • How to call a python script from a TestStand sequence?

    Please tell me how is it possible to call a python script from a TestStand sequence.
    Thank for your help in advance.
    Imre

    Here you can find some information about Python and LabVIEW:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=124424&query.id=149647#M124424
    If you have LabVIEW, you could use LabVIEW steps to call your Phyton Scipts.
    Another solution would be, to do, what is decriibed in the thread directly in TestStand:
    You can call a dll or .NET assemblies directly from teststand, or use the "Call Executable" TestStep.

  • New python call teststand engine

    I re-write my issue in new message.Thanks very much for altenbach's remindding.
    I use python and teststand engine to customize solution.But I have some questions about it.
    1,code as below:
    tsEngine = win32com.client.Dispatch("TestStand.Engine.1")
    print "TestStand %s.%s ready" % (tsEngine.MajorVersion, tsEngine.MinorVersion)
    tsEngine.UIMessagePollingEnabled = True
    sequencePath = os.path.join(cwd, 'MySequence.seq')
    seqFile = tsEngine.GetSequenceFileEx(sequencePath)
    execution = tsEngine.NewExecution(seqFile, "MainSequence", seqFile, False, 0)
    execution.WaitForEndEx(60000)
    execution = None
    released = tsEngine.ReleaseSequenceFileEx(seqFile, 0x4)
    seqFile = None
    tsEngine.ShutDown(True)
    tsEngine = None ## Execution freezes here
    2,I need to use UImessage to get pass/fail result of "MySequence.seq".
    So the first step,I set "tsEngine.UIMessagePollingEnabled = True".
    But python print these error:
    Traceback (most recent call last): File "D:\TS_solution\CallTestStand.py",
    line 39, in released = tsEngine.ReleaseSequenceFileEx(seqFile, 0x4) File "",
    line 3, in ReleaseSequenceFileEx pywintypes.com_error: (-2147352567, '\xb7\xa2\xc9\xfa\xd2\xe2\xcd\xe2\xa1\xa3', (0, u'TSAPI', u"Unable to unload sequence file 'MySequence.seq' because it is in use, possibly because it is executing.", None, 0, -17213), None)
    3,I comment "tsEngine.UIMessagePollingEnabled = True",
    then teststand pop-up warning windows,show as below:
    References to PropertyObjects were not released properly.
    Total number of objects: 53
    Number of top-level objects: 13
    Note: Some top-level objects may be included if they are referenced by an incorrectly released top-level object.
    For example, an unreleased SequenceContext object references a SequenceFile object.
    The following top-level objects were not released:
    Executions [1 object(s) not released]
    Type Definitions [2 object(s) not released]
    Type Definition
    #1: Name: CommonResults Type Definition
    #2: Name: Error PropertyObjects
    [6 object(s) not released] PropertyObject
    #1: Type: ActiveX Reference Value: Nothing PropertyObject
    #2: Type: ActiveX Reference Value: Nothing PropertyObject
    #3: Type: Obj PropertyObject
    #4: Type: Array of Containers PropertyObject
    #5: Type: Array of Containers PropertyObject
    #6: Type: Array of Containers And the following uncategorized objects:
    UIMessage (TEMessage)
    UIMessage (TEMessage)
    Report
    EditArgs
    4,How can I call Teststand API--UImessage class through Python?

    I re-write my issue in new message.Thanks very much for altenbach's remindding.
    I use python and teststand engine to customize solution.But I have some questions about it.
    1,code as below:
    tsEngine = win32com.client.Dispatch("TestStand.Engine.1")
    print "TestStand %s.%s ready" % (tsEngine.MajorVersion, tsEngine.MinorVersion)
    tsEngine.UIMessagePollingEnabled = True
    sequencePath = os.path.join(cwd, 'MySequence.seq')
    seqFile = tsEngine.GetSequenceFileEx(sequencePath)
    execution = tsEngine.NewExecution(seqFile, "MainSequence", seqFile, False, 0)
    execution.WaitForEndEx(60000)
    execution = None
    released = tsEngine.ReleaseSequenceFileEx(seqFile, 0x4)
    seqFile = None
    tsEngine.ShutDown(True)
    tsEngine = None ## Execution freezes here
    2,I need to use UImessage to get pass/fail result of "MySequence.seq".
    So the first step,I set "tsEngine.UIMessagePollingEnabled = True".
    But python print these error:
    Traceback (most recent call last): File "D:\TS_solution\CallTestStand.py",
    line 39, in released = tsEngine.ReleaseSequenceFileEx(seqFile, 0x4) File "",
    line 3, in ReleaseSequenceFileEx pywintypes.com_error: (-2147352567, '\xb7\xa2\xc9\xfa\xd2\xe2\xcd\xe2\xa1\xa3', (0, u'TSAPI', u"Unable to unload sequence file 'MySequence.seq' because it is in use, possibly because it is executing.", None, 0, -17213), None)
    3,I comment "tsEngine.UIMessagePollingEnabled = True",
    then teststand pop-up warning windows,show as below:
    References to PropertyObjects were not released properly.
    Total number of objects: 53
    Number of top-level objects: 13
    Note: Some top-level objects may be included if they are referenced by an incorrectly released top-level object.
    For example, an unreleased SequenceContext object references a SequenceFile object.
    The following top-level objects were not released:
    Executions [1 object(s) not released]
    Type Definitions [2 object(s) not released]
    Type Definition
    #1: Name: CommonResults Type Definition
    #2: Name: Error PropertyObjects
    [6 object(s) not released] PropertyObject
    #1: Type: ActiveX Reference Value: Nothing PropertyObject
    #2: Type: ActiveX Reference Value: Nothing PropertyObject
    #3: Type: Obj PropertyObject
    #4: Type: Array of Containers PropertyObject
    #5: Type: Array of Containers PropertyObject
    #6: Type: Array of Containers And the following uncategorized objects:
    UIMessage (TEMessage)
    UIMessage (TEMessage)
    Report
    EditArgs
    4,How can I call Teststand API--UImessage class through Python?

  • Python call teststand engine

    I use python and teststand engine to customize solution.But I have some questions about it.
    1,code as below:
    tsEngine = win32com.client.Dispatch("TestStand.Engine.1")
    print "TestStand %s.%s ready" % (tsEngine.MajorVersion, tsEngine.MinorVersion)
    tsEngine.UIMessagePollingEnabled = True
    sequencePath = os.path.join(cwd, 'MySequence.seq')
    seqFile = tsEngine.GetSequenceFileEx(sequencePath)
    execution = tsEngine.NewExecution(seqFile, "MainSequence", seqFile, False, 0)
    execution.WaitForEndEx(60000)
    execution = None
    released = tsEngine.ReleaseSequenceFileEx(seqFile, 0x4)
    seqFile = None
    #coreleased = tsEngine.ReleaseSequenceFileEx()
    tsEngine.ShutDown(True)
    tsEngine = None ## Execution freezes here
    2,I need to use UImessage to get pass/fail result of "MySequence.seq".So the first step,I set "tsEngine.UIMessagePollingEnabled = True".But python print these error:
    Traceback (most recent call last):
    File "D:\TS_solution\CallTestStand.py", line 39, in
    released = tsEngine.ReleaseSequenceFileEx(seqFile, 0x4)
    File "", line 3, in ReleaseSequenceFileEx
    pywintypes.com_error: (-2147352567, '\xb7\xa2\xc9\xfa\xd2\xe2\xcd\xe2\xa1\xa3', (0, u'TSAPI', u"Unable to unload sequence file 'MySequence.seq' because it is in use, possibly because it is executing.", None, 0, -17213), None)
    3,I comment "tsEngine.UIMessagePollingEnabled = True",then teststand pop-up warning windows,show as below:
    References to PropertyObjects were not released properly.
    Total number of objects: 53
    Number of top-level objects: 13
    Note: Some top-level objects may be included if they are referenced by
    an incorrectly released top-level object. For example, an unreleased
    SequenceContext object references a SequenceFile object.
    The following top-level objects were not released:
    Executions [1 object(s) not released]
    Type Definitions [2 object(s) not released]
    Type Definition #1:
    Name: CommonResults
    Type Definition #2:
    Name: Error
    PropertyObjects [6 object(s) not released]
    PropertyObject #1:
    Type: ActiveX Reference
    Value: Nothing
    PropertyObject #2:
    Type: ActiveX Reference
    Value: Nothing
    PropertyObject #3:
    Type: Obj
    PropertyObject #4:
    Type: Array of Containers
    PropertyObject #5:
    Type: Array of Containers
    PropertyObject #6:
    Type: Array of Containers
    And the following uncategorized objects:
    UIMessage (TEMessage)
    UIMessage (TEMessage)
    Report
    EditArgs
    4,How can I call Teststand API--UImessage class through Python?

    I reedit my issue in my reply.Thanks very much for altenbach's remindding.
    I use python and teststand engine to customize solution.But I have some questions about it.
    1,code as below:
    tsEngine = win32com.client.Dispatch("TestStand.Engine.1")
    print "TestStand %s.%s ready" % (tsEngine.MajorVersion, tsEngine.MinorVersion)
    tsEngine.UIMessagePollingEnabled = True
    sequencePath = os.path.join(cwd, 'MySequence.seq')
    seqFile = tsEngine.GetSequenceFileEx(sequencePath)
    execution = tsEngine.NewExecution(seqFile, "MainSequence", seqFile, False, 0)
    execution.WaitForEndEx(60000)
    execution = None
    released = tsEngine.ReleaseSequenceFileEx(seqFile, 0x4)
    seqFile = None
    tsEngine.ShutDown(True)
    tsEngine = None ## Execution freezes here
    2,I need to use UImessage to get pass/fail result of "MySequence.seq".
    So the first step,I set "tsEngine.UIMessagePollingEnabled = True".
    But python print these error:
    Traceback (most recent call last): File "D:\TS_solution\CallTestStand.py",
    line 39, in released = tsEngine.ReleaseSequenceFileEx(seqFile, 0x4) File "",
    line 3, in ReleaseSequenceFileEx pywintypes.com_error: (-2147352567, '\xb7\xa2\xc9\xfa\xd2\xe2\xcd\xe2\xa1\xa3', (0, u'TSAPI', u"Unable to unload sequence file 'MySequence.seq' because it is in use, possibly because it is executing.", None, 0, -17213), None)
    3,I comment "tsEngine.UIMessagePollingEnabled = True",
    then teststand pop-up warning windows,show as below:
    References to PropertyObjects were not released properly.
    Total number of objects: 53
    Number of top-level objects: 13
    Note: Some top-level objects may be included if they are referenced by an incorrectly released top-level object.
    For example, an unreleased SequenceContext object references a SequenceFile object.
    The following top-level objects were not released:
    Executions [1 object(s) not released]
    Type Definitions [2 object(s) not released]
    Type Definition
    #1: Name: CommonResults Type Definition
    #2: Name: Error PropertyObjects
    [6 object(s) not released] PropertyObject
    #1: Type: ActiveX Reference Value: Nothing PropertyObject
    #2: Type: ActiveX Reference Value: Nothing PropertyObject
    #3: Type: Obj PropertyObject
    #4: Type: Array of Containers PropertyObject
    #5: Type: Array of Containers PropertyObject
    #6: Type: Array of Containers And the following uncategorized objects:
    UIMessage (TEMessage)
    UIMessage (TEMessage)
    Report
    EditArgs
    4,How can I call Teststand API--UImessage class through Python?

  • WLST script & python

    I have a simple create domain python script.
    I wanted to know If I can execute this script directly with Python. This way I believe it would be faster as I don't have to invoke a JVM via "java org.python.util.jython".
    So the idea is to do something like this
    $python createDomain.py
    If this is doable, what should I import into the createDomain.py script?
    Thanks
    Anil

    No it will not work. WLST needs jython and java libraries.
    -satya
    BEA Blog:
    http://dev2dev.bea.com/blog/sghattu/
    Get Involved in CodeShare:
    https://wls-console-extensions.projects.dev2dev.bea.com/
    https://wlnav.projects.dev2dev.bea.com/
    https://eclipse-wlst.projects.dev2dev.bea.com/
    https://wlst.projects.dev2dev.bea.com/

  • Error while executing the script adgetlnxver.sh

    Error while executing the script adgetlnxver.sh on apps&db tier during upgrade from 11.5.9 to 11.5.10.2
    -bash: [: -lt: unary operator expected
    [aptinst@dba5 TINST_dba5]$ sh adapcctl.sh restart
    adapcctl.sh version 115.55
    /u01/app/tinst/tinstappl/ad/11.5.0/bin/adgetlnxver.sh: line 123: [: -lt: unary operator expected
    Apache Web Server Listener :httpd ( pid 8645 ) is running.
    Restarting the Apache Web Server Dedicated HTTP Listener..
    Apache Web Server Listener (PLSQL) :httpd ( pid 8673 ) is running.
    Restarting the Apache Web Server Dedicated PLSQL Listener..
    adapcctl.sh: exiting with status 0
    In adgetlnxver.sh: line 123 says
    if [ ${setflag}x = "x" -a $os = "RH" ]; then
    redhatver=`grep -oP "Enterprise Linux [a-z A-Z 0-9]* release [0-9]+" /etc/redhat-release | sed 's/Enterprise Linux [a-z A-Z 0-9]* release //g'`
    if [ $redhatver -lt 5 ]; then
    LD_ASSUME_KERNEL="2.4.19"
    export LD_ASSUME_KERNEL
    fi
    fi
    Thanks,
    Vamsi

    Hi Vamsi.
    The exactly erro refers to a problems when you try upgrade from these version to 11.5.10.
    Can you read this note and apply solution? The note refers a patch, but the problem is the same.
    After Patch 4334965, adstrtal.sh & adstpall.sh is failing with errors [ID 360046.1]
    BR Rafael Ceolim

  • How to execute vb script with out using Remote manager in oim 11g r2

    Hi Currently,
    i have a requirement to execute  vb script (present on a remote machine in which connector server is installed) from oim machine while using Exchange connector (11.1.1.6).
    This can be achieved by using remote manager,but i dont want to use remote manager.
    Hence decided to use Action scripts.
    As per connector configuration,
    i have configured Action scripts in Lookup.Exchange.UM.Configuration lookup definition, by means of three entries
    After Create Action Language      Shell
    After Create Action Target           Resource
    After Create Action File              /home/scripts/Disable.bat
    Disable.bat has the following ,
    Powershell.exe -File C:\scripts\Setup.vbs
    -%Log on Name%
      Exit
    As Setup.vbs is expecting a parameter of log on name, i was providing the same.
    But while creating the user,as this script gets called, getting the following error and hence 'create User' is getting failed.
    Problem while PowerShell execution System.Management.Automation.RemoteException: This task does not support recipients of this type. The specified recipient XXXXXXXXXXX...XXXXX is of type UserMailbox. Please make sure that this recipient matches the required recipient type for this task.
    While provisioning the user to Exchange , i have selected 'Recepient type' as 'User Mail box' explicitly, but still getting the error.
    Please provide any pointers to resolve the issue.
    Thanks in advance
    Kumar

    As far as I know Oracle and MySQL are two different products.
    Why do you clutter an Oracle forum with MySQL questions?
    If MySQL is such a tremendous RDBMS, like many people state (as 'free' means per definition better),
    why don't you visit a MySQL forum where fellow MySQL aficionados can answer you MySQL questions?
    In short, why don't you stop abusing Oracle forums?
    Sybrand Bakker
    Senior Oracle DBA

  • Dump while executing SAP Script

    Hello,
    My program is throwing a dump while executing this script. Request you all to please help me in removing this.
    /E   MAIN_DATA
    /:    BOX FRAME 10 TW
    PA To,  ,,Invoice No. & Date,,  &JVBRK-VBELN&  &JVBRK-FKDAT&
    PA M/s  &JKNA1-NAME1(35)&,,Your P.O. No.,,  &JVBAK-BSTNK&
    /*           &JKNA1-NAME2(35)&,,Truck No.,,  &JLIKP-TRAID&
    PA         &JKNA1-NAME2(35)&,,Truck No.,,  &WRK_VEHNO&
    PA         &JKNA1-ORT01(20)&,,LR No.& Date,,  &WRK_LRNO&   &JJ_1IEXCDTL-EXDAT& 
    /*           &JKNA1-REGIO(20)&,,Net Qty.in kgs.,,  &JLIPS-NTGEW(10.3L)&
    PA         &JKNA1-REGIO(20)&,,Net Qty.in kgs.,,  &W_NETWT(12.3L)& KG
    PA         ,,Material,,  &JVBRP-ARKTX(30)&
    My Report has the following code:
    FORM write_to_layout_set.
      PERFORM write_layout_set USING 'MAIN' 'SET' 'BODY' 'MAIN'.
      PERFORM write_layout_set USING '' 'SET' 'BODY' 'LOGO'.
      PERFORM write_layout_set USING '' 'SET' 'BODY' 'HEADER2'.
      PERFORM write_layout_set USING 'HEADER' 'SET' 'BODY' 'TEST2'.
      PERFORM write_layout_set USING 'FOOTER' 'SET' 'BODY' 'FOOTER2'.
      PERFORM write_layout_set USING '' 'SET' 'BODY' 'SIGN'.
    ENDFORM.                               " WRITE_TO_LAYOUT_SET
    FORM write_layout_set USING wrk_element
                                wrk_function
                                wrk_type
                                wrk_window.
      CALL FUNCTION 'WRITE_FORM'
         EXPORTING
               element       =  wrk_element
               function      =  wrk_function
               type          =  wrk_type
              window         =  wrk_window
       IMPORTING
            PENDING_LINES =
           EXCEPTIONS
                element       = 1
                function      = 2
                type          = 3
                unopened      = 4
                unstarted     = 5
                window        = 6
                OTHERS        = 7.
    +
      IF sy-subrc NE 0.
        PERFORM protocol_update.
      ENDIF.
    +
    ENDFORM.                               " WRITE_LAYOUT_SET

    As per my first reply you have to change the perform
    PERFORM write_layout_set USING 'MAIN' 'SET' 'BODY' 'MAIN'.
    to
    PERFORM write_layout_set USING 'MAIN_DATA' 'SET' 'BODY' 'MAIN'.
    and now check and one more thing whether this main_data element is in main window or not just check.
    if it does not work then just change &W_NETWT(12.3L)&  to
    &W_NETWT& and check

  • Error to execute the script through command prompt

    I tried to execute the script through command prompt. I got some following error. Could you please advice me how to rectify this.
    cscript D:\JS\Test.js
    Microsoft (R) Windows Script Host Version 5.6
    Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
    D:\JS\Test.js(1, 1) Microsoft JScript runtime error: 'app' is undefined.
    Thanks,
    Prabudass

    I haven't use CS for quite some time and file associations may not work with the command prompt.
    You can try using Windows Explorer to browse to a .js file then right click on that file. From the popup menu choose Open With. Even if you see Photoshop in the file list choose Browse at the bottom. Browse to Photoshop and make sure to check 'Always use selected program...'
    If that doesn't work you will need to create an action that runs your script and make a droplet from that action. You can then use the droplet in the command prompt. You may also need to create a 'dummy' image file to launch the droplet with if you script doesn't require an open document at startup. See http://www.ps-scripts.com/bb/viewtopic.php?t=967

  • ABAP program to execute shell script !

    Hi Friends,
    I have created some shell scripts and need to be executed through ABAP prog in order to automate some process. can any one tell me how to execute these scripts through ABAP program? i know that we have to setup those scripts through SM69 but i dont have clear idea about this.can some one tell me step by step how to do this. ur help will be awarded in terms of points.
    Thanks

    Define the scripts as commands in SM69. Test them in SM69/SM49 to see if they work.
    Next, go to SE37, run FM SXPG_COMMAND_EXECUTE, and specify your command there. Does it work?
    If yes, you can just code a 'CALL FUNCTION' to this FM in your ABAP program, and you are ready to invoke your script from your ABAP.
    For  a list of functions that work with commands (defined in SM69), do a drop-down on SXPG_COMMAND* in SE37.
    A sample code may look like this
    concatenate zsys_id z_infile z_extfile into parm
        separated by space.
    *C_FTP_COMMAND is a script defined in SM49
        CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
          EXPORTING
            COMMANDNAME                   = C_FTP_COMMAND
            ADDITIONAL_PARAMETERS         = parm
            OPERATINGSYSTEM               = SY-OPSYS
          TABLES
            EXEC_PROTOCOL                 = PROT
          EXCEPTIONS
            NO_PERMISSION                 = 1
            COMMAND_NOT_FOUND             = 2
            PARAMETERS_TOO_LONG           = 3
            SECURITY_RISK                 = 4
            WRONG_CHECK_CALL_INTERFACE    = 5
            PROGRAM_START_ERROR           = 6
            PROGRAM_TERMINATION_ERROR     = 7
            X_ERROR                       = 8
            PARAMETER_EXPECTED            = 9
            TOO_MANY_PARAMETERS           = 10
            ILLEGAL_COMMAND               = 11
            WRONG_ASYNCHRONOUS_PARAMETERS = 12
            CANT_ENQ_TBTCO_ENTRY          = 13
            JOBCOUNT_GENERATION_ERROR     = 14
            OTHERS                        = 15.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        else.
          write: /, 'FTP Function module executed with no errors.'.
        ENDIF.

  • How can I execute a script before connection?.

    Hi ,
    I want to execute a script before retrieving the data.How can I do this?.
    Thanks...

    When you say create a command line, what exactly are you referring to? I assume you have a logical schema mapped to the ebs instance you want to run the fnd_global function in (the same one you will have reverse engineered the models from etc), just set that as the schema on the step parameters and ODI will connect through for you as a SQL session.
    Technology set to Oracle ?
    What does the error actually say in the operator log?
    ETA : might be worth checking a few of these links as the refer to EBS with ODI : Oracle EBS and ODI
    Some of the pre-shipped KM's must do something similar to what you are trying to achieve for the apps security.

  • Can you get the file name of the current executing TSQL script?

    Can you get the file name of the current executing TSQL script? I wrote entries to a generic log file and would like to include the script name.

    Okay, So What you can do is
    1. Read get the version from your  database and redirect it to a text file(SQLCMD outout can be directed to text file using -o option or windows redirection operator >)
    2. Now you can read this value from the text file either inside a batch file or a powershell script and decide what operations you can do. 
    Satheesh
    My Blog |
    How to ask questions in technical forum

  • Some tags are not showing in SQL when executing the script as per Date

    A) When i am executing below script
    Select ToP 10000 [T_idx],[T_Tag], [T_date], [T_counter] from dbo.[total] ORDER BY T_DATE desc
    i am able to see all tags with respect to date except some tags prefix with ----PO, this 'PO' tags also present in the same table, with same time and date like other tags
    B) When executing below script
    Select top 10000 * FROM dbo.[total] where T_Tag like '%PO%' ORDER BY T_DATE DESC
    i am able to see all tags related to  PO
    How i can all tags including 'PO' with one script. can any one help me ??
    acmi

    Venkat,
    Select ToP 10000 [T_idx],[T_Tag], [T_date], [T_counter] from dbo.[total] ORDER BY T_DATE desc
    The above query MAY or MAY NOT give the records with taag ---PO as they might belong to a later data which might not fit into the top 10,000 dates of the table. This shud be the problem.
    If you want to see all the data irrespective of the number of rows, then below shud help:
    Select
    [T_idx],[T_Tag], [T_date], [T_counter]
    from dbo.[total]
    ORDER BY T_DATE desc
    If you need the rows that CONTAIN --PO then folowing shud do it:
    SELECT
    [T_idx],[T_Tag], [T_date], [T_counter]
    FROM dbo.[total]
    WHERE T_Tag like '%PO%'
    ORDER BY T_DATE desc
    If you need just the top 10,000 rows of the above result, then just add a TOP clause as below:
    SELECT
    TOP 10000
    [T_idx],[T_Tag], [T_date], [T_counter]
    FROM dbo.[total]
    WHERE T_Tag like '%PO%'
    ORDER BY T_DATE desc
    Thanks,
    Jay
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

Maybe you are looking for

  • Dreamweaver 8 template update pages problem

    Does anyone have any ideas on this? I just upgraded to Dreamweaver 8 and am getting very frustrated with it so far. When I change a template and allow it to update the pages using that template, it automatically inserts the following code on each pag

  • CCMS - File Content Monitoring

    Hi @ll, I stuck during the creation of a file monitoring via CCMS - Monitoring the file content I visited the following help.sap.com site http://help.sap.com/SAPHELP_NW04S/helpdata/en/47/4daa79abc16d18e10000000a421138/content.htm ...and many more - b

  • Holding option key can not switch to xp or mac os x

    hello, i just installed xp sp2 in my mac book. everything is running perfect. only problem is that when i turn on my mac book and hold the option key, the icons of the mac and xp supposed to show up, but its not. only have a icon of a locker, need en

  • Safari 2.0.1 causing some unwanted issues

    hey there Apple users...I've been having that spinning beach ball cursor alot lately, especially on some detailed web pages. I am a myspace freak and on some pages the beach ball cursor spins and spins and I have to force quit Safari. Another issue i

  • BAD PARAM Exception

    Folks, My CORBA App is throwing the following exception: WARNING: "IOP00110201: (BAD_PARAM) Null parameter" org.omg.CORBA.BAD_PARAM:vmcid: SUN minor code: 201 completed: Maybe at com.sun.corba.se.impl.logging.ORBUtilSystemException.nullParam (Unknown