How to make system call remotely?

i am working on client- server application i want to execute a system call on cllient machine from server how should i do it?

If by "system call" you mean Runtime.exec(), then
Runtime.getRuntime().exec(theCommand)The command needs to be sent from the client. And read this:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

Similar Messages

  • How to make system call to execute command line in JAVA?

    Hi,
    I am new in JAVA. How to make system call to execute the following command line in JAVA in LINUX environment.
    rpm -qa jdkIn C programming, use as such:
    system ("rpm -qa jdk");
    How about JAVA?
    Thanks.

    Runtime.getRuntime().exec. But first read this:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • I have 3G sim card how to make reugular call in ipad air 4G. tell me.

    i have 3G sim Card how to make regular call in ipad iar 4G. tell me.

    You have to use an app such as Skype or Viber. iPad has no
    telephone capability as sim is data only.

  • How to make iPad a remote?

    how to make iPad a remote for Apple TV?

    Download the Apple Remote app which will control Apple TV and the iTunes library on your computer.
    https://itunes.apple.com/us/app/remote/id284417350?mt=8

  • How to make a call  to service from site studio templates?

    Hi,
    May be this is very basic but I am not able to figure out how to make a call to a service from site studio templates (hcsp). I have seen one example of service call in the dynamic list fragment. It makes a call to SS_GET_SEARCH_RESULTS service using executeService() method. But it doesn't take any parameters and also not very how returned results are captured.
    I want to execute WCM_PLACEHOLDER service. It takes 2 main parameters dataFileDocName and templateDocName. The returned result is typically a html response.
    The service typically is executed using http request and the url would be something like this
    http://hd-pratapm/ucm/idcplg?IdcService=WCM_PLACEHOLDER&dataFileDocName=VIRTUSAINC&templateDocName=DETAILS_REGION_TEMPLATE
    I think SS_GET_SEARCH_RESULTS service works in the similar fashion. I want to execute WCM_PLACEHOLDER service too using executeService() method. How to work with this? How can we pass parameters and capture returned results?
    Regards,
    Pratap

    Hey Pratap,
    If you are on a standard Site Studio template (page or subtemplate) you should be able to call the wcmPlaceholder idoc function directly. In fact calling the idoc function provides a lot more functionality then the service call (they locked down a few things in the service call since it is designed to be called from an external application).
    The idoc call would look something like: <!--$wcmPlaceholder("Sales", "placeholderDefinitionDocName=placedef_salescontact")--> (taken from page 208 in this doc: http://download.oracle.com/docs/cd/E10316_01/SiteStudio/10gr4/Pdf/Site_Studio_10gR4_Designer_Guide.pdf)
    As a general note when you are in idoc script and want to execute a service you call <$executeService()$> as you saw in the dynamic list. The parameters that the service runs on are in the data binder of the current request. To set parameters for an execute service you simply set idoc variables on the page before it. Example:
    <!--$QueryText="dDocType <matches> `Document`" -->
    <!--$executeService("GET_SEARCH_RESULTS")-->
    As for the response when you execute an idoc function, like wcmPlaceholder, that returns a String the response is immediately output to the page in the location you called the function. This would be similar in concept to a jsp scriptlet that outputs a string <%=myResponseString%>
    Hope that helps,
    Andy Weaver - Senior Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw_OTN_ECM >
    Edited by: Andy Weaver on Jul 7, 2010 7:59 AM
    Added response detail.

  • How to make video calls on i phone 4s

    how to make video calls on i phone 4s

    kalidag
    Currently Being Moderated  Re: how to make video calls on i phone 4s
    Jan 30, 2012 1:35 AM (in response to wjosten)
    but we can make video call using our SIM network.. it charge morethan a voice call.I am looking for that on my i phone
    Dear cheonweb,
    The person asking about  3G video cal with out using GPRS(cellular network data plan or wifi) by using cellular network data plan it is possible but with out using cellular network data plan we cant make 3G video cal in apple phones.

  • How to make Conference Call in Xperia Z1

    How to make conference call in Xperia Z1. First of all I am not sure whether that facility is available in Z1. 

    Hi and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    I suggest that you take a look at the following link for further instructions about how to place conference calls:
    http://userguide.sonymobile.com/referrer.php?region=gb&product=xperia-z1#Conference-calls.html
    Note that this function needs to be enabled at your subscription from your operator in order to make it work.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • How to make CSD call in NOKIA E71

    Hello,
    I bought two Nokia E71 mobiles with BSNL 3G connection. My service provider(BSNL) providing 3G service. E71 is connected to PC there i dialed to another phone which is conneted to other PC. when i dialed from hyperterminal in winxp by using ATD commnad with out semicolon. I am getting connection error messge on my phone. NO CARRIER on hyper terminal.
    I don't know what the problem is i tried with all commands no use. Is there any setting required for NOKIA E71. How to make data call (CSD call) by using Nokia E71.
    You help is very much appreciated..
    -Vijender

    Hi
    this may or may not be of help.
    I was having a similar problem with a 6230i.
    When trying to make a data call  the No Carrier signal would come back.
    After some research I changed +cbst form 0,0,1 to 7,0,1
    at+cbst=7
    This apparently gives the receiving modem more time to connect. It sends the no carrier signal 30 seconds later after appearing to connect, I still dont get the connect 9600 response.

  • How to use system call in assembler

    I write codes to display the dictionary using C,
    and it can run well,and then I want to use system call
    in assembler to realize the same function ,but it doesn't
    display the dictionary,how to correct it?
    Look:
    //C
    #include <stdio.h>
    int main()
    char *name[2];
    name[0]="/bin/ls";
    name[1]=NULL;
    execve(name[0],name,NULL);
    return 0;
    //Assembler
    .data
    msg:.string "/bin/ls"
    .text
    .global _start
    _start:
    movl $0xb,%eax
    movl $msg,%ebx
    mov $msg,%ecx
    movl $0,%edx
    int $0x80
    movl $1,%eax
    movl $0,%ebx
    int $0x80

    If you compile with -Wwrite-strings, as I like to do for new code, you'll notice it warns about assigning the address of read-only memory to a plain char *. You might want to declare name as follows to avoid accidentally trying to modify it:
    char const *name[2];
    But as for your question. The execve system call requires a pointer to a list (array) of pointers to strings in %ecx. You are passing it a pointer to a single string, which means it will try to interpret the string ("/bin/ls")as a series of pointers to strings, with potentially disastrous (and certainly weird) results.
    Last edited by Trent (2012-12-28 15:31:38)

  • How to make a call to function module of R/3 side in BW?

    I am writing a code in BW to check some discrepancies in data. But this code requires some values which are given as output to the function module, which is present on R/3 or PC1 system. So is there any way by which i can make a call to the R/3 function module in BW so that i could fetch its records directly in BW! any help or suggestion would be apprecited.

    Hi,
    Once you are administrator or overseer or owner of process that you want to monitor, you can use Guided Procedures Runtime Workcenter (Runtime WC role) which will provide you information (process title, start date, due date, description and progress) about running processes, completed processes, terminated process and erroneous processes.
    Another way to reach this information is through Maintain Process menu in GP Administration (GP Administrator role) that will provide you another administration tasks like change authorization, terminate instances, complete step or delete instances.
    Unfortunately GP doesnu2019t provide other UIs or Reports. You may use GP APIs to develop your custom report. As soon as I have time I will publish a blog with a custom report that I developed and it may be helpful to you.
    Best Regards,

  • How to make a call in j2me using bluetooth?

    Hi All,
    I wanted to make a call to another device which is in my bluetooth range i wanted to know how to make such a call?And i have heard that using bluetooth for making calls we can only do half duplex communication that is at a time only one person can speak while the other hears ?I wanted to know that can we do a full duplex communication also so that both of them can speak as well as listen at a time.
    Thanks

    To make a call using javax.microedition.midlet.MIDlet.platformRequest().
    for eg:
    String telNo = "tel:+9682651761543";
    platformRequest(telNo );

  • How to make a call in j2me using bluetooth technology?

    Hi All,
    I wanted to make a call to another device which is in my bluetooth range i wanted to know how to make such a call?And i have heard that using bluetooth for making calls we can only do half duplex communication that is at a time only one person can speak while the other hears ?I wanted to know that can we do a full duplex communication also so that both of them can speak as well as listen at a time.
    Thanks

    To make a call using javax.microedition.midlet.MIDlet.platformRequest().
    for eg:
    String telNo = "tel:+9682651761543";
    platformRequest(telNo );

  • How to make a call in J2ME MIDLET

    How to activate a call in J2ME ?
    Eg. On click of an icon a call should be made to a predifined number in the app.

    To make a call using javax.microedition.midlet.MIDlet.platformRequest().
    for eg:
    String telNo = "tel:+9682651761543";
    platformRequest(telNo );

  • How to make a call from a Web page

    How can I make a call from a number on a Web page ?
    If I select the number, I can only copy it ... then I cannot cut and paste into the phone dialing section ???
    I thought that by selecting the number on the Web page and holding it this would trigger the dialing ... like I used to do with my 9900 Bold BB.

    Are you holding the number or just pressing it quickly? Holding anything will produce a menu whose options would include cut & paste but just pressing the number should activate an action, in this case dialing the number.
    Try just pressing the number with a normal press and not holding it and post back with your results.  
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • How to make system update with "use automatic configuration script" and an URL

    Hello,
    all our laptop using "use automatic configuration script" with an "accelerated_pac_base.pac" prxy setting.
    How can we make system update work with that ?
    And no way for us to by pass this proxy settings with
    Thanks

    I mean there is no general method which is capable of correcting all possible errors found by schema validation.
    For example if the validation says it expected to find an <organization> element or a <company> element but it found a <banana> element, there is no way to determine what repair is necessary.
    Anyway the requirement is fighting against the way things work in the real world. The purpose of validation is just to find out whether a document matches a schema. If it doesn't, then too bad. Send it back to be fixed or replaced. If you are having a problem because you repeatedly get documents which don't quite match your schema, then you need to train the users to produce valid documents or to give them tools which help them do that.

Maybe you are looking for

  • How do I stop email on Mac from receiving?

    With all the questions about how to stop mail from recieving, why hasnt apple come put with a stop button for receiving and sending mail? It is not too difficult that sometimes you dont what to be receiving mail or want to send at a time of your choo

  • Contacts Indexing Problem

    I have the iPod touch with the recent 3.0 upgrade. I am having problems with the Contacts application. When ever I touch the letter indexing on the right side of the contacts, the entire list of letters turns grey and I am unable to choose or go to a

  • This is driving me nuts! Please help!

    I created an animation of scrollwork (from a png file) that looks like it is being drawn realtime by using the erase a bit at a time and then reverse the frames method, however at the end of this animation I want the completed drawing to fade out. Ho

  • ClassFormatError when using JPA standalone

    I'm pretty new to JPA and I'm trying to run it standalone (that is, not in an Application Server). I've created another persistence unit for this purpose, and things used to work (more or less) when testing with Maven. However, it never worked when r

  • My log in screen is gray

    My Mac log in screen (where you select a user account) is grey.  It logs in ok, maybe a bit slow and works fine.  Is this something I need to be concerned with?