HOW TO RUN BODS JOB THROUGH UNIX SCRIPT

Dear Experts
Please provide me the way how to call a job by a script .
I have used Export Execution Command as recommended by below links
http://scn.sap.com/docs/DOC-34648
http://scn.sap.com/community/data-services/blog/2012/08/22/sap-bods--running-scheduling-bods-jobs-from-linux-command-line-using-third-party-scheduler
But I am not able to locate .sh  file in unix server .
This is required to call a job after completion of parent job.
Thanks
Anupam

You can check the status in "SAP Business Objects Data Services management Console", Below are the steps
Login in SAP Business Objects Data Services management Console
Click on Batch Job
Select the local repository
Then check your Job Execution status from there
For your second query there are two ways one is do the same activity what you have done in DEV.
below are the steps
Login in SAP Business Objects Data Services management Console and export the Jobs using export execution command from batch job
SHELL Scripts will be exported in Job Server Log
Move that SHELL script as per your location
Update the User environment variable same as DEV only difference is SID is changed
Thanks,
Daya

Similar Messages

  • How to run 3 job(a,b,c) parallel in unix shells script and after will complete d will start  and we have to handle the error also

    how to run 3 job(a,b,c) parallel in unix shells script and after will complete d will start  and we have to handle the error also

    032ee1bf-8007-4d76-930e-f77ec0dc7e54 wrote:
    how to run 3 job(a,b,c) parallel in unix shells script and after will complete d will start  and we have to handle the error also
    Please don't overwhelm us with so many details!  
    Just off the top of my head ... as a general approach ... something like
    nohup proca
    nohup procb
    nohup procc
    while (some condition checking that all three procs are still running ... maybe a ps -ef |grep  )
    do
    sleep 2
    done
    procd
    But, we'd really need to know what it is you are really trying to accomplish, instead of your pre-conceived solution.

  • Trigger scenario when receive a flag 'X' through Unix script

    Hi All,
    I want to schedule my scenarios through a third party software which does scheduling of all jobs across landscape.
    My requirement is as follows:
    1) receive a flag having value 'X' through Unix shell script and then i want to trigger my PI scenario.
    2) when my scenario is successful then i want to send a success flag to third party schedular so that it can proceed with rest of the job scheduling.
    -> This second part i can perhaps do by using OS level commands after message processing.
    However how can i trigger my scenario after receiving flag?
    Thanks ,
    Atul.

    Hi VJ,
    Thanks for ur reply.
    Can u plz suggest any blogs for this...
    I have understood it like below:
    I will create a file through Unix script.
    This file will trigger my scenario.
    then if my real scenario is File to JDBC How should i pick up new file?
    How to achieve this order like:
    Receive first file
    Receive second file
    Send to JDBC.
    I am confused with Receiving first file and then again calling second channel to receive another file..
    Can u suggest how to configure it in ID? Like how many sender agreements, Receiver agreements etc
    Thanks,
    Atul

  • How to place tif file through a script in an indesign document?

    how to place tif file through a script in an indesign document?

    Emanuele:
    it works if i just run a script....
    but since i have been using a gui to do some functions, this  place command is not able to place the output tif file back into the  document

  • How to run the job using DBMS_SCHEDULER

    How to run the job using DBMS_SCHEDULER
    pleas give some sample Iam very new to DBMS_SCHEDULER

    Hi
    DBMS_SCHEDULER
    In Oracle 10g the DBMS_JOB package is replaced by the DBMS_SCHEDULER package. The DBMS_JOB package is now depricated and in Oracle 10g it's only provided for backward compatibility. From Oracle 10g the DBMS_JOB package should not be used any more, because is could not exist in a future version of Oracle.
    With DBMS_SCHEDULER Oracle procedures and functions can be executed. Also binary and shell-scripts can be scheduled.
    Rights
    If you have DBA rights you can do all the scheduling. For administering job scheduling you need the privileges belonging to the SCHEDULER_ADMIN role. To create and run jobs in your own schedule you need the 'CREATE JOB' privilege.
    With DBMS_JOB you needed to set an initialization parameter to start a job coordinator background process. With Oracle 10g DBMS_SCHEDULER this is not needed any more.
    If you want to user resource plans and/or consumer groups you need to set a system parameter:
    ALTER SYSTEM SET RESOURCE_LIMIT = TRUE;
    Baisc Parts: Job
    A job instructs the scheduler to run a specific program at a specific time on a specific date.
    Programs
    A program contains the code (or reference to the code ) that needs to be run to accomplish a task. It also contains parameters that should be passed to the program at runtime. And it?s an independent object that can referenced by many jobs
    Schedules
    A schedule contains a start date, an optional end date, and repeat interval with these elements; an execution schedule can be calculated.
    Windows
    A window identifies a recurring block of time during which a specific resource plan should be enabled to govern resource allocation for the database.
    Job groups
    A job group is a logical method of classifying jobs with similar characteristics.
    Window groups
    A window groups is a logical method of grouping windows. They simplify the management of windows by allowing the members of the group to be manipulated as one object. Unlike job groups, window groups don?t set default characteristics for windows that belong to the group.
    Using Job Scheduler
    SQL> drop table emp;
    SQL> Create table emp (eno int, esal int);
    SQL > begin
    dbms_scheduler.create_job (
    job_name => 'test_abc',
    job_type => 'PLSQL_BLOCK',
    job_action => 'update emp set esal=esal*10 ;',
    start_date => SYSDATE,
    repeat_interval => 'FREQ=DAILY; INTERVAL=10',
    comments => 'Iam tesing scheduler');
    end;
    PL/SQL procedure successfully completed.
    Verification
    To verify that job was created, the DBA | ALL | USER_SCHEDULER_JOBS view can be queried.
    SQL> select job_name,enabled,run_count from user_scheduler_jobs;
    JOB_NAME ENABL RUN_COUNT
    TEST_abc FALSE 0
    Note :
    As you can see from the results, the job was indeed created, but is not enabled because the ENABLE attribute was not explicitly set in the CREATE_JOB procedure.
    Run your job
    SQL> begin
    2 dbms_scheduler.run_job('TEST_abc',TRUE);
    3* end;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> select job_name,enabled,run_count from user_scheduler_jobs;
    JOB_NAME ENABL RUN_COUNT
    TEST_ABC FALSE 0
    Copying Jobs
    SQL> begin
    2 dbms_scheduler.copy_job('TEST_ABC','NEW_TEST_ABC');
    3 END;
    4 /
    PL/SQL procedure successfully completed. Hope it will help you upto some level..!!
    Regards
    K

  • RE: Running Escript from a UNIX script

    Hi Doug,
    Yu can try the following within escript:
    (using execcmd to generate an escript script and include to execute the
    generated escript)
    1) startup escript from a ksh
    2) get to the installedPartition level
    3) setOutFile yourOutFile
    4) showag
    5) setOutFile
    6) execcmd " yourAwkGrepScript.ksh yourOutFile "
    7) include yourGeneratedEscript
    yourAwkGrepScript.ksh analyses yourOutFile and finds
    the ActivePartition level subagent with the hex number as part of that
    subagent name
    then generates a new escript script with a fixed name yourGeneratedEscript
    I hope this idea will help you to solve your problem.
    Evert Nooijen.
    -----Original Message-----
    From: [email protected]
    [SMTP:[email protected]]
    Sent: 27 January 1999 15:25
    To: [email protected]
    Subject: Running Escript from a UNIX script
    I'm running a Korn Shell script that uses Escript to navigate down through
    an applications sub agents to get to the LoadBalancingRouter agent. Now I
    also need to get to the CommMgr agent in the same fashion. The problem I'm
    having is that once I get to the InstalledPartition level , I need to get
    to the ActivePartition level which requires the hex number as part of the
    subagent name. I've figured out a way to get the subagent name using awk &
    grep, but haven't been able to do it while I'm in escript. Basically I
    need to find the subagent for the installed partition & pass that name to
    the findsubagent command. Escript doesn't seem to understand grep or awk??
    Does anyone have any ideas or have you done something like this before??
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    Minneapolis, MN 55440-1309
    (612)883-7317
    <[email protected]>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Escript is pretty dumb, in that it doesn't have any
    looping or conditional expressions itself. I drive
    escript from a korn shell script also.
    Basically, I make two passes when doing things with
    escript in cases like this. One pass I send the
    commands to get the necessary info out of escript,
    and redirect to a file.
    Second pass, I awk/grep/whatever the info out of
    the temporary file and use it to build another
    set of escript commands to do the real work.
    [email protected]
    Unix Systems Administrator
    Sentai Advanced Research Corp.
    (780)423-3113 ext 42
    -----Original Message-----
    From: [email protected]
    <[email protected]>
    To: [email protected] <[email protected]>
    Date: Wednesday, January 27, 1999 8:35 AM
    Subject: Running Escript from a UNIX script
    I'm running a Korn Shell script that uses Escript to navigate down through
    an applications sub agents to get to the LoadBalancingRouter agent. Now I
    also need to get to the CommMgr agent in the same fashion. The problem I'm
    having is that once I get to the InstalledPartition level , I need to getto
    the ActivePartition level which requires the hex number as part of the
    subagent name. I've figured out a way to get the subagent name using awk &
    grep, but haven't been able to do it while I'm in escript. Basically I need
    to find the subagent for the installed partition & pass that name to the
    findsubagent command. Escript doesn't seem to understand grep or awk??
    Does anyone have any ideas or have you done something like this before??
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    Minneapolis, MN 55440-1309
    (612)883-7317
    [email protected] <[email protected]>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Running Escript from a UNIX script

    I'm running a Korn Shell script that uses Escript to navigate down through
    an applications sub agents to get to the LoadBalancingRouter agent. Now I
    also need to get to the CommMgr agent in the same fashion. The problem I'm
    having is that once I get to the InstalledPartition level , I need to get to
    the ActivePartition level which requires the hex number as part of the
    subagent name. I've figured out a way to get the subagent name using awk &
    grep, but haven't been able to do it while I'm in escript. Basically I need
    to find the subagent for the installed partition & pass that name to the
    findsubagent command. Escript doesn't seem to understand grep or awk??
    Does anyone have any ideas or have you done something like this before??
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    Minneapolis, MN 55440-1309
    (612)883-7317
    [email protected] <[email protected]>

    Escript is pretty dumb, in that it doesn't have any
    looping or conditional expressions itself. I drive
    escript from a korn shell script also.
    Basically, I make two passes when doing things with
    escript in cases like this. One pass I send the
    commands to get the necessary info out of escript,
    and redirect to a file.
    Second pass, I awk/grep/whatever the info out of
    the temporary file and use it to build another
    set of escript commands to do the real work.
    [email protected]
    Unix Systems Administrator
    Sentai Advanced Research Corp.
    (780)423-3113 ext 42
    -----Original Message-----
    From: [email protected]
    <[email protected]>
    To: [email protected] <[email protected]>
    Date: Wednesday, January 27, 1999 8:35 AM
    Subject: Running Escript from a UNIX script
    I'm running a Korn Shell script that uses Escript to navigate down through
    an applications sub agents to get to the LoadBalancingRouter agent. Now I
    also need to get to the CommMgr agent in the same fashion. The problem I'm
    having is that once I get to the InstalledPartition level , I need to getto
    the ActivePartition level which requires the hex number as part of the
    subagent name. I've figured out a way to get the subagent name using awk &
    grep, but haven't been able to do it while I'm in escript. Basically I need
    to find the subagent for the installed partition & pass that name to the
    findsubagent command. Escript doesn't seem to understand grep or awk??
    Does anyone have any ideas or have you done something like this before??
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    Minneapolis, MN 55440-1309
    (612)883-7317
    [email protected] <[email protected]>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • How to run a job in background programatically after 10 sec

    Hi Forum,
    Can anyone tell me How to run a job in background programatically after 10 sec..
    Thanks in advance

    Hi,
    Here is the example code
    *Submit report as job(i.e. in background) 
    data: jobname like tbtcjob-jobname value
                                 ' TRANSFER TRANSLATION'.
    data: jobcount like tbtcjob-jobcount,
          host like msxxlist-host.
    data: begin of starttime.
            include structure tbtcstrt.
    data: end of starttime.
    data: starttimeimmediate like btch0000-char1.
    * Job open
      call function 'JOB_OPEN'
           exporting
                delanfrep        = ' '
                jobgroup         = ' '
                jobname          = jobname
                sdlstrtdt        = sy-datum    " You need to give the Date for execution the Job
                sdlstrttm        = sy-uzeit    " You need to give the Time for execution the Job
           importing
                jobcount         = jobcount
           exceptions
                cant_create_job  = 01
                invalid_job_data = 02
                jobname_missing  = 03.
      if sy-subrc ne 0.
                                           "error processing
      endif.
    * Insert process into job
    SUBMIT zreport and return
                    with p_param1 = 'value'
                    with p_param2 = 'value'
                    user sy-uname
                    via job jobname
                    number jobcount.
      if sy-subrc > 0.
                                           "error processing
      endif.
    * Close job
      starttime-sdlstrtdt = sy-datum + 1.
      starttime-sdlstrttm = '220000'.
      call function 'JOB_CLOSE'
           exporting
                event_id             = starttime-eventid
                event_param          = starttime-eventparm
                event_periodic       = starttime-periodic
                jobcount             = jobcount
                jobname              = jobname
                laststrtdt           = starttime-laststrtdt
                laststrttm           = starttime-laststrttm
                prddays              = 1
                prdhours             = 0
                prdmins              = 0
                prdmonths            = 0
                prdweeks             = 0
                sdlstrtdt            = starttime-sdlstrtdt
                sdlstrttm            = starttime-sdlstrttm
                strtimmed            = starttimeimmediate
                targetsystem         = host
           exceptions
                cant_start_immediate = 01
                invalid_startdate    = 02
                jobname_missing      = 03
                job_close_failed     = 04
                job_nosteps          = 05
                job_notex            = 06
                lock_failed          = 07
                others               = 99.
      if sy-subrc eq 0.
                                           "error processing
      endif.
    Regards
    Sudheer

  • Urgent - How to Run a FM using CATT script tool,

    Hi All,
    How to Run a FM using CATT script tool,
    Thanks in advance,
    KSR

    choose  type as "Function module test" (if you are in release less than 6.4 abap) after entering into t.code SCAT.
    Pl. refer to this documentation for creating function module test cases
    <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCATTOL/CACATTOL.pdf">http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCATTOL/CACATTOL.pdf</a>
    reward if it helps
    Krishna

  • How to run oracle forms in Unix

    How to run Oracle forms in unix ?'

    Oracle Forms only runs on an Oracle application Server.
    Regards
    Grant Ronald
    Oracle Product Management

  • How to run a job (program in it) every 48 hours

    Dear All,
    Can you please tell me how to run a job every 48 hours. I am not able to find suitable job option.
    Thanks and regards,
    Atanu

    Hi,
    1. Go to SM36 give the job name i.e. ZABC_MYJOB
    2. Click on Steps (Upper left corner - 2nd Button) and assign the ABAP report name .i.e. RSUSR002, Check and Save.
    3. Click on Start Condition (Upper left corner - Ist Button), click Date/Time and specify the Start Date and Time.
    4. Select "Periodic Job" and click on Period values now click on Other Period
    5. Now input 1 in the Minute Box. , and check and save.
    6. Again Check and Save. and Again Check and Save.
    7. Now save the job.
    This job will run after every 1 minut
    (OR) try the below steps.
    you can setup your job in order to start after an event.
    After that you can get the event triggered from the Operating System:
    - log into you Operating System with the SIDadm user id (at the Operating System level) and go to directory /usr/sap/SID/SYS/exe/run
    - Run the SAPEVT executable as follows :
    sapevt YOUR_EVENT -t pf=/usr/sap/SID/SYS/profile/DEV_DVEBMGS00_server001 nr=01
    This will raise the event, and cause the job scheduled within SAP to execute.
    In this way you can use the O.S. (u201Ccrontabu201D for example) functionalities in order to schedule your job between 9am to 6pm.
    Regards
    Shweta

  • How to execute sql-queries through shell scripting in linux?

    How to execute sql-queries through shell scripting in linux?

    http://www.oracle.com/technology/pub/articles/saternos_scripting.html
    Two simple examples:
    #!/usr/bin/env bash
    set_orafra () {
       orafra=`echo 'set heading off
       select name from v$recovery_file_dest;
       exit' | sqlplus -s / as sysdba`
    set_orafra
    echo $orafra
    #!/usr/bin/env bash
    export ORACLE_SID=instance_name
    export ORACLE_HOME=/path_to_oracle_home_directory
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=/$ORACLE_HOME/bin/$PATH
    $ORACLE_HOME/bin/sqlplus -s <<EOF
    connect scott/tiger@my_instance_name
    INSERT INTO table VALUES (sysdate);
    exit
    EOFEdited by: Markus Waldorf on Sep 17, 2010 12:19 AM

  • How to Run SSIS Package through SQL AGENT Job

    I am good with SSIS, I created a package which will load the excel files to SQL SERVER  tables. To Implement this I wrote the C# code to extract the first sheet name only, and then
    package will load the data present the first sheet only. The package working fine when i run this through BIDS. But the same package throwing error at C# code step when i am running this package through SQL AGENT JOB. When i searched for this, i have seen
    many posts saying that, this is happening becoz of using Microsoft.interop.excel references inside the c# code. Please help me with this. Is there any alternate way in c# to extract the first sheet name(not based on ascending order) of an excel file with out
    using interop. Or
    How to configure SQL AGENT job to run suceessfully when using interop inside the code.
    My UAT server is of 64 bit. And i have to run this in the same server.
    I tried creating  "Desktop" folder in "C:\Windows\System32\config\systemprofile\"
    Error:Description: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.     at ST_ecfa668f250a45e18c95639c9ffd64d4.csproj.ScriptMain.Main()
        --- End of inner exception stack trace ---     at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)    
    at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr,
    Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)     at
    System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)     at System.Type.InvokeMember(String name, BindingFlags
    invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)     at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()  End Error  Error: 2015-02-27 11:24:00.23     Code: 0x00000001
        Source: User Mail      Description: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error
    occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could
    not open a connection to SQL Server)     at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
        at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
        at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)     at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String
    host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)     at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString
    connectionOptions, String newPassword, Boolean redirectedUserInstance)     at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword,
    SqlConnection owningObject, Boolean redirectedUserInstance)     at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)  
      at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)     at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owning...
     The package execution fa...  The step failed
    using System;
    using System.Data;
    using System.Diagnostics;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    using System.Data.OleDb;
    using Microsoft.Office.Interop;
    using System.Runtime.InteropServices;
    namespace ST_ecfa668f250a45e18c95639c9ffd64d4.csproj
    [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
    public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    #region VSTA generated code
    enum ScriptResults
    Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
    Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
    #endregion
    public void Main()
    { /*Passing the file path via User::File_Name Variable*/
    string FileName = Dts.Variables["User::File_Name"].Value.ToString();
    Microsoft.Office.Interop.Excel.Application xlApp = null;
    Microsoft.Office.Interop.Excel.Workbook excelBook = null;
    try
    xlApp = new Microsoft.Office.Interop.Excel.Application();
    excelBook = xlApp.Workbooks.Open(FileName, Type.Missing,
    Type.Missing, Type.Missing, Type.Missing,
    Type.Missing, Type.Missing, Type.Missing, Type.Missing,
    Type.Missing, Type.Missing, Type.Missing, Type.Missing,
    Type.Missing, Type.Missing);
    string[] excelSheets = new string[excelBook.Worksheets.Count];
    int i = 0;
    foreach (Microsoft.Office.Interop.Excel.Worksheet wSheet in excelBook.Worksheets)
    excelSheets[i] = wSheet.Name;
    i++;
    Dts.Variables["User::WorkSheetName"].Value = excelSheets[0] + "$";
    catch (Exception ex)
    excelBook.Close(false, FileName, null);
    Marshal.ReleaseComObject(excelBook);
    string error = ex.Message;
    finally
    excelBook.Close(false, FileName, null);
    Marshal.ReleaseComObject(excelBook);
    Dts.TaskResult = (int)ScriptResults.Success;

    I installed office in my machine...but this doesn't solved my problem...
    Finally i figured out the solution for this and it is working now, Here is the solution...!
    Create the folder with name "Desktop" inside the below mentioned path
    C:\Windows\SysWOW64\config\systemprofile\   
    But i really don't understand the logic behind this. Can someone explain it pls....

  • [CS4:JS] How to run ".sh" file through Javascript

    Dear All,
    How to run the ".sh" file through Adobe InDesign Javascript, I used the below coding:
    //================== Code =============================//
    var myFile = File("xxx/xxx/xxx/Test.sh");
    var Exec = "sh" + " "+ "\""+myFile+"\"";
    File(Exec).execute();
    //================== End =========================//
    the above coding is not working, I checked before without "sh" also, It is not working.
    Please anyone can give me the solutions & suggestion, and I will appreciate.
    Thanks & Regards
    T.R.Harihara SudhaN.,

    Dear Hawkinson,
      Many thanks for this quick reply, I'm really very happy, but unfortunately the script is return the "Permission denied" value.
    I used the below code, Please kindly change if anything is wrong.
    //====================== Script Source =====================//
    var myFile ="/Applications/MacXinPro/IDMLExportparse.sh";
    shell(myFile);
    function shell(cmd) {
    var
    rv,
    call ='do shell script "'+ cmd.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"';
    try {
    rv = app.doScript(call,ScriptLanguage.APPLESCRIPT_LANGUAGE);
    } catch(e0) {
    rv = e0+"\n"+(rv?"":rv);
    return rv;
    //====================== End : Script Source =====================//
    //=========== Output ================//
    Execution finished. Result: Error: sh: /Applications/MacXinPro/IDMLExportparse.sh: Permission denied
    undefined.
    Please kindly help me...
    Thanks & Regards
    T.R.Harihara SudhaN

  • How to run an applescript using unix command

    Hi All,
    Can any one help me in giving me the command for running an apple script thru postupgrade shell file in other words i wana run an apple script while running my new installer that will upgrade the old version of application but while installing i want to run an applescript so as i know ill have to give that applescript path in the postupgrade script but how to run it while installation and where to keep it (is it postupgrade). May be in short how can i run apple script thru unix command.

    Use the osascript command.
    In my installer, I use the DropDMG program to build my DMG disk image. It doesn't quit automatically, so I have to do the following:
    osascript -e "tell application \"DropDMG\" to quit"
    Type "man osascript" for more information.

Maybe you are looking for

  • Is there a way to have a continious flowing text box with a limit of 26 characters per line?

    I am trying to make an interactive pdf form or an indesign form for a classified section in a newspaper. We use a 26 character limit per line for pricing reasons. What I need is for a text box or field to flow continuously yet limit each line to 26 c

  • IDML modification using xsl and xml

    Hi All I am new to IDML development and get stuck at first step. I know that IDML becomes a bunch of xml files so if I create a template and Export it as IDML and for processing the job, I want to modify the story xml file among all the xml files whi

  • How do i change netbios name in windows 2012 server

    Hi, i have create Ad on windows 2012 server and i have enter netbios name with end 0. now problem is when try to access any user it show netbios name there. is it possible that i can change netbios name or why it show netbios name. sunit kumar

  • How to add custom buttons in a workflow email?

    We want to add custom buttons in the workflow mail, and we have tried it successfully in workflow notification, but failed in mail,so is there anyone know how to add buttons in workflow mail if it is possible.

  • The value for The value for the useBean invalid?

    I get following error when I try to test application in iexplorer. org.apache.jasper.JasperException: /guestBookLogin.jsp(12,0) The value for the useBean class attribute com.deitel.jhtp6.jsp.beans.GuestBean is invalid. I got this code from a case stu