Sending Command and Capturing Screen

Does anybody have/know of a JAVA example to do this:
1. Sending a command to a Netview session to query different
machines. I will be reading a list of machines from a text file.
The text command will always be the same but the machine will
be different. I've seen examples of sending one key stroke
to the screen but not an entire string that changes.
2. Wait for the ouput. The output will be text.
3. Capture the output (text) to an array.
I have a need to create a screen capture that will do this. Has anybody seen anything in their travels that can help me?

Screen capture - see Robot.

Similar Messages

  • Log and Capture Screen

    I just switched from FCP to Final Cut Express HD. I cannot get the "log and capture" screen to show as in FCP version. I get a small screen with just capture. No device controls, etc.
    Is there a preference setting somewhere I have not found or doesnt FCE HD have that function?
    thanks
    Jon
    firewired to JVC JD 110U

    There is no device control or capture window for HDV material. You set the correct settings, activate the capture the function, and the material gets sucked into your computer and converted to Apple Intermediate Codec.

  • Sending commands and getting answers

    Hi,
         In the given attachment, you have a set of textboxes under checkbox and more down to the tabcontrol. Now, i want communicate with the SMPS(inbetween i have a microcontroller)for getting answers. I dont have any basic idea regarding the task. My instructor gave me a bunch of commands and i have to slect some commands(PM bus) from and used in the application.
        Can any one give suggestions about this, Thanks in advance.
    Attachments:
    rajvi.vi ‏64 KB

    now, i have taken the sequence structure and tried to implement all the commands appending together but its not working, Because my device will undestand only hex and i think i am sending normal string so far. The thing what i am doing is exactly wrong and for tommorow's metting i need to show some thing. In my case, i need to monitor and control the SMPS. I am using PMBus protocol(i have taken commands from http://pmbus.org/docs/PMBus_Specification_Part_II_Rev_1-1_20070205.pdf and in that you can see commands in last pages) on slave side to get and set the data. in my attched VI the 5 numeric indicators shown down to tab control are monitor stuff i.e those are only read parameters. Right now, i am just sending the command code for tommarows meeting but indeed i need to send a packet structure to get data and set data. My basic doubt is how can implement set of commands everytime to write one by one continously and each command cost a result back which i need to store that in the textboxes(not all only below 5). Other text boxes can read the data as well write to the device drictly from numeric indicators. Dont have any basic idea to do that. Can any one help me.  
    Attachments:
    rajvi.vi ‏68 KB

  • IS there an easy way to execute a shell command and capture its output...

    From an application? I am thinking of using fork and then waiting for the PID to finish and write the output to a file which I then read, but this seems clunky. Also there are big warnings about frameworks getting hosed if you use fork, although the "Forked" process will exec the shell command and the one that gets the PID the original process might be 'safe' from this framework corruption. I am not certain of this, it is just a guess.
    If there was something like a process class where I could specify the executable and parameters, and read from it's std out until the process completed, that would be better. Or even get a callback when the process exited and an asynchronous callback for each line of data it produced.

    That was just in response to OrangeKay implied accusation that I was some kind of hard-core Microsoft programmer that sneered at apple programmers.
    You may want to book mark this, I will go over a brief history which should clear a lot of things up, about me, and about what I am doing.
    Lets turn the clock back to 1998: I graduate from a university with a BS in Computer science. I had been interning at a local defense contractor writing missile testing software. This was on a proprietary hardware and so there was no "Microsoft" involved. At this point I think Bill Gates = Satan. Microsoft = Kingdom of Evil.
    I get a job as a video game programmer. I write code from the Playstation, then the Playstation 2 and Gamecube. I do this for several years and again I have zero interest / knowledge of the Microsoft world beyond it being the OS which I am forced to use to play my games on. I had fought this by trying to use OS Warp and other things, but eventually since I mainly had a PC for games I had to get a windows OS, the first being NT 3.51 and then Win98 cause NT4.0 didn't support past directx 3 and everyone was using directX 5 or 6 (I do not remember).
    As video game companies go, they do not last. Everyone wants to write video games, anyone with some cash wants to start a company. 1 in 1000 will make it 5 years. Needless to say, as our company began to tank, I got laid off, along with my entire team. I have cash in the bank, no big deal, right?
    Well the economy started to suck, video game developers were closing down like crazy so the market was saturated with x-video game developers. 2 Years go by, no job, and almost no money. Then I get a call from some guy who wants me to come for an interview about 75 miles away. It is in a place I do not want to go. So they interview me, and ask me a bunch of general programming questions.
    I leave the place, and by the time I get home there is a message on my machine asking me if I would take the job at a ridiculously high salary (I live in an area where the cost of living is very low). Well I am about out of money and its a job offer with a huge salary, so I take it.
    I get there and guess what? I get to work on this "agent" that runs on windows boxes. I have NO IDEA how to program on windows. Windows is evil, why would I want to taint myself with this vile Microsoft APIs? I really have no choice, I have to learn how to develop on windows. I get to use visual studio 6, which I do not understand because I used the Borland compilers (Borland != Microsoft).
    Well I start to slug through it all and get familiar with MSDN and CodeProject and CodeGuru. As the years pass, I begining applicate the examples and detailed documentation that MSDN has. I have a start page on MSDN which covers every category of operation which will take you through a tree of choices and lead you to the exact area related API calls you will need to use to do whatever you want. Now I do not think MS = Evil anymore. I switch to DevStudio 2005 which is really nice. The debugging, IDE, and everything is great.
    Now the other half of this application resides on a server. That server is a Linux box, and the server app is written in Java. My stuff is still C++.
    One day, I get a request, and a eMac with 10.4 PPC to make a Mac version. Now I am at the point of Mac programming as I was with Windows when I started. I didn't know anything about it. I was looking for CodeWarrior cause I used that in the past, but alas, CodeWarrior is no more. I get XCode. I see all sorts of options to make a project. BSD project, Carbon, Cocoa, etc... What the heck any of these. I can guess the BSD one is very basic, but I do not understand Carbon vs Cocoa.
    So what do I do? I make a basic carbon app and make a basic Cocoa app. The carbon app looks like some kind of C++ framework. The Cocoa app? "Is this another language like Java or C#? It doesn't look like a C++ language."
    Guess which choice I make. Carbon. I struggle through this looking at the docs, posting on CodeGuru and whatnot until someone finally tells me about these forums and warns me about how unfriendly people are. So I make an account and start asking questions. I eventually get my app to be multi-platform to run on windows and Mac by using some API abstractions which are easy to do since I had abstracted the Windows API by my own class wrappers.
    I ask a lot of questions, very few are ever answered because I am not asking about simple things, like making windows and how to get button clicks and that stuff. I am asking stuff like, "How do you change the DNS? or How do I know when a user is about to log out?" Currently on my side list as I type this, I have 27 unresolved questions. I probably found workaround for most of them, or figured it out eventually.
    On this forum mostly people are helpful when the do respond, except for OrangeKay. He definitely has a chip on his shoulder.
    Over the past few years my Opinion of MS has improved greatly while my opinion of Macs (from the programmer's point of view) has dropped considerably. XCode still isn't as good as VS6 which is like 15 years old, never mind Dev studio 2005 or 2008. The documentation is scattered, not easy to find, occasionally wrong, or simply missing. The examples may not even compile or contain non-existent functions. It is unbelievable how bad it is.
    If Steve Jobbs wants to really get a large coder population he ought to spend some of those billions (or is it trillions) of dollars on a team that will re-write the current documentation in a correct, easy to understand, with full examples, arranged in a logical manner for everyone to use. He should say, "See MSDN online? I want something like that, only better, it has to be MUCH better." Then he should say to the XCode team, "Look at DevStudio 2008. XCode should do EVERYTHING that does. Once that is done, IMPROVE XCode even more to make 2008 look like a joke."
    To bad the Developer aspect of the "Apple Experience" has not gotten "End User" treatment. Then it would be a joy to develop on Macs.
    So here I am asking for help on certain things. You wonder why I do not use Cocoa. Maybe I should, maybe I shouldn't. My first look didn't look promising, and a quick look at the docs is all about GUI's. My app has NO GUI. Again, Cocoa? Maybe it will still work, but the examples and stuff I see are all about GUIs.
    When I get time, I will look at cocoa even further. MFC on windows is MOSTLY about GUI stuff, but there is a small section of it that does not deal with GUIs. CString is a great MFC class. I had to get rid of it though cause Mac's do not have a similar class. I use CStdString which is a platform agnostic CString replacement.
    I hope you are all a little more enlightened. BTW my Application which runs on Mac's and PCs on no less then 3 MILLION Machines has not crashed ONCE in the past 2 years. There have been bugs, but nothing that crashed it. The bugs were mostly unforeseen situations, like what if the guy has 15 network adapters that are all LIVE? I didn't plan for that, there were complications, the server got some strange data, but it didn't crash (My app, not the server. It crashes on occasion still). Are there bugs in my code? I am sure there are, but I do not know of any, because if I did, it would be fixed.

  • Sending commands and reading data - RS232

    Hello guys !
    I have a special problem communicatin through RS232 with a PIC microcontroller.
    The problem :
    On push of a button i want to read a value from the microcontroller.
    On another push of a button, i want to write a value to the microcontroller.
    However, i get an error : "VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed."
    I've tried to search the forum for similar problem, but i haven't found a suitable answer.
    I also post my current code for reference. I'm using LabView 8.5.1.
    The RS232 communication is working fine (i can read and write from the PIC).
    I tested the connection extensively so i think that te problem is not there.
    Can u help me ?
    Thank you !
    Attachments:
    Serial-1.vi ‏53 KB

    Are you waiting for a response from the device after you send it a command? Are you getting any data back? A simple delay is not a very good solution since your program may work for one given situation but the hard delay may not in others. You can use a VISA event to wait for data at the serial port. How much data are you expecting? If it is a larg eamount of data you may want to calculate the timeout for the read based on the amount of data and your given BAUD rate. If you expect a large amount of data you may not have your timeout set long enough for all the data to arrive, especially if you are using slower BAUD rates.
    I noticed in your code that you have enabled the read to look for a termination character. Does your device send one? If not, you may be getting the error because you have not received the 1000 bytes you indicating you want to receive. If you will not be getting a termination character and you don't know how much data you will be receiving you need to create some type of algorithm to read data and decide when to stop. Th eapproach I use is to read a single byte. This read will contain the maximum timeout to wait for the data to arrive. Once a single byte has been read I continue reading chunks of data using a small timeout value. This value should be long enough to allow any small delay that occurs in the data as it is being sent from the device but short enough to indicate the data is complete once a timeout does occur. This timeout error is discarded since it is not a true communication error.
    NOTE: You should avoid using controls as variables. You have your Byte to Read controls set as default values and hidden. Therefore they are nothing more then a constant. Hiding controls simple to hide "variables" is not a good coding practice. Either expose the controls to teh user or use a constant.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Cannot control/observe but can send commands and update apps

    I've researched the discussions here and basically came up with several ways of fixing the problem. Also I see I am not the only one with this particular problem.
    Ok with that said, here are the details.
    I am running a G5 behind a linksys wireless router (g5 is hard wired to the ethernet port of the router), my router is set up to open ports 5900 and 3283 just for ARD 2.0. The ports are pointing to my mac's IP address given by the router. I currently use optimum online for my internet usage, so basically I have a static IP address. From work I can access my G5, control/observe, update, etc...
    I also have set up ARD on my mothers imac, she sits behind a verizon dsl modem, and an old netgear router I used at one point. I have the router set up the same way, ports 5900 and 3283 are opened up for tcp and udp. From her machine I can actually connect to my G5 at home and control/observe, etc..
    My main problem is when I am on the G5 and try to connect to her machine, I can only send messages, update software but cannot visually observe or control her mac. I've gone and had her change the tcp port to 10000 and no luck with control or observe. I then had her delete ARD with an application I found over the net (appdelete). I had her install ARD client and set it up from scratch again. Nothing... I have spoken with verizon IT and they aren't blocking any ports. I am at my wits end, can't figure this one out. OH, I also tried disconnecting the router and had my mother connect the dsl modem straight to the imac and still cannot control or observe. Within ARD It tells me what program she is running, etc... because of port 3283 but that's about it. I know everyone here has given alot of information. But is there something I am missing?
    Could it be a hardware issue (mac or router)? or software?

    I've tested timbuktu pro 8.6 and I can access my G5 at home the same way as ARD, I just had to open up the port 5901 and set up the user prefs. My only issue is going to be setting up my mothers imac with timbuktu. crossing my fingers to see if it works tonight. If there are any other thoughts out there please feel free to tell me.

  • Executing system commands and capturing results

    How do I get the result of executing a system command using Runtime? For example, if I execute "cmd /c dir", how do I get to the result of the dir command from the Process that is returned?

    Process p = Runtime.getRuntime.exec("...");
    InputStream in = p.getOutputStream();
    // now read the "in" stream just as you would any
    other stream.Slight typo getRuntime(), but it's close...

  • How can I send commands and recive rs232 with this Dll

    / programmer commands
    INTERFACE char* (WINAPI DYNAMIC KeyCmd)( char const* cmd, char* rsp, int maxrsp);
    INTERFACE void (WINAPI DYNAMIC DoCmd)(char const*cmd, char *rsp, int maxrsp);
    Note: I see "char*", is this a pointer or a char String. I aspect to get Volt levels to plot a graph.

    louX2,
    char* is the same as LabVIEW's C String Pointer (CStr) data type. I would not worry about the const for the first character strings as this just means they will not be changed in the function.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Execute a Query from a report sending it parameters and capture the result

    Hello everybody,
    Greetings from Peru, I want your help, Do you know how to execute a query from a report sending parameteres and capture the result in a internal table?
    The attached imaged has in red square the parameteres I want to send from a report.
    The idea is to have a JOB that executes everyday and parameters like DATE PERIOD will change automatically.
    Thanks for your time.

    Hi Enrique,
    You can call a query from a report by using submit statement.
    Every query has a corresponding program associated with it.
    Execute the query from SQ01. On te selection screen of query, goto SYSTEM  from menu and then click on STATUS, you will get program name (In this case aqzzzent_struct=zmm_ent_struc1). Use this program to call the query from your custom program.
    Also populate the rspar int table as per the selection criteria you want to pass to query.
       DATA: rspar     TYPE TABLE OF rsparams,
        wa_rspar  LIKE LINE OF rspar.
          wa_rspar-selname = 'SP$00001'.
          wa_rspar-kind = 'S'.
          wa_rspar-sign = 'I'.
          wa_rspar-option = 'BT'.
          wa_rspar-low  = s_cmp_cd-low.
          wa_rspar-high = s_cmp_cd-high.
          APPEND wa_rspar TO rspar.
       SUBMIT aqzzzent_struct=zmm_ent_struc1 WITH SELECTION-TABLE rspar AND RETURN.
    Thanks,
    Sachin

  • Re: using SEND command in script

    Here is part of my login script.
    Thanks,
    Larry
    IF "%LOGIN_NAME" = "SHIP2" THEN BEGIN
    #Capture q=SHIPq NFF NB ti=10 nt l=1
    END
    SEND /A=N
    EXIT
    rem IF "%OS_VERSION" = "V7.00" THEN BEGIN
    rem #capture /Endcap
    rem END
    rem IF "%OS_VERSION" = "V7.00" THEN BEGIN
    REM EXIT
    END
    IF MEMBER OF "ACCOUNTG" THEN BEGIN
    rem MAP INS S1:=C:\PVSW\BIN
    END
    MAP INS S2:=c:\windows
    MAP INS S3:=c:\windows\command
    EXIT ""
    END
    "Edison Ortiz" <[email protected]> wrote in message
    news:[email protected]..
    >
    > Can you post your login script ?
    > It could be an error with the syntax.
    >
    > --
    > Edison Ortiz
    > Novell Support Connection SysOp
    > (No Email Support, Thanks !)

    The line "@ SEND /A=N" shouldn't serve any function.
    SEND "Message" [TO] <user|group|server> [/B] [/A=N]
    /B bindery mode (allows some additional options)
    /A=N exclude yourself from the broadcast
    SEND.exe stems from NetWare 1.x/2.x/3.x/4.x and has been replaced by the
    Client32 broadcast functionality.
    There are a couple of 3rd party replacements from the command line.
    Wolfgang
    "DareG" <[email protected]> wrote in message
    news:[email protected]..
    >
    > I was wondering I can find information on the "SEND" command and the
    > Switches? I have tried just about everywhere I can think of. It's not
    > in the 6.5 Book I have either. The reason I ask is because we have it
    > in our login script but no one seems to give a definitive answer to what
    > it does.
    >
    > the line is "@ SEND /A=N" Yes, I know what the "@" is for! :)
    >
    >
    > --
    > DareG
    > ------------------------------------------------------------------------
    > DareG's Profile: http://forums.novell.com/member.php?userid=68413
    > View this thread: http://forums.novell.com/showthread.php?t=177935
    >

  • Eject Button for Log and Capture

    Does anyone have a solution for ejecting tapes from the Log and Capture screen so the tape is ready to change when you get to the deck? This seems like a feature that would be really helpful for users using "Professional Decks". I have a BetaCamSP in one in NTSC and and one in PAL, a D-2 deck, a DNW-A45, a DigiBeta and a HVR-M35U. I use an AJA for I/O. Thanks

    It's been on lots of request lists as I think it's in the Avid GUI.
    But tape is dead so they're probably not going to bother. There's even been talk that Apple may (maybe even should) remove the whole log and capture interface as it's one of the oldest parts of the application and a major pain to rewrite to 64-bit. Third party apps, including the QT 7 player, can be used for tape capture.
    Message was edited by: Tom Wolsky

  • Send command to modem using serial port and capture the response in the labview

    hello.
    I am doing my shool project.
    I want to send command to modem using serial port and get the response in the labview.
    When i run my program and enter"AT", only messy code will be displayed.
    can anyone help me? thanks 

    Dora0512 wrote:
    Thanks for you all. My partner got it already.
    I am doing send sms part.
    Can anyone tell me why my program is not so steadily?
    It means this program can run. But somtimes I cannot receive sms. sometimes can
    Basically, it is not well-written from both a LabVIEW and a communications point of view.  Unfortunately, I can't elaborate because today is an exrtremely busy day at work.  I'm hoping this bump will prompt someone to help you with your problem.  If you could also provide us with the programmer's guide or the manual for your equipment, that would be extremely helpful.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Is there a command to capture iPad's screen in digital publishing?

    Is there a command to capture iPad's screen in digital publishing?

    press the home button and camera at the same time.

  • Capture Screen and Stream

    I can't figure out how to get started creating a Flash swf
    that will capture screen shots of say 20 computers that log into a
    Flash Media Server application that sends the picture of what the
    students are doing every so often.
    Any help to get into the right direction would be
    great.

    Unfortunately the presentation is a live software demo. We may actually do a little Keynote to start things off, then switch to Revit running in Windows running in Parallels, and vary things based on questions and comments from the audience. Very dynamic, and getting it all is the only viable option.
    As for the aggregate device, I think that would miss the point of being able to mute the room track the vast majority of the time, the presenter track at times, and sometimes both. I think I will need to do the room direct to GB, while the presenter is recorded via iShowU.
    I know, probably pushing everything further than it can really go, but I want to at least try. Not even an option if I was presenting in Windows on hardware!
    Thanks,
    Gordon

  • I bought an IPAD air from state and the screen is not working correctly and right now i'm in Egypt ,can i send my ipad to service in Egypt and the warranty will work in Egypt or what?

    i bought an IPAD air (32 gb wifi only) from USA just one month ago and the screen is not working correctly(picture attached) and right now i'm in Egypt ,can i send my ipad to service in Egypt and the warranty will work in Egypt or what?

    Have you tried a soft-reset to see if that fixes it ? You might be able to get warranty service in Egypt for your iPad, but the warranty includes :
    IMPORTANT RESTRICTION FOR iPHONE AND iPAD SERVICE.
    Apple may restrict warranty service for iPhone and iPad to the country where Apple or its Authorized Distributors originally sold the device.
    As it's wifi-only you should have a better chance of it being serviced under warranty, but there are no guarantees, it might depend upon the repairer.
    Egypt authorised service providers : https://locate.apple.com/eg/en/

