Command line client

hi all
i m goin to implement rmi. my server wud be the jvm of a running program. i want to write a client which would run frm the command line and invoke certain methods of the server. i want to know if this is possible and if yes .. HOW

You are writing an rmi implementation and don`t know how Streams work? (that was the hint of the message). Good luck ;-)
Greets,
Barre

Similar Messages

  • Create log entries with command-line client?

    I am getting an error message that seems to indicate that it's impossible to create log entries with the command-line client. Can I ask one of you FCS gurus to advise me?
    Note the disturbing error message below: *Entity /log doesn't know how to do create*
    root# ./fcsvr_client create /log --xml < /tmp/logentry.xml
    <?xml version="1.0"?>
    <session>
    <values>
    <value id="CODE">
    <atom>E_NOTSUPP</atom>
    </value>
    <value id="DESC">
    <string xml:space="preserve">Entity /log doesn't know how to do create</string>
    </value>
    <value id="SRC_FILE">
    <string xml:space="preserve">PmdEntity.C</string>
    </value>
    <value id="SRC_LINE">
    <int>2017</int>
    </value>
    <value id="ERROR_TYPE">
    <atom>ET_PERM</atom>
    </value>
    <value id="ADDRESS">
    <string xml:space="preserve">/log</string>
    </value>
    </values>
    </session>
    root# cat /tmp/logentry.xml
    <?xml version="1.0"?>
    <session>
    <values>
    <value id="LOGASSETID">
    <string xml:space="preserve">26</string>
    </value>
    <value id="LOG_DETAIL">
    <string xml:space="preserve">I am your log entry detail.</string>
    </value>
    <value id="LOG_STATUS">
    <string xml:space="preserve">OK</string>
    </value>
    <value id="LOG_TYPE">
    <atom>response</atom>
    </value>
    <value id="LOG_USER">
    <string xml:space="preserve">admin</string>
    </value>
    <value id="LOG_SUMMARY">
    <string xml:space="preserve">Log Summary from Command-Line</string>
    </value>
    </values>
    </session>
    Message was edited by: dpotter-ntc

    Hmm, no, my 1.5.2 instance logs script responses twice- once to say it is executing and again after the process terminates to say that it ran. The second entry is where any stdout is printed. I don't know of any setting that would turn this off, it has always been there for me.
    A typical script response log entry looks like this:
    Summary
    "response \[Response Title] script triggered by Subscription \[Subscription Title] complete"
    Detail
    "response complete, completed command /fcsvrbin/\[scriptname.sh] with arguments { 43, 8 } "
    "stdout would print here, if there is any"
    You probably already tried it, but try filtering your log search for "script triggered" since it can be easy to miss spotting entries on a busy system, and they don't necessarily show up side by side in the logs with the other responses in their respective stack.

  • Can't start DTR Command Line Client

    Hi all,
    I have problems with starting the DTR Command Line Client. I followed tips given by Ken in [configure dtr command line client;
    But when I launch the dtrshell.bat file i get an error message :
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/tc/logging/Location at com.tssap.dtr.client.commandline.DTRShell.<clinit>(DTRShell.java:21)
    The dtrshell file is under IDE\IDE70\eclipse\plugins\com.tssap.dtr.client.vfs_2.0.0. I can not find it under IDE\JDT. Is this correct ?
    Please help.

    Hi,
    This thread might help you,
    configure dtr command line client
    If you still get error, then unintstall and install again !
    Regards
    Srinivasan T

  • Using the command line client...

    I've got a few thousand videos, with metadata, that I have to add to an existing FCS install. Right now, I'm just trying to figure out the proper way to use the command line.
    If I run the following command as root (paasset_predict_motorvideo is the name of my metadata set, as listed in the admin app...)
    bash-3.2# ./fcsvr_client createasset paasset_predict_motorvideo /Users/bfinley/Desktop/test.mov
    I get the following error:
    { CODE = E_NOTSUPP, DESC = Entity /Users/bfinley/Desktop/test.mov doesn't know how to do anything, SRC_FILE = PmdEntity.C, SRC_LINE = 1509, ERROR_TYPE = ET_PERM, ADDRESS = /Users/bfinley/Desktop/test.mov }
    If I pass in the --host, --user, and -pass on the same command, i get:
    { CODE = EMISSINGPARAM, DESC = CURRENTPERMID missing in PmsTask_QueryPerms, looks like unknown node failed to pass it down to child unknown node, NODE = ["PmsTask_QueryPerms" 0x2a51c50, ref=3, wref=2] taskState=0 dbqueue=0x184fb64 needTrans, SRC_FILE = PmsTask_QueryPerms.C, SRC_LINE = 136 }
    I don't need to add any metadata to it, and i get the same error whether I enter any metadata at the end of the query or not.
    I just have a pile of videos, the filenames of which are keys to a table that contains the rest of the metadata, and I want to automate the addition of them to the new FC Server install.
    Am I going about this the wrong way?
    Thanks in advance.

    Brian:
    I've start by placing assets into a device that is configured with Final Cut Server (FCSvr).
    Example, let say you have a folder on your desktop name 1000videos.
    Create a device in FCSvr and map it to /Users/bfinley/1000videos.
    Name this Device with the name of your choice i.e. Library2
    Don't apply any scan schedules to this device etc.
    After you're done with that determine the device id of the new created device by running this command
    ./fcsvr_client search /dev
    you get some output like
    Address DEVICE_NAME DEVICE_TYPE
    /dev/7 Archive_Device filesystem
    /dev/13 Library filesystem
    /dev/10 Media filesystem
    Note down the device id of your newly created device i.e. /dev/13
    Next assuming that you have a file with a filename of test.mov
    use the following command
    sudo fcsvr_client createasset paasset_predict_motorvideo /dev13/test.mov
    you should receive a response to this output containing the newly create asset id.
    Hope this helps.
    Nicholas Stokes
    XPlatform Consulting
    [email protected]

  • Use command line bittorrent client to seed only

    Assuming I have an 8GB file stored in /home/user/store/some_file and a .torrent file stored in /home/user/store/some_file.torrent
    I want to use a command line client (bittorrent or bittornado) to seed the file to others in my LAN.
    If I do:
    user@host:/home/user/store$ /usr/bin/btdownloadheadless --minport 6000 --maxport 8999 /home/user/store/some_file.torrent
    It for some reason downloads the file (???) instead of simply seeding it?
    How can I accomplish this?

    It for some reason downloads the file (???) instead of simply seeding it?
    I'm just guessing here but couldn't "/usr/bin/btdownloadheadless" have anything to do with it?
    From the command line you can also use rtorrent or deluged (the Deluge daemon) running in the background.

  • VPN Client disconnection from command line

    Hi,
    I want to connect to IPsec VPN on ISA500 by VPN Client (v 5.0.07.0440, the last version, I think), using command line parameters.
    I can connect with the command:
    "%programfiles%\Cisco Systems\VPN Client\ipsecdialer.exe" -c -user myUser -pwd myPassword "MyConnectionEntry"
    but i don't know the command to disconnect from command lines.
    If I do
    "%programfiles%\Cisco Systems\VPN Client\ipsecdialer.exe" -?
    I obtain the list of parameters
    vpngui [-c | -sc [sd] [-user <username>] [-pwd <password> ! -eraseuserpwd]] <connection entry>
    but I don't unterstand what I have to do... I try every combination using -sd parameter (I think means for silent disconnect), but in every case I can only to show VPN interface  without disconnect anything...
    Can anyone help me?
    Thanks

    Prasath,
    This appears to be a data flow issue.  You need to look in the dataflow log file.  Your information indicates the project name is SAMPLES.xml, and the data flow ID is D20091213_014350765.  Look at the data flow log file in
    C:\dqxi\11_7\repository\configuration_rules\runtme_metadata\project_SAMPLES\D20091213_014350765
    Alternatively, you can temporarily replace the transactional reader and writter transforms with their corresonding batch transforms, and run the job from the Project Architect.  Any errors will be displayed in the Running window.
    Paul

  • How to run ADF command-line test-client on standalone weblogic host

    I have followed the steps to create a test client for the ADF application. In used the following link:
    http://download.oracle.com/docs/cd/B31017_01/web.1013/b25947/bcquerying007.htm
    The above link does not talk about how to setup the environment where the standalone weblogic is installed to be able to run the test client.
    I can run it in the jdeveloper environment.
    I can also run from the command line on the development host, by cut-paste the command from the jdeveloper output log tab.
    I am trying to run this client on the machine where we have a weblogic installed (standalone) for testing. We can run our ADF application from the browser with no issues. We want to automate and run some testing related to the ADF model (non-viewcontroller part) from the command line on this test stage.
    Which/Where are the ADF libraries?
    How can I add our application jar deployed on the weblogic (ear file) to the CLASSPATH?
    What other libraries ADF/Weblogic do I need for the command line test client?
    What am I missing?
    Thanks for any help.
    Edited by: mmunawar on Jul 2, 2011 1:03 PM
    Edited by: mmunawar on Jul 2, 2011 1:04 PM

    create weblogic application server connection from jdeveloper and then Deploy that application through jdeveloper in the weblogic application server and then run it from jdeveloper and see if its working.

  • Oracle command line to connect to a database directly from a client machine

    Hi,
    I need to connect from a Client machine to a database present on the Database server.
    Client: Windows 7 32 bit/ 64 bit
    Server where DB is installed: Windows 2008, Oracle 11.xg
    I need a command line option that will connect to a database say 'Test' from the command line. I want to put that command in a batch file / exe and call it from there.
    I have tools like SQL Developer and dbForge but was unable to do it. Could I have some help on this.
    I am a fresher with Oracle and I would appreciate detailed steps. Thanks very much in advance.
    Vincent

    Vincent,
    There is a few steps you want to perform, first of all tell me where is your client database server and where you want command line to use Oracle SQL command line.
    Regards,
    Hunain Khanani

  • Command line to run the SCCM client installation

    SCCM Client package have been distributed to all servers.  It will be available in \\servername\smspkgf$\GS2002B2
    Do we need a command line to run the SCCM client installation manually?

    More info:
    About Client Installation Properties in Configuration Manager
    http://technet.microsoft.com/en-us/library/gg699356.aspx
    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.

  • Unable to get command line from client!

    Does anyone know what this means? My G5 shuts itself down and I don't know what is causing it.
    Mac OS X Version 10.4.11 (Build 8S165)
    2009-02-12 11:01:19 -0800
    2009-02-12 11:01:21.760 SystemUIServer[199] lang is:en
    Feb 12 11:01:33 mDNSResponder: NAT Port Mapping (LLQ event port.): timeout
    Feb 12 11:01:37 cups-lpd[221]: Unable to get command line from client!
    Feb 12 11:10:48 Zelle-Olson cups-lpd[233]: Unable to get command line from client!
    Feb 12 11:17:37 cups-lpd[235]: Unable to get command line from client!

    Hello golferky,
    CUPS stands for Common Unix Printing System and is just one of the many background processes that is running on your system and is of no harm. What you are seeing in your message console is your Mac attempting to talk to a printer you have may have had or still have it connected to.
    Here is more information if you want to look into it.
    http://www.cups.org/
    B-rock

  • How to configure Team explorer 2010 command-line tool in Mac x os. configure shell or system path to include the folder to which (TF client) unzipped archive available.

    How to configure Team explorer 2010 command-line tool in Mac x os.
    Hot to configure shell or system path to include the folder to which (TF client) unzipped archive available. I am new to Mac X OS. Please help.

    Dmitry,
    Thanks for the great writeup!
    I think I've got my universal instant client libraries built correctly.
    I too am using MacBook Pro but I'm getting stuck at building the 32 bit oci8.so
    First problem is my pecl download (ver 1.4.1) did not contain a "configure" file so ./configure failed.
    I used configure from /sw/....... to try to continue.
    Second problem. Using existing configure from /sw/.... I used an appropriate variation of your example command
    (./configure --with-oci8=instantclient,/usr/local/oracle/instantclient_10_2 && make).
    Things look like everything ran OK but The output does NOT include an oci8.so file
    So I guess my question is: Which "configure" should I be using? And if it is not the one on the system under /sw/...
    where would I get it since it doesn't come in the pecl download?

  • How to create command line java client

    I have a java servlet FileClient.java and am invoking it thru POST method from the html file. How can I create command line java client so that I can execute this class file from windows command prompt.
    e.g. java FileClient <argument>
    TIA

    > .. there's also a "won't work".
    I could post a sample...I know that you can instantiate and call aservlet,
    or even write your own servlet container - butit's
    still a local instance. He can't invoke his remote
    servlet by calling its class on the client like he
    suggested.HttpURLConnection in main.Only if his Servlet has a main method. Which wouldn't really make it a servlet anymore.
    OP said he wants to invoke it from command-line using
    java -cp . TheServletClass
    He said he has a servlet called FileClient. And he can't invoke a servlet directly that way, without building a wrapper that starts it, making it more than a servlet, and it definitely won't execute on the server. That's my whole point. I never wanted to say you can't write a command-line program that invokes a servlet on a remote server. I do it myself after all.
    I guess I should have expressed myself more clearly.

  • Connect to Oracle using DAC Client in command line

    Hi,
    I'm trying to connect to Oracle DB using DAC client. I have configured a connection and tested, it works. When I use the connection to connect to the DB, its giving me an error
    "unknown error, please start in command line mode and see the stack error"
    How do I start in command line mode? Could anyone provide more information on this.
    Thanks in advance,
    RK

    In oracle db, you can create 3 different types of users:
    (1) create user x identified by pwd.
    In this case the user x will connect to the db using username/password, in this example x/pwd
    (2)create user ex identified externally;
    In this case the user ex will connect to the db using "/" and the sqlnet.authentication_services parameter value in the client and server sqlnet.ora will be used in determining the oracle external authentication adapter to use. For oracle windows client/db server, this is by default set to NTS. NTS is the oracle windows authentication adapter.
    (3)create user gx identified globally as 'CN=gx,O=Oracle';
    In this case also the user gx will connect to the db using "/" and oracle ssl will be used to authenticate this user to the db.
    It would not be possible to "Create user x identified externally" and connect with x/pwd.
    Please clarify.
    To help you in isolating the problem, I will need the following info:
    (1)
    what are you connecting as to execute your plsql. Are you using sqlplus ? How are you connecting (connect "/ as sysdba", connect "/", connect x/pwd) ?
    (2)
    what create user statement did you use to create the user
    (3)
    is odp.net and the db server on the same machine.
    (4)
    did you run your plsql from the same machine as the db server.
    (5)
    if odp.net is on a different machine than db server, did you try connecting from odp.net machine to db server, using sqlplus ?

  • Install OID client or command line tool

    Does anybody know if I can install a OID client or command line tool seperately? For example, I have a Infrastructure version on a remote server, and a J2EE EE version on my local machine and I want to manage it from my client. which package should I install?
    Thanks a lot.

    Thanks Robert for the reply.
    Tried out this method and able to install the firefox packaged application from ubuntu linux machine.
    '''install.js''' remotely install app from folder using the Webapp Actor and Debugger Client API(a client and a server instance must be created and a protocol connection must be established ).
    Is there any command line method for installaing application from inside the Firefox device shell(something like '''pm install ''' command for apk installation in Android -''''pm install /sdcard/com.twitter.android-1.apk'''').

  • Invoking Powershell modules on remote clients via package/command line

    Hello Everyone -
    I have two modules(functions) that i've written and tested successfully locally in my environment that give me Uninstall and Repair functionality on whatever the string contains. Both .psm1's are delivered via a SCCM pkg that lands both into folders
    in the Modules directory. My issue is I can't seem to invoke this in a deployment scenario...as i'd like to deliver the "Invoke-command" using SCCM's command line to simply say...
    Invoke-Command -scriptblock { Do-This "<string>" }
    The above command works fine locally when...(exePol is set to Bypass).
    1.)Modules have respective folders living in WindowsPowershell\Modules directory named xxxx.psm1
    2.)Import-Module -name <path\name of module>
    3.)Verify Modules are loaded(moduleType is script)
    But when fabricating the folders\files above with SCCM, and running the Invoke-Command(in many different ways remotely), i recieve the cmdlet, program doesn't exist and has no idea what i'm talking about. Folders\Files for .psm1's are present and do
    show when running Get-Module -Listavailable locally on targeted clients.
    Maybe this is related to the Import-Module command and the context i'm trying to delivery it in?
    I've tried multiple scenario's of...
    A.) Psexec that launches powershell, followed by the Import-Module -name <path\name of module>
    B.) .Bat file that launches powershell with the same Import-Module syntax
    C.) PS1 that includes the same Import-Module line.
    D.) Just straight from the command line of the Pkg/Program.
    Has anyone tried this? Is there a better method when trying to deliver invoke-command on a module/function to a client via SCCM? 
    TIA 

    [I see that the you are running the powershell.exe and then importing the module in the command line for the Program you created in SCCM, so just importing the module will do the repair action for you ??]
    Not sure how else i would run a Import-Module without calling upon powershell.exe. The reason for using Import-Module first is it only creates the abilty of whatever the module(function in this case) on the client. So if i can get the remote
    Import-Module to work, which would then allow me in the future to use an Invoke-Command -scriptblock { Do-This "string" } on the clients. In this case its both an Uninstall and Repair function with an assortment of switches and arguements that will aide me
    in the future in managing our apps. For me to use the Modules, i would need to Invoke-Command as that is how the functions are built.
    Okey so the module does get dumped to the end machine.
    Suppose you have a test machine TEST01 where the Test.psm1 file  (having Test-Function)is delivered through SCCM.
    Then try this and tell if it works:
    PS C:\> $session = New-PSSession -ComputerName TEST01
    PS C:\> Invoke-Command -Session $session -ScriptBlock {Import-Module Test.psm1 }
    PS C:\> Invoke-Command -Session $session -ScriptBlock {Test-Function #inside your Module}#Or Simply try below:
    PS C:\> Invoke-Command -ComputerName TEST01 -ScriptBlock {Import-Modules Test.psm1;Test-Function #inside your Module}
    I think what you are doing is below.....for the example am taking "webadministration" module:
    PS C:\> Invoke-Command -ComputerName Server01 -ScriptBlock {Import-Module web*}
    PS C:\> Invoke-Command -ComputerName Server01 -ScriptBlock {get-website}
    The term 'get-website' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
    the spelling of the name, or if a path was included, verify that the path is correct and try again.
    + CategoryInfo : ObjectNotFound: (get-website:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName : sdwuweb017
    Point here is you need to import the module and work with it in an already opened session....If you specify a computername every time then PowerShell opens the Session does what you want it to do and tears down the session. To persist the importing of the
    module it must be done in a session which we make using New-PSSession and then run the commands against that session.
    I might have misunderstood the problem but this is what I have got so far.
    Hope this helps
    Knowledge is Power{Shell}.

Maybe you are looking for

  • Table name for condition type

    Hi, Could any one please tell me in which table name the Condition type values are saved and how to retrieve it. Reg, Ashok

  • Write statements after OO ALV

    Hi, i have the following problem. In a report we are using the set_table_for_first_display method for ALV display. In the ALV, once pressed the 'BACK' button we want to show per screen some WRITE commands. The lines are being short printed, but the p

  • Lion compatible replacements for canoscan toolbox & arc soft photo studio

    Canoscan toolbox 5.0.1.0 is a power pc app that will not run under lion.  i cannot locate an upgrade that will run under lion. i primarily use the app to create multi page pdf files (b/w and rarely color).  this app runs flawlessly now under 10.6.7 u

  • PHP Form Filtering

    Hey Guys, I'm curious as to some of the best solutions to help filter out spamming through a php form.  Should I add captcha?  Is there another way?  I want to be able to filter out the erroneous requests or advertising of selling email lists from th

  • Nokia Communication Center displays zero sms

    Im on a Nokia N95 (V 31.0.017) , connected via cable or bluetooth on Windows 7 RC Build 7100 (Had this happen on Vista too!). PC Suite is the latest version - 7.1.26.1. Comm. Center is version 2. Suddenly, usually after a few sms - all messages disap