How to execute a .cmd file in Solaris server

Hi all , How to execute a .cmd file in Solaris server.
Thanks.

Basically you should have the execution flag associated to this cmd file. Check first if this file is builded for Solaris and then you can add the "x" flag to the file permissions.
You can too run it like this, but you should also check if this file is Solaris compatible : # sh <path/cmd file>

Similar Messages

  • How to execute SQOOP.cmd file from SSIS execute process task?

    How to execute SQOOP.cmd file from SSIS execute process task?
    What is argument need to be prefixed in the arguments property
    Executable: C:\Hadoop\sqoop-1.4.2\bin\sqoop.cmd
    Arguments: /C "sqoop import -connect "jdbc:sqlserver://mysystem:1433;database=test;username=myuser;password=mypwd;" -table emp  -target-dir /user/emptable -m 1"
    Thanks
    Durga

    Hi Durga,
    SQOOP.cmd must be no different than any other .cmd/.bat I assume, your question is more about setting the parameters up I guessed.
    So unless the arguments change dynamically you can call SQOOP.cmd from yet another .cmd that has its parameters passed to it and the former you simply set to run without the arguments in Execute Process Task.
    Otherwise, in general to set a bat/cmd file to run in SSIS one needs to do this:
    PS: It is a good idea to populate the working directory with the path to the .cmd
    Arthur My Blog

  • How to Execute a cmd file in my ps script?

    Hi All,
    I have a cmd file which calls an msi and passes paramters. I am calling this deploy.cmd file from a powershell script. How can i achive this? I am trying the following but it does not work.
    Invoke-Command {&
    "D:\deploy\ABC_Installed\ETRM
    (QA)_1.0.7.2\en-us\ABC_QA.cmd"}
    It tends to just print the contents of the cmd but does not execute it. So, is it possible to execute a cmd
    from with in PS, if so, how?
    Walk_Man... Share the joy... 'Propose as Answer' if the post helps.

    Hey mate,
    I get the following error message when i run this,
    $proc
    =
    [diagnostics.process]::Start("cmd.exe",
    "/c"D:\deploy\ABC_Installed\ETRM
    (QA)_1.0.7.2\en-us\ABC_QA.cmd")
    Missing ')' in method call.
    At :line:12 char:53
    + $proc = [diagnostics.process]::Start("cmd.exe", "/c"D <<<< :\deploy\ABC_Installed\ETRM (QA)_1.0.7.2\en-us\ABC_QA.cmd")
    Walk_Man... Share the joy... 'Propose as Answer' if the post helps.

  • How to execute a .cmd file in java

    I can execute an .bat or a .exe file.
    But .cmd file is not getting executed in java.
    Pls tell me how to do this

    You can solve this problem by using the following method:
      private String[] getEnvironmentVariables() {
        final Map<String, String> env = System.getenv();
        final String[] result = new String[env.size()];
        final StringBuilder buf = new StringBuilder(100);
        int i = 0;
        for (Entry<String, String> e : env.entrySet()) {
          buf.setLength(0);
          result[i++] = buf.append(e.getKey()).append('=').append(e.getValue()).toString();
        return result;
      }You just have to execute your command like this now:
    Runtime.exec("cmd /C " + getMyCommand(), getEnvironmentVariables(), getMyExecDirectory());The reason why "start" didn't work is, that it is a command executed in a shell, thus you need "cmd /C" to execute start in the cmd. So you can do this as well:
    Runtime.exec("cmd /C start " + getMyCommand(), getEnvironmentVariables(), getMyExecDirectory());If you want to to execute "myCommand" in an own process.
    Kind Regards,
    Stefan Schubert

  • Any ideas how to execute a .sql file on database server from java?

    Any ideas how to execute a xyz.sql file (which is fisically on
    database server) from java?
    thanks

    Try
    sqlplus "sys/oracletest as sysdba" @bpk.sql
    Working locally, and having set the ORACLE_SID, you don't need to specify the SqlNet alias (@testdb).
    Remember to put an exit at the end of the bpk.sql script.

  • Execute a .cmd file?

    Is it possible to execute a .cmd file using a button or some other means?
    We have a .cmd file that executes sqlloader to reload a table with new data from a flat file and would like to run this .cmd file from an apex application.
    TIA.

    Hi Pixie,
    About all I know about java is that I hate it. However, this is actually one of those rare java apps that is actually useful and easy.
    Just follows the steps on that web page, with a couple of small edits, and your done. You can then create the button i n your Apex app which performs the process and executes the shell script.
    The only gotcha I've had with this was when I upgraded to ver 11 (maybe 10?). Oracle had changed the security for the database, so I needed to change how Oracle started, was owned, etc. so that I could define the proper environment variables for when the shell script executed. I did all the steps as the owner of the schema my Apex app uses, so all of the internal permissions were correct.
    Bill Ferguson

  • How to execute a jar file which has an applet, without using a html file ?

    I have a jar file which contains a set of class files. iam able to execute the jar file by using this html code
    <html>
    <applet code="file.class" archive="file.jar" width="500" height="300">
    <param name="name" value="value">
    </applet>
    </html>
    I want to know how to execute this class file without using the html tags.
    pls help me out in this.
    Anki

    Hi,
    You can make an executable jar file such that when you double click on that it starts running. Just follow the steps.
    1. Open a notepad and write the following
    Main-Class: XXXXXXXX
    XXXXXXX means Your Main Class name. Don't forget to press Enter after you write your class name.
    2. Save the file as Mani.mf
    3. In the commant prompt ( your directory ) type following lines.
    jar cmf Mani.mf Demo.jar *.*
    4. This will make a jar file which is executable jar file
    Hope this will help you.
    Deepak

  • How to execute a .exe file in java(Jsp) without using a process ???

    Hi All ,
    How to execute a .exe file in Jsp without using a process ??? ...
    Is it Possiable ????

    itsdhanasaraa wrote:
    But as this a web application ... By using Runtime i'm getting some probs ..
    Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
    Ain't gonna happen.
    its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
    1) it's not "taking more time to execute", whatever that's supposed to mean.
    2) there's no other way to execute something. Not that you should every use even that way anyway
    3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place.

  • How to execute a  .sql file from a batch file

    Hi all
    I've to take backup of a database weekly twice on every wednesday & Friday @ 5pm IST. I've written a hot backup script, which works every well.
    now i want to automate the script. ie i want this script to run on wednesday & friday @ 5pm without any human interfearance ie with out actually any1 executing this script.
    i created a batch file prod.bak with the following lines
    @echo off
    set oracle_sid=testdb
    set oracle_home=d:\oracle\ora92
    sqlplus /nolog
    connect sys as sysdba/oracletest@testdb
    this batch file when eexecuted connects me to sql prompt.
    Now i want to execute my backup script bkp.sql automatically when it is connected to sql prompt.
    (i tried with these lines in the above batch file...
    call bkp.sql---it just opens the bkp.sql file in notepad & displays the script
    start bkp.sql---same as call
    connect / as sysdba/pwd@[email protected] --- does not work simply remains a the sql prompt.
    At 17:00 /Every:w,f "d:\bkp.sql"---does not work simply remains at the sql promt.)
    Can any1 let me know what should i write in the batch file that will execute the bkp.sql file automatically after it gets connected to sql prompt. M using oracle 9i.
    I'll manage he time through windows utility of scheduling task.. Let me know how to execute the .sql file from a batch file.
    Thanks
    Tripti

    Try
    sqlplus "sys/oracletest as sysdba" @bpk.sql
    Working locally, and having set the ORACLE_SID, you don't need to specify the SqlNet alias (@testdb).
    Remember to put an exit at the end of the bpk.sql script.

  • How to execute a batch file on different remote server using TFS Build

    I have a build server and have 2 web servers. I am deploying using TFS Builds. Now, I have a requirement to execute a batch file which is kept on these 2 web servers. i.e. C:\MyBatch\CreateMe.bat
    After my build is successful, I need to execute this batch from the build server.
    Note, I cannot make any shared folder.

    Hi Sameer, 
    Thanks for your post.
    What’s the version of your TFS?
    How do you deploy solution using TFS Build, run MSBuild deploy command or using Release Management?
    That C:\MyBatch\CreateMe.bat file stay on your two web server machines separately? 
    If you want execute this bat file on your two web server machines separately using build process template, you need configure your web server machine as build agent, then add the InvokeProcess activity in build process template to run the bat file on build
    agent machine after build, please refer to Hari’s answer reply in this post:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/b8bcb19f-1296-441c-8356-e701b949445a/tfs-2010-how-to-execute-a-batch-file-after-build?forum=tfsbuild.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SOMEBODY AWNSER PLEASE....(HOW TO EXECUTE/RUN XML FILES IN WLS6?)

    Hi all,
    Please help me out on my XML question as my Cocoon is no longer working.
    The question is titled HOW TO EXECUTE/RUN XML FILES IN WLS6.
    Thanks in advance.
    snodx

    look at the samples bea\wlserver6.0sp1\samples\examples\xml
    ~
    Namaste - I bow to the divine in you
    ~
    Filip Hanik
    Software Architect
    [email protected]
    www.filip.net
    "snodx" <[email protected]> wrote in message
    news:3b4e83dd$[email protected]..
    >
    Hi all,
    Please help me out on my XML question as my Cocoon is no longerworking.
    >
    The question is titled HOW TO EXECUTE/RUN XML FILES IN WLS6.
    Thanks in advance.
    snodx

  • How to execute one .exe file with as3 in air ?

    Hi
    How to execute one .exe file with as3 in air?
    I want do this work without fscommand .
    plize help me .

    itsdhanasaraa wrote:
    But as this a web application ... By using Runtime i'm getting some probs ..
    Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
    Ain't gonna happen.
    its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
    1) it's not "taking more time to execute", whatever that's supposed to mean.
    2) there's no other way to execute something. Not that you should every use even that way anyway
    3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place.

  • How to execute a scenario File to File with SAP XI ?

    Hi all,
    I'm starting study SAP XI, i see in the link follow:
    [http://www.****************/Tutorials/XI/File2File/page8.htm]
    a scenario to exchange file to file with SAP XI.
    After designing and configuration everything (same as tutorial of this scenario), i don't known how to execute this scenario.
    Anyone can answer my question: how to execute this scenario file to file?
    Please see the link below to understand more about this scenario.
    Thanks all a lot in advance,
    Point will be reward for any valuable answer.
    Vinh Vo

    Hi Vinh,
    Hope u read all the basic documents of the XI, if not please go through once u wil come to know how to execute a scenario.
    the step-by-step procedure for a simple file-file scenario...
    First u have to finish the Design Part in the IR
    1) Create Data types
    2) Create Message Types
    3) Create Message Interface
    4) Message Mapping
    5) Message Interface.
    Here it complete the desing part.
    Then start thr configuration:-
    1) Create the Configuration Scenario
    2) Create the Business system and create the Communication Channel.
    3)  Sender Agreement
    4) Receiver Determination
    5) Interface Determination
    6) Receiver Determination.
    If u perfome this steps u wil be successfully complete u r File- File Scenario.
    follow the below link to have clear picture of file-file scenario
    STEP1:-
    /people/srinivas.vanamala2/blog/2007/02/05/step-by-step-guide-xml-file-2-xml-file-scenario-part-i
    STEP2:-
    /people/srinivas.vanamala2/blog/2007/02/05/step-by-step-guide-xml-file-2-xml-file-scenario-part-ii
    Hope this helps u a lot.....
    Thankx
    Anil
    Edited by: Venkat Anil Gannavarapu on Jun 11, 2008 11:36 AM
    Edited by: Venkat Anil Gannavarapu on Jun 11, 2008 11:40 AM

  • How to execute an external file in java ?

    How to execute an external file , where the file name of the external file is in unicode character. (i,e, may be in Chinese character).

    Process p = Runtime.getRuntime().exec("/path/to/executable");
    This is write. But my question is while the file name is in Chinese font.
    It means while a file name is in Chinese font or any unicode character that are supported by window but not in the command prompt. In this case the file name is changed to ??????.doc like.
    So, while trying to execute this it shows File not found message.

  • How to execute a exe file using javascript on app window.load.

    How to execute a exe file using javascript on app window.load.

    Hi sb00349044,
    As I have already mentioned in multiple replies to your previous questions, the SUMO forums focuses on providing help to end users with usage-questions and issues.
    For developer-related questions, please refer to one of the many resources readily available that I have linked to in the past:
    * [https://developer.mozilla.org/en-US/Firefox_OS MDN]
    * [http://stackoverflow.com/questions/tagged/firefox-os StackOverflow]
    * [https://lists.mozilla.org/listinfo Mozilla Mailing Lists]
    - Ralph

Maybe you are looking for

  • Any body using jrun?

    hello everyone. I am very new to java and here too.I have just finished the core java (some what).Now i am begining to learn jsp.Does any one know where to put jsp files in jrun server environment? Because i have a jrun server upand running, where i

  • Error connecting to COM port

    Hi everybody! I have create the application use Labview 2009. My application connect to COM port. It is very good on my computer that installed Labview 2009. When I create Installer, I add NI Measurement & Automation Explorer 4.6 in Addtional Install

  • Please help...really bad sound problem

    I have a really bad problem, I got an ipod for xmas, I installed my songs but all of them sound really bad and fuzzy and you can barely hear the singers! I can hear the parts and then when it comes to the verses, I can't hear anything but the backgro

  • PDF Editor for tablet, recomendations

    Hey guys, I have been tasked to find a software to be used on either a windows or or droid device that is comparable to "pdf expert" a proprietary iso app. mu requirements are as follows: -dropbox tie in to import documents from server -basic draftin

  • My publishing just cannot finish

    Hi, Another thread on this....but thought I'd lay out my problem so that someone who knows more can add or help. And others can get help. I am having the same problems publishing laid out by others in other threads in this forum. I cannot complete a