DOS COMMAND IN ANOTHER MACHINE

Hello!
how can I execute a DOS command in another machine which is in my same network?? I need it because I have to execute an oracle report from my java program but the Oracle Reports software is in another machine ..... ( really i don't know if it's possible to do this ....)
thanks!!

As I see it you must have an application running on that other machine that will wait for remote commands.
You can implement a simple application that opens/listens on a socket and executes commands that are coming in - this will run on the remote machine.
Then you will have to connect to that socket from your machine and send commands to it.
Maybe there are other ways but that's the first that came to my mind
You can [url http://onesearch.sun.com/search/developers/index.jsp?col=devforums&qp_name=Java+Programming&qp=forum%3A31&qt=%2Bexecute+%2Bcommand+%2Bremote] do a search  around here to find more solutions
And please DO NOT USE CAPITAL LETTERS when posting... It is considered as shouting.
Mike

Similar Messages

  • Is there a way to run dos commands on onther system?

    Hi I have connected to a port of another system where windows is the operating system. So can I run dos commands on the other system through that network connection from my computer?

    I'm not sure what you mean by "connected to a port of another system" . Which port using what software to which server?

  • Execute DOS command in current window!

    All:
    Here is my code :
    import java.io.*;
    public class BuildScript {
    public static void main ( String[] args ) {
    String[] command = {"C:\\winnt\\system32\\cmd.exe", "cls"};
    try {
    Process process = Runtime.getRuntime().exec ( command );
    process.waitFor();
    } catch ( InterruptedException e ) {
    e.printStackTrace();
    System.exit(-1);
    } catch ( IOException e ) {
    e.printStackTrace();
    System.exit(-1);
    System.out.println ( "DONE!" );
    I just want to exeute some simple DOS command from Java application. And then I run this code, it hangs there for ever. I comments out "process.waitFor()", then it print out the "DONE" however it seems that it just open another console and clear that one and exit. For the main console I start my code, nothing happened.
    Can anyone help me out how to execute the dos command in current console window.
    Thanks

    Can anyone help me out how to execute the dos command in current console window.Sorry to say but there is no way to do that.
    The best way to clear the screen is to print a few hundred newlines.
    Trust me, this is a frequently asked question.

  • How to run stored procedure in DOS command line????

    Hi,
    I want to run a stored procedure in DOS command line?
    (My_Stored_Procedure is the stored procedure that I want to run )
    This is what I did in DOS prompt
    C:\>sqlplus scott/tiger exec lMy_Stored_Procedure <Return>
    Obviously it is NOT working. Please send me the correct way to fix this.
    Thanks so much in advance for helping.
    Cuong

    Billy  Verreynne  wrote:
    BluShadow wrote:
    True Billy, but even Windows hasn't completely got away from using the "DOS" word...Yeah - the command line/shell environment is based on that of the old DOS command interpreter. But Microsoft does not make the mistake of call it DOS.
    In fact, with earlier versions of Windows NT, a 16bit DOS real-mode virtual machine was supported. This was very kewl.
    Running a large BBS with multiple nodes back then required a DOS machine per node, an IPX network, and a Novell file server.Novell Netwars. ;)
    Ahhhh! good old DOS... so many good programs written at that low level, outside the Windoze environment.Yeah.. cut my teeth on writing code for DOS. Still have all my old BIOS and assembler manuals for it. Wrote my own screen s/w (write to a buffer and then move it into the video buffer, instead of writing char wise to the video buffer via interrupts), mucking about with my own concurrent threading model (using very simplistic cooperative multitasking) and so on. Heck, wrote tons of s/w on DOS... :-)Yeah I've still got a copy of my old machine code programs for writing to buffers and screen memory switching for smooth animation. Run them nowadays and they run like sh!t off a shovel. And all my old coursework including writing an interpreted language and multi-window (dos based windows) editor, parser and the code to execute the language and display the output. Oooo, and so much other stuff.
    Awesome back then as you got really intimate with the o/s and hardware. This is sorely lacking today in environments like Java. And I think the reason why so much code written today is less than optimal - to put it kindly.Exactly. Started for me on the Sinclair zx81 (writing Basic), then the Sinclair Spectrum (Basic and Assembly), then Sinclair QL (yes I really had one!) and then the BBC Master 128K (where I got to writing my own rom filing system and creating my own eproms, to integrate with the word processor for additional printing features etc. as well as storing games on rom for speedy loading - and I still have it and it still works!)
    It's that level of working with the underlying memory and assembly language that gives you the understanding of how values are passed between code using the stack and registers, and how memory allocation and referencing is done etc. As you say... it's missed in a lot of todays teaching, which just seems too high level and misses the basic concepts of things such as datatypes and why they are different. I bet half the modern programmers wouldn't have a clue how to do multiplication or division of binary numbers using the carry flag.

  • I Need to print a portion of a pdf file using a dos command. Can i ?

    Hello,
    I Need to print a portion of each page of a pdf file using a dos command without opening it.
    Can i do it ? if yes how ?
    Thanks in Advance for your help.

    hello,
    Thanks for your reply. If i use another printing software like ghostscript
    or foxit reader will i be able to do it ?
    Regards
    Le 14 déc. 2014 18:49, "Bernd Alheit" <[email protected]> a écrit :
        I Need to print a portion of a pdf file using a dos command. Can i ?
    created by Bernd Alheit <https://forums.adobe.com/people/Bernd+Alheit> in *Printing
    & Prepress* - View the full discussion
    <https://forums.adobe.com/message/7013717#7013717>

  • Make unzip scrip run on another machine

    H i all so I came up with this little script. It's very unoptimized and I want to make the unzip part into a function. My main question is I'm copying this zip folder to another machine. Will it actually use this machine to unzip or will the work load be
    done on the host that I'm sending it from.
    Here's the code:
    $a = Get-Content C:\Users\cody-horton\Desktop\list.txt
    function Expand-ZIPFile($file, $destination)
    $shell = new-object -com shell.application
    $zip = $shell.NameSpace($file)
    foreach($item in $zip.items())
    $shell.Namespace($destination).copyhere($item)
    for($i=0;$i -lt $a.Length; $i++){
    if(!(Test-Connection -Cn $a[$i] -BufferSize 16 -Count 1 -ea 0 -quiet)){
    Write-Host $a[$i] -foregroundcolor red
    else{
    #Create directory
    New-Item -ItemType directory -Path "\\$($a[$i])\C`$\Users\Public\Documents\Android SDK\adt-bundle-windows-x86_64-20131030\sdk\" -Force
    #Move zip to directory
    Copy-Item "\\nlcr2553218x4-1\C`$\Users\ttinker\Desktop\adt-bundle-windows-x86_64-20131030.7z" "\\$($a[$i])\C`$\Users\Public\Documents\Android SDK\adt-bundle-windows-x86_64-20131030\sdk" `
    -Recurse -Force
    #Unzip file
    Expand-ZIPFile –File "\\$($a[$i])\C`$\Users\Public\Documents\Android SDK\adt-bundle-windows-x86_64-20131030\sdk\adt-bundle-windows-x86_64-20131030." `
    –Destination "\\$($a[$i])\c$\Users\Public\Documents\Android SDK\adt-bundle-windows-x86_64-20131030\sdk"
    #Delete zip folder
    Remove-Item "\\$($a[$i])\C`$\Users\Public\Documents\Android SDK\adt-bundle-windows-x86_64-20131030\sdk\adt-bundle-windows-x86_64-20131030.7z" -Recurse
    Write-Host $a[$i] -foregroundcolor green
    $b = new-object -comobject wscript.shell
    $c = $b.popup("DONE!!",10,"Test Message Box",1)
    Would I need to make a batch file and if so how would I do this. Thanks

    You'd need to use either Invoke-Command (if you have PS Remoting enabled) or PSExec (if not) to launch the extraction script on the remote machine.

  • Problem in recovering a database on another machine

    Dear All,
    I need your help in restoring and recovering a database on another machine. I don't have access to old machine to get logfile or archivelogs. I have taken full backup using RMAN. I have restored the database using rman sucessfully and trying to recover the database. RMAN have't restored the logfile. Database version is 8.1.7.4, OS is Solaris 8. In recovery, its showing the problem in rbs file. I'm showing all command and error. Just give me any idea that how to recover it sucessfully.
    SVRMGRL>recover database using backup controlfile until cancel;
    ORA-0279: Change 1935345519 generated at 08/19/2005 16:45:50 needed for thread 1
    ORA-0289: suggestion: /u07/oraexp/PROD/arch/arch_1_29958.arc
    ORA-0280: Change 1935345519 for thread 1 is in sequence #29958
    specify log : {RET}...
    cancel
    ORA-01547: warning: Recover succeeded but open resetlogs would get error below
    ORA-01194: file 2 needs more recovery to be consistent
    ORA-01110: data file 2: '/u06/oracle/oradata/PROD/rbs01-PROD.dbf'
    This RBS file size is 7GB. Is it the reason of problem. Even I tried until time, but its also has same error.
    SVRMGRL>recover database using backup controlfile until time '2005-08-16:20:10:00';
    ORA-0279: Change 1935345519 generated at 08/19/2005 16:45:50 needed for thread 1
    ORA-0289: suggestion: /u07/oraexp/PROD/arch/arch_1_29958.arc
    ORA-0280: Change 1935345519 for thread 1 is in sequence #29958
    specify log : {RET}...
    cancel
    ORA-01547: warning: Recover succeeded but open resetlogs would get error below
    ORA-01194: file 2 needs more recovery to be consistent
    ORA-01110: data file 2: '/u06/oracle/oradata/PROD/rbs01-PROD.dbf'
    Why its asking for archive file which generated on 19th, when I'm trying to recover until 16th only.
    Regards
    Rakesh

    Hi.
    What is the size of the redo logs in the database. With a small amount of transactions, there might be redo in this particular archived file from two days back. The timestamp of the archivelogfiles does not indicate that all redo in the file is from this day. It might have changes several days back if no logswitch occured inbetween.
    So, if I were you, I would provide all archivelogs required to get the datafiles consistent.
    As a matter of fact, if archived redo is in the following folder :
    /u07/oraexp/PROD/arch/
    I would use recover database until time and press return for all archived logs svrmgrl comes up with.
    I assume that the database was closed normally prior to taking the offline backup.
    Good luck.
    Rgds
    Kjell Ove

  • ConnectException when running in another machine

    Hi,
    I am getting ConnectException when i am running the server in another machine which is linux server,and when i am calling it from my local system it throws ConnectException.
    But i didn't get it when i am running both in my local system.Please tell what modifications have i to made with my programs.
    regards,
    j.mouli

    The problem is with the command being used to start the RMI server. If you are starting it with the flag
    -D:java.rmi.server.hostname=localhost
    chang the flag to
    -D:java.rmi.server.hostname=johnb

  • Using mysql database on another machine without having mysql installed

    Hi...
    I was wondering whether its possible to copy a Mysql database that I have created on my machine, take it to another machine which does not have Mysql command line stuff installed and use my own JDBC connection to the copied mysql database and start manipulating my data. I don't know if this is possible or not ..
    The main purpose of doing this is I am creating a Java program which uses a Mysql database and I want to know if I give it to someone else to use it do they have to install Mysql and all the package or can they simply start using it.
    Thanks a lot
    Sassan

    masijade. wrote:
    TuringPest wrote:
    masijade. wrote:
    Sasanpad wrote:
    Hi...
    I was wondering whether its possible to copy a Mysql database that I have created on my machine, take it to another machine which does not have Mysql command line stuff installed and use my own JDBC connection to the copied mysql database and start manipulating my data. I don't know if this is possible or not ..No. Not only would it be in violation of the terms of your license, but a MySQL database is a client/server type setup. No MySQL binaries, no server, your client (jdbc) cannot connect.im just curious because im new to mysql myself, but what do you mean that its a violation of his license?
    do you mean for the commercial version?If he licenses his application under GPL, okay, no problem. Otherwise I read this quote
    Free use for those who never copy, modify or distribute. As long as you never distribute the MySQL Software in any way, you are free to use it for powering your application, irrespective of whether your application is under GPL license or not.
    to mean that you are not allowed to distribute MySQL (or any part of it, unless your application is GPL licensed) with your application, and if he distributes even just the data directory, he is distributing at least a part of MySQL.
    Other's may not see it that way, but do you want to take the chance?The critical element is the word distribute. If he tries to embed MySQL in the application he is giving to his users, he's distributing it. Hence a violation of the license. That does not in any way prevent him from including scripts that when the application is installed goes out and runs the script on the user's installation of MySQL and builds the databases and whatnot his application needs on their MySQL installation.
    Now, for the OP. If all you're keeping up with is urls and such and you don't have hundreds of them. I wouldn't bother with a db at all. a properties file would actually serve your purposes, and xml would suit just fine. Of course you'd have to have access to the file system and such but no licensing issues at all.
    PS.

  • Adding another machine to Primary Zone

    Adding another machine to Primary Zone
    I have a good split-DNS configuration that has been working without issue for some months now since I installed OS X Server Snow Leopard (Mac Mini) at my company's office. We have another machine used as a file server (Mac Pro), without the dedicated server OS installed.
    We want to add a virtualized instance of Windows Server 2008 R2 as a guest OS on the Mac Pro via VMWare Fusion. We want to use this Windows Server instance to host some private web based services for our corporate team (intended to be reachable from within the local private network, and remotely, from the public internet (with proper authorization to access only).
    So far so good:
    -WinServer2008R2 installed as a guest OS on the host Mac Pro
    -WinServer's virtual NIC is in bridged mode (joins the host OS's physical network)
    -WinServer instance configured with an IP 10.0.1.33, which is set aside and reserved for the WinServer by the local DHCP service on the same network
    -WinServer successfully installed and tested IIS7 - both localhost from the WinServer instance and http://10.0.1.33 from other machines on the local private network (and from remote VPN clients) resolve to the WinServer's IIS default page properly.
    Where I am stumbling now in configuring DNS on the Mac Mini to properly forward requests aimed at the WinServer instance.
    DNS for the local domain is controlled by the Mac Mini. The configuration has been quite simple up to now, as that has met our needs. Just one Primary Zone and one Reverse Zone. We have an external DNS service from DYNDNS that handles any request for our domain from the external public internet. For now I'm not concerned with altering the external DNS service. Once I get the name service to properly resolve requests for the WinServer instance from the local domain, then I'll move onto matching up the external DNS.
    --Primary Zones
    Primary Zone:
    Primary Zone Name: ourcompany.net.
    Nameservers: Zone: ourcompany.net. Nameserver Hostname: server.ourcompany.net.
    --Records
    Machine Record:
    Machine Name: server.ourcompany.net.
    IP Address: 10.0.1.11
    --Reverse Zones
    Reverse Zone:
    Reverse Zone Name: 11.1.0.10.in-addr.arpa.
    Nameservers: Zone: 11.1.0.10.in-addr.arpa. Nameserver Hostname: server.ourcompany.net.
    Resolve 10.0.1.11 to: server.ourcompany.net.
    The -checkhostname command returns:
    Primary address = 10.0.1.11
    Current HostName = server.ourcompany.net
    DNS HostName = server.ourcompany.net
    The names match. There is nothing to change.
    dirserv:success = "success"
    So I attempted to add a Machine Record to the Primary Zone with the following settings:
    Machine Record:
    Machine Name: dash.thewcateam.net.
    IP Address: 10.0.1.33
    When I did this it added the following Reverse Zone:
    Reverse Zone:
    Reverse Zone Name: 1.0.10.in-addr.arpa.
    Nameservers: Zone: 1.0.10.in-addr.arpa. Nameserver Hostname: server.ourcompany.net.
    Resolve 10.0.1.33 to: dash.ourcompany.net.
    And with the following records added I don't seem to have a proper resolution to 10.0.1.33 when requesting dash.ourcompany.net.
    I'm wondering where I should look next in troubleshooting this issue. Any pointers or advice would be very appreciated.

    Remove the "Reverse Zone Name: 11.1.0.10.in-addr.arpa."
    It's probably left from when you first configured the server.
    Though the "Primary Zone Name: ourcompany.net." seems correct.
    Then update the 10.0.1.11 record so it's added to the right reverse zone - "1.0.10.in-addr.arpa."
    In a MacPro we run VM Ware on a separate interface (en1/"Built in 2") that is forced up using a LaunchDaemon. "Built in 2" must be active in Network config in OS X but don't need to be configured (red "LED").
    That way the MacPro can use it's own IP on the en0 interface without disturbing en1 and vice versa.

  • Using FTP NOOP to ping another machine.

    Hi All,
    I want to use FTP NOOP command to ping another machine. But it seems that NOOP is not available by default.
    On running ? on FTP prompt I am unable to see NOOP in supported commands.
    ftp> ?
    Commands may be abbreviated. Commands are:
    ! cr mdir protect safe
    $ delete mechanism proxy send
    account debug mget put sendport
    append dir mkdir pwd site
    ascii disconnect mls quit status
    bell form mode quote struct
    binary get mput recv sunique
    bye glob nlist reget tcpwindow
    case hash nmap remotehelp tenex
    ccc help ntrans rename trace
    cd lcd open reset type
    cdup ls passive restart user
    clear macdef private rmdir verbose
    close mdelete prompt runique ?
    Hence I want to know are there some specific configurations to perform for enabling NOOP in ftp?
    Regards,
    Gunjan

    I suspect that its your ftp client which does not support NOOP, most FTP servers does.
    Try the command
    quote noop
    'quote' makes it possible to send a command directly to the ftp server, and hence does not require that the client supports it.
    .7/M.

  • Executing a dos command from java in windows nt

    i need to execute the
    " net send"
    command from the command line in windows nt, from within my java program... is there any way that i can execute cmommands in the dos command shell? or rather, does anybody know a way i can send a message ( in windows ) from java, from one computer to another over the lan?? I cannot have a java programming running on all the other computers, so i cannot make my program serve, it must just send the messges using a lan command....
    (the net send command just sends a message in the form of a pop up box on the receiver's screeen)
    thanks a bunch guys!!!
    Thanks a bunch guys!!!!

    you can do that with exec() in Runtime.
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec(command here);but before you do that you need to read this:
    http://www.javaworld.com/jw-12-2000/jw-1229-traps.html
    hth
    partha

  • DOS command from java applet

    Hi, I need to perform a DOS command from Java (using WFC if needed)...
    I have no idea, so please help!
    Thank you.

    OH OH OH WAIT! It is an Applet! i think there will be some security issues here! Sure enough you can't execute commands on the system from an applet unless you make some changes on the java.policy files on the client machine (that means, if your applet is in a web page, every machine which view your page).

  • Execute DOS command from java application

    Hello,
    I want to execute a DOS command (MOVE, in order to move an image from a folder to an other) from a java application. How can I do this?
    Francesco

    Yes I have tested it and it is working but only when executing a bacth file. For instance:
    Runtime rt = Runtime.getRuntime();
    try{
         Process proc = rt.exec("move.bat");
    }catch(Exception ex){
         ex.printStackTrace();
    }and the command in move.bat is:
    move c:\\temp\\*.gif C:\\temp2
    You don't have to use double slashes in batch files, only in Java. But anyway it is working both ways.
    It is not working when you try to execute the command without the batch file:
    Process proc = rt.exec("move c:\\temp\\*.gif C:\\temp2"); -> this will not work.
    It should work. Try to execute another command to see what happens.

  • Execute MS-DOS command in Transaction

    Hello,
    I am copying encrypted files from the ftp server with the action: FTP Input.
    This works fine, but after this action i want that it executes a dos command from xMII to decrypt the files. I have a statement like this:
    raes-1.exe -d %TEST% DELFOR_20080507095802864.aes DELFOR_20080507095802864.xml
    I already tried some things, but i do not use a htm page or javascript. I want only the functions in a transaction and schedule this transaction. It has to look every day if their are files. Copy and decrypt them.
    When i executed through windows --> start --> run it works, so somehow it should also be possible to execute the command through MII.
    Kind regards,
    Nick
    Edited by: N. Meuter on Oct 17, 2008 3:38 PM

    I have developed it on my own system and uploaded it through the xmii menu custom action blocks.
    Now i deleted the action block and wanted to upload it again. But it did deployed directly. Where should i clear java? On my own computer or server?
    My java console on local machine says this:
    JNLP JREDesc in Component ignored: null
    JNLP JREDesc in Component ignored: null
    JNLP JREDesc in Component ignored: null
    ConsoleLogger::Creating NEW instance...
    WARN - Could Not Load Muffins, Using Defaults: http://smnlxmii2:50000/XMII/CMSLogicEditor/LookAndFeel
    <<< frog.jar: version 5.4.6  02/01/06  sap.theme: Tradeshow >>>
    Unable to localize label 'null', null
    Unable to localize label 'null', null

Maybe you are looking for

  • Error while creating Planned order in SAP PP

    Hi , I am creating planned order for finished material and system has given below error - Please specify the order deadlines in ascending order. SAP Message Error- Message no. 61009  Please specify the order deadlines in ascending order Very first pl

  • Weblogic starting error

    Hi, Getting the following error while starting the examples weblogic server. Please help * To start WebLogic Server, use a username and * * password assigned to an admin-level user. For * * server administration, use the WebLogic Server * * console a

  • Links in navbar work in iWeb, not on site itself

    Hi Folks, I got rid of the iWeb default navbar and made my own. I am linking to other pages within my site. They are set up correctly in the inspector, and in fact, when I click on the links in iWeb, they take me to the correct place. However, when I

  • SAP-XI Test Server File path

    Hi all,   I am accessing the SAP-XI test server(Web Server Provided by SAP). In this I am going to do FILE->IDOC Scenario. Now which File path  I want to mention in File Adaptor to place the Source XML file? regards, Khaja.sk

  • Minibridge not working properly when merging 3 JPG files to HDR

    When I select three files with mini bridge and then select Photishop...Merge to HDR Pro... then I get an advise to better merge three RAW files...and END. When I open the same three files and then go to Automate...Merge to HDR Pro....I get the same w