Maybe you are looking for

  • RH crash upon opening index tab

    I know this has come up before, but I couldn't find anything on the topic via search (the one relevant-looking thread wouldn't open). The annoying part is that it worked fine this morning, and then I started cleaning up broken links... I can compile

  • Difference using HDMI or DVI cable to plug into monitor?

    hey guys, i just noticed that the Mac Mini doesn't come with a cord to connect to my monitor. i don't have a DVI or HDMI cable so it's up to me which one i choose. i was just wondering if there's a quality difference between either one so i can decid

  • Lost permissions on WWV_FLOW_FILE_OBJECTS$

    We seem to have lost permissions in APEX 2.2 to some of the internal tables. As seen below we can access a table in SQL*Plus with SQL but not through a procedure. SQL> DECLARE 2 v_NAME varchar2(90); 3 BEGIN 4 5 SELECT filename INTO v_name 6 from flow

  • Cannot Place ALV on Tabstrip

    Hello, I was looking at the forums posts on this and based on what I've read I created a tabstrip using the wizard.  When I went to place a custom control for the ALV, the layout editor would not allow it to be placed in the subscreen area on the tab

  • Help...Hard drive died! - Do I have to start website over?

    Help - my 2 websites are all published and working fine but my hard drive died without a back up of my iWeb files. I wll have a new hard drive installed but no iWeb work on it. Is there anyway I can retrieve the published material so I can start to w