Benefit of Remote Lab Machines?

Good Morning,
I have heard of training programs using remote lab machines logged in as participants for use during breakout sessions, while participants take turns controlling the lab machine.  What is the benefit of performing breakout sessions with lab machines as opposed to just having the participants share their screens?
I am trying to decide whether or not our training group should use lab machines for our practice activities.
Any insight would be appreciated!
Thanks,
Barb

Perhaps, I should rephrase the question: How have you used remote computer lab machines in your virtual classes?

Similar Messages

  • Trouble from our Lab Machines

    We are now getting close with everything ... we have the correct authentication working for our admins, faculty, and students. There are a few problems with logging in on our lab machines. The thing that concerns me the most is the following error we get on Safari on the Mac:
    "There was an error storing your authorization information on this computer. The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed."
    iTunes then opens, but does not open iTunes U. What file is trying to be updated? FireFox does not open iTunes U as well.

    It maybe easier to test Firefox on the Mac.
    Are you using Workgroup Manager on these lab machines?

  • Java code to connect to remote windows machine from local machine

    Hi,
    I have developed a code to connecting remote windows M/C from local M/C by using SSH2 (ganymed-ssh2-build209.jar) API. when I run the code its giving below error. Can any one please help me how to resolve it. And also please let me know, is there any other way to connect remote windows system using java code.
    Exception.
    java.io.IOException: There was a problem while talking to <host name>:22
      at ch.ethz.ssh2.Connection.connect(Connection.java:642)
      at ch.ethz.ssh2.Connection.connect(Connection.java:460)
      at Connect.RemoteServer.ConnectWindowsServer.runCommand(ConnectWindowsServer.java:55)
      at Connect.RemoteServer.ConnectWindowsServer.main(ConnectWindowsServer.java:27)
    Caused by: java.net.ConnectException: Connection refused: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(Unknown Source)
      at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at ch.ethz.ssh2.transport.TransportManager.initialize(TransportManager.java:299)
      at ch.ethz.ssh2.Connection.connect(Connection.java:591)
      ... 3 more
    JAVA Code
    import ch.ethz.ssh2.Connection;
    import ch.ethz.ssh2.Session;
    public void setAuthenticationInfo(String hostname, String username,String password) {
           this.host = hostname;
           this.userid = username;
           this.password = password;      
           this.recentCommand = "";     
           System.out.println("setting authentication info completed for host=" + host );
      public void runCommand() throws Exception {
    try{
            // Setup ssh session with endpoint
           System.out.println("starting connection with " + host);
           Connection connection = new Connection(host);
           System.out.println("connection object created..");
           connection.connect();
           System.out.println("Connect to connection");
           connection.authenticateWithPassword(userid,password);
           System.out.println(connection.isAuthenticationComplete());
           Session session = connection.openSession();
          System.out.println("connected");
      }catch (Exception e) {
      e.printStackTrace();
    Regards,
    Praveen

    Hi baftos,
    I tried to telnet remote windows machine from my local machine on port 23, its not connected and given error message like "Connect failed".
    As your response, if we can telnet to remote windows machine from local machine then we can connect from Java. Is it correct ?.
    Can you please help me to resolve this issue. And also please confirm the port (23) is correct, which I was used to connect remote machine from telnet.
    Regards,
    Praveen

  • How do I managed audio preferences for lab machines?

    I am unable to get an audio preference to be a the default configuration for all users, local or network. I've created a user template that has all other configurations and preferences and this works great except for audio I/O. All lab machines have identical firewire audio input devices and identical usb prowered speakers for an output. Using the Audio/Midi utility I set the input to the firewire micpre, output to the usb speakers and set alert sounds to the internal speaker.
    When other users log in all three settings default to the firewire device.

    Turns out to be a OS bug. I am told that a script can be written to establish the configuration.

  • Unable to SSH into both remote & VM machine server

    Unable to SSH into both remote & VM machine server
    Getting the message
    "fork failed: Resource temporarily unavailable"
    "ssh_exchange_identification: Connection closed by remote host"
    "ssh_exchange_identification: Connection closed by remote host"
    "ssh_exchange_identification: Connection closed by remote host"
    Please help.

    These are the processes  currently running: from top command.
    These are the ulimit -a settings
    This is the output of trying to ssh into local Ubuntu VM (I am able to login here via VirtualBox interface)
    $ssh -v -v -v [email protected]
    OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
    debug1: Reading configuration data /Users/spgen/.ssh/config
    debug1: /Users/spgen/.ssh/config line 1: Applying options for *
    debug1: Reading configuration data /etc/ssh_config
    debug1: /etc/ssh_config line 20: Applying options for *
    debug1: /etc/ssh_config line 102: Applying options for *
    debug2: ssh_connect: needpriv 0
    debug1: Executing proxy command: exec ssh 10.0.2.15 -W 192.168.1.11:22
    debug1: permanently_drop_suid: 501
    debug1: identity file /Users/spgen/.ssh/id_rsa type -1
    debug1: identity file /Users/spgen/.ssh/id_rsa-cert type -1
    debug1: identity file /Users/spgen/.ssh/id_dsa type -1
    debug1: identity file /Users/spgen/.ssh/id_dsa-cert type -1
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_6.2
    fork failed: Resource temporarily unavailable
    ssh_exchange_identification: Connection closed by remote host
    ssh_exchange_identification: Connection closed by remote host
    ssh_exchange_identification: Connection closed by remote host
    This is the output of trying to SSH into remote AWS server. ( I am able to login through web interface here)
    $ssh -v -v -v -i /Users/spgen/pem-files/123.pem [email protected]
    OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
    debug1: Reading configuration data /Users/spg/.ssh/config
    debug1: /Users/spgen/.ssh/config line 1: Applying options for *
    debug1: Reading configuration data /etc/ssh_config
    debug1: /etc/ssh_config line 20: Applying options for *
    debug1: /etc/ssh_config line 102: Applying options for *
    debug2: ssh_connect: needpriv 0
    debug1: Executing proxy command: exec ssh 10.0.2.15 -W 54.94.230.41:22
    debug3: Incorrect RSA1 identifier
    debug1: permanently_drop_suid: 501
    debug3: Could not load "/Users/spgen/pem-files/123.pem" as a RSA1 public key
    debug1: identity file /Users/spgen/pem-files/123.pem type -1
    debug1: identity file /Users/spgen/pem-files/123.pem-cert type -1
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_6.2
    fork failed: Resource temporarily unavailable
    ssh_exchange_identification: Connection closed by remote host
    ssh_exchange_identification: Connection closed by remote host
    ssh_exchange_identification: Connection closed by remote host"
    I guess the processes is not the issue, but maybe something to do with ssh config files.
    As you rightly guessed 'fork failed' is  happening on the local system. Would appreciate any pointers.
    TIA.

  • Getting error 462 - The remote server machine does not exist or is unavailable

    I have several modules that read and write data to and from Excel 2010 worksheets. I am noticing that the Excel process does not end aven though Excel is not running on my PC. It is like an orphan process. If I try running the Access module again I get the
    message "error 462 - The remote server machine does not exist or is unavailable". Here is the code I am running. When I click the Debug button on the message box the line "rowNum = objXLAppln.Range("A" & Rows.Count).End(xlUp).Row"
    is highlighted.
    Option Compare Database
    Option Explicit
    Function ImportImportanceScores()
    Dim RecSet As DAO.Recordset
    Dim objXLAppln As Excel.Application
    Set objXLAppln = New Excel.Application
    Dim objWBook As Excel.Workbook
    Dim rowNum As Variant
    Dim i As Integer
    Dim j As Integer
    Dim StrPathFile As String, strFile As String, strPath As String
    Dim strBrowseMsg As String, strInitialDirectory As String, strFilter As String
    'show dialogue box
    strBrowseMsg = "Select the EXCEL file:"
    'set directory to load files from
    strInitialDirectory = "C:\Bridge_CIP_Part-A_B\"
    'run strFilter function
    strFilter = ahtAddFilterItem(strFilter, "Excel Files (*.xlsx)", "*.xlsx")
    StrPathFile = ahtCommonFileOpenSave(InitialDir:=strInitialDirectory, _
    Filter:=strFilter, OpenFile:=True, _
    DialogTitle:=strBrowseMsg, _
    Flags:=ahtOFN_HIDEREADONLY)
    If StrPathFile = "" Then
    MsgBox "No file was selected.", vbOK, "No Selection"
    Exit Function
    End If
    'Set Excel application object. Critical for macro to run properly. Do not change.
    'Open workbook and worksheet to load data.
    With objXLAppln
    Set objWBook = objXLAppln.Workbooks.Open(StrPathFile)
    objXLAppln.Visible = True
    End With
    Set RecSet = CurrentDb.OpenRecordset("Importance_Scores")
    'Copy data from Excel cells to Access fields
    objXLAppln.Sheets("Importance_Scores").Select
    rowNum = objXLAppln.Range("A" & Rows.Count).End(xlUp).Row
    objXLAppln.Range("A6").Select
    'Add records to table from Excel
    With RecSet
    For i = 0 To rowNum - 6
    RecSet.AddNew
    RecSet.Fields("CIP_ID").value = objXLAppln.ActiveCell.Offset(i, 0).value
    RecSet.Fields("Target_Timeframe_for_Construction").value = objXLAppln.ActiveCell.Offset(i, 2).value
    RecSet.Fields("ImportanceFactor_TI-1").value = objXLAppln.ActiveCell.Offset(i, 21).value
    RecSet.Fields("ImportanceFactor_TI-2").value = objXLAppln.ActiveCell.Offset(i, 22).value
    RecSet.Fields("ImportanceFactor_TI-3").value = objXLAppln.ActiveCell.Offset(i, 23).value
    RecSet.Fields("ImportanceFactor_TI-4").value = objXLAppln.ActiveCell.Offset(i, 24).value
    RecSet.Fields("ProjectRank").value = objXLAppln.ActiveCell.Offset(i, 33).value
    RecSet.Update
    Next i
    End With
    'Close everything
    RecSet.Close
    objWBook.Close SaveChanges:=False
    objXLAppln.Quit
    Set RecSet = Nothing
    Set objWBook = Nothing
    Set objXLAppln = Nothing
    End Function

    In the line
        rowNum = objXLAppln.Range("A" & Rows.Count).End(xlUp).Row
    Rows does not refer to objXLAppln or to objWBook. Change it to
        rowNum = objXLAppln.Range("A" & objWBook.Sheets("Importance_Scores").Rows.Count).End(xlUp).Row
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Securely identifying a remote physical machine

    Hi,
    Is there a way of securely identifying a remote physical machine? I don't mean by using a public/private key mechanism, because I want to identify the physical machine, NOT the user, for program piracy issues.
    I posted this to the general security forum, but I think I have a better chance using some low-level network mechanism?
    TIA,
    Reggie

    I thought commercial programmers always had access to
    some unique network machine ID, like the one ActiveX
    uses to create a UID to create a unique ID for their
    ActiveX control?It's easy to generate a unique ID. But such an ID isn't secure. The user can change it, force it to be regenerated, move it to a different system, or otherwise compromise some aspect of its uniqueness/security.
    If you're willing to rely on users not being malicious, there are a lot of ways you can generate unique IDs which would identify the machine in question. If you were to combine the current time, the machine's IP address and some random value, you would have a nearly-guaranteed unique ID, but one that is only sufficient in a friendly environment.
    The "standard" UUID generator is based on the current time and the machine's MAC address. Here is some information on it:
    http://www.opengroup.org/onlinepubs/9629399/apdxa.htm

  • G5 iTunes / ATV2 - Remote Time Machine

    Can I use a G5 for iTunes source for my ATV2 and can I use it as a Remote Time Machine for my other intel macs?
    Thank you,

    Good point...ATV2 requires 10.2 or newer, so I did some googling and I found this
    http://support.apple.com/kb/DL1576?viewlocale=en_US&locale=en_US
    (iTunes 10.6 for PPC)
    Soooo  I am "assuming" that both my questions are yes...
    I will wait a little bit more to see if anybody else provides more input...
    Thank you BDAqua...

  • Remote Lab

    Good Afternoon,
    I am looking for a solution to do deployment testing. Currently everytime I want to attempt sometype of major network change I pull out multiple routers get them all connected and create my configurations. What I am curious about is does anyone have any good recomendations for companies that I can rent space from and use remote labs and there routers to test my configurations. Or a software that is good.

    Here are a couple of sites that offer rack rentals:
    www.thebryantadvantage.com
    www.cconlinelabs.com
    www.racktimerentals.com
    www.ccie4u.com
    HTH,
    Tary

  • Unix command to turn "off" caps lock or turn it "on" on lab machines

    Hi,
    I'd like to be able to send a unix command to a lab of panther eMacs. I'm using Apple Remote Desktop 3.2 I would like to send both "turn on cap locks" to all the machines, or "turn off cap locks to all the machines.
    Many of my "Send Unix Command" are applescripts (osascript....) so either a unix command or applescript command would be welcome.
    Thanks!

    Well, I've been busy trying some things and found a beautiful little applescript that will turn off caps lock on 10.4 machines and newer. I'll paste it in below. Here's the problem...
    I can't seem to get it to run in ARD as a unix command. (I put the osascript as first line when I pasted it in... This usually works for sending applescript commands)
    So, any ideas on how to get it to run as a unix command??
    IS THERE ANYWAY TO GET THIS TO WORK ON PANTHER MACHINES?? (they don't have the "modify keys..." button in the keyboards and mice pane of sys prefs). The bulk of our machines (over 300 are eMacs running panther).
    *** script ******
    tell application "System Preferences"
    activate
    set current pane to pane "com.apple.preference.keyboard"
    end tell
    tell application "System Events"
    tell application process "System Preferences"
    get properties
    click button "Modifier Keys…" of tab group 1 of window "Keyboard & Mouse"
    tell sheet 1 of window "Keyboard & Mouse"
    click pop up button 1
    click menu item "No Action" of menu 1 of pop up button 1
    delay 3
    click button "OK"
    end tell
    end tell
    end tell
    tell application "System Preferences" to quit

  • Lion Recovery from a Remote Time Machine Disk

    I maintain the time machine backup for my MBP on a large USB drive hanging off of my Mac Mini.  Yesterday I decided to upgrade the internal hard drive on my system to a faster, higher-capacity disk.   I assumed that this would be very straightfoward given I had a complete time machine backup.  Time machine has saved my bacon many times.  It was slightly trickier than I expected so I am publishing this recipe in the hope that it helps someone else trying to accomplish the same thing.
    The instructions below are in the context of a hard drive replacement.   Skip to step 5 if you are just looking for the recovery instructions.
    One last caveat, I have not tried this procedure over WIFI.  I did my successful restore over a GigE hard line.   It may or may not work over Wifi and I would bet WIFI greatly increases the odds that something unexpected might go wrong and it will probably take many times longer as well.
    YMMV.  RTFM.   Good Luck.
    Before you start you need the following things:
         A USB Drive that you don't mind erasing.
         A tiny phillips screwdriver
         A T4 torx driver
    Step 0: Run Lion Recovery Disk Assistant
         * download this from apple support http://support.apple.com/kb/dl1433
         * this creates a USB stick that boots up the recover tools. 
    Step 1:  Make sure time machine backup is up to date
    Step 2: [paranoid] turn off time machine
    Step 3: Cleanly shut down laptop
    Step 4: Follow instructions in user manual to replace hard drive
         * you can download your laptop user manual here - http://support.apple.com/manuals/#macbookpro
         * this required a very tiny phillips head screwdriver and also a T4 torx screwdriver/bit
    Step 4a: Be prudent: carefully save your old hard drive in case something goes wrong.
    Step 5: Make sure laptop is on wall power
    Step 6: Boot to recovery USB stick
         * insert the stick, hold down option while booting
    Step 7: Select "Restore From Time Machine Backup"
         * When you get to the "Select a Backup Source" dialog you don't see your time machine share or any way to connect to a remote drive.
    Step 8: Mount your remote backup
        Open Terminal  ( Utilities | Terminal... )
        Run these commands:
            mkdir /Volumes/tm
            mount_afp afp://[username]:[password]@[name of host system].local/[name of remote disk] /Volumes/tm
            you need to supply all of the arguments in brackets above
                 eg. mount_afp afp://fred:[email protected]/TimeMachine /Volumes/tm
            You can test if this succeeded by running
                   ls /Volumes/tm
            If you see the files you expect, then you successfully mounted your remote disk.
            Now attach the sparsebundle that contains your remote system backup.
                hdiutil attach /Volumes/tm/[MyMachine].sparsebundle 
            If this works when run "ls /Volumes" you should see a directory called "Time Machine Backups" in the list.  Once that is done quit
            the terminal application.  When you do this you should see "Time Machine Backups" listed in the "Select  a Backup Source" dialog.
    Step 9: Select "Time Machine Backups" from menu
    Step 10: Select the backup in time ( probably the most recent one from 10 minutes ago! )
    Step 11: Select destination disk
    Step 12: If your destination disk does not appear, format it with disk utility
         Utilities | Disk Utility...
         Select your new unformatted drive
         Give your new drive a super duper clever name and then click Erase
         Quit Disk Utility
          Select your newly formatted and cleverly named root drive
    Step 13: Go have some fun away from your computer., my system took about 4 hours to restore ~300GB.
    Some number of hours later your system will reboot itself to the login screen and you will be good to go.  Obviously don't do anything silly in the intervening time like
           * Unplugging your laptop
           * Turning off the system that hosts your time machine backup
           * Resetting your network router

    Quick answers.
    1. no
    2. yes
    3. no
    Your only option is to install Lion onto the mini and then set up the other accounts.

  • Remote Time Machine backup over VPN, high data usage?

    I have a remote Mac mini Server running 10.10.1 in a hosted environment. I'm attempting to perform a Time Machine backup from a MacBook Pro, also running Yosemite, over VPN.
    While TM does see the AFP share over VPN and is backing up, it's been working at it for almost 36 hours now. I understand than uploading a lot of data takes time, but I noticed that Activity Monitor shows that over 30GB of data has been uploaded while the TM progress bar states that only 6.35GB (of ~20GB) has been transferred. Why such a difference? I know that VPN will introduce some overhead, but this just seems ridiculous.
    Does anyone have any insight into what is happening? Better yet, can anything be done to fix it?
    I actually purchased the mini server for the primary purpose of having remote TM backups, but this type of data rate and transfer is almost making it look impractical.

    Time Machine is a very network intensive process, it has to check to see what files have changed this requires comparing between any existing backups and the Mac itself, it may have to prune existing backups to make more room this requires various commands, it of course has to copy new or altered files, it also has to verify all of this. On top of all this as you said the VPN system itself has an overhead and TCP/IP itself does so as well.
    While >30GB vs 6.35GB does seem an excessive ratio it is not impossible. It should be noted even a local first backup (the biggest) can take a great deal of time, however typically subsequent backups are a lot smaller and hence quicker.
    If you were able to do a local backup and do the same measurements of amounts transferred this would at least show if the amount is normal.

  • Remote Time Machine Back Up

    I'm thinking of getting an Airport Extreme and connecting my USB HDD to it. I only use the disk for Time Machine. Would I be able to do remote backup from a Mac laptop to this Time Machine disk? I saw in the product description that you can transfer files remotely though a mobileme account. It seems that service is dead or not available to new users. Is there any replacement for it

    Tesserax wrote:
    ...so would any disk attached to an AEBS automatically become an AirPort Disk or would it have to be defined as such.
    A USB HDD, formatted in either HFS+ or FAT32 and shared out from either an AEBSn or TC, would be an AirPort Disk.
    I have a friend looking into using Time Machine for his MacBook Air.  He doesn't any other Apple hardware other than an iPod, but is looking into getting an AEBS. If using an Airport disk as a Time Machine disk is not recomended, how would my friend go about doing backup without plugging in a remote disk to his laptop everytime he got home? I'm sure there are a lot of people in this situation so there must be some sort of solution.
    Back to my situation. If I leave my Time Machine disk attached to my Mac Mini, can I do back ups to it from my MacBook Air laptop? Do you need separate Time Machine disks or partitions of the same disk for each computer you wish to back up?
    Thanks for all your help.

  • Can't get remote cluster machine to encode video - getting 'Media Server application unexpectedly quit'

    Hi
    Using Compressor 4 / Apple QuarterMaster admin etc, I have set up a Cluster and it works well to Share > Export Using Compressor Settings.  That took some doing, and I'm happy that it works.
    If I do all my processing in the foreground, or alternatively in the background on my FCPX computer, ie without running or using any cluster in the background, it all goes well.  Quick, error free. 
    If I activate the cluster and only put my local machine's compressor services into it, and then send my compressor batch to the cluster, it works perfectly well.  But that defeats the point of having a cluster.  I want the remote machine to do all the work so my local machine doesn't slow down.
    Unfortunately, if I add the remote machine's services into the cluster, the encoding always fails with 'Media Server application unexpectedly quit' in the error log.  I know that the cluster is distributing segments of the file to the remote machine - this can be seen in the Share Monitor, but they never get processed and sit there waiting until I get the error message.
    The remote machine is a modern 4G core 2 duo MacBook. It's never been used for this before.  It has Compressor 4 and the Pro Apps Update installed and both appear to work.  Both machines are running 10.6.8.  The remote machine has Compressor services initialised in Apple QMaster sharing.  The QMasterAdmin sees these services.  They are accessible over Bonjour and appear in the Cluster.  Compressor services from both the local and the remote machine are configured exactly the same way.  The same QT codecs exist on both machines.  I've restarted, shift-restarted, etc etc.
    So I am at a loss here.  The remote machine just won't compress anything it is sent. 
    Any ideas?  Must both have FCPX installed?
    Anyone actually got a remote machine in a cluster to work with Compressor 4?  I can't figure it out.
    Chris.

    OK... finally sorted it out.
    It's a bug, as far as I can tell. 
    Any job entered directly into Compressor 4 in the normal Compressor manner will be successfully rendered by any working cluster from any machine that can access the cluster.  That's good.  It means that the underlying distributed processing model works well.
    HOWEVER - any job forwarded to a Compressor 4 cluster that includes non-local compressor services (ie compressor services not resident on the same machine), using Share > Export Using Compressor Settings direct from FCPX will fail.
    To confirm this bug, I made a cluster on a remote machine.  It was a dual core machine, so I enabled 2 compressor services on that machine, and that's all the cluster was.  Simple.
    I then manually entered a video file (ProRess 422 720p) into Compressor on the remote machine.  I did this by physically setting up new job using the compressor user interface.  A bog standard ProRes422 720p file rendered fine this way on the remote machine.  As did anything else I gave it.  Good.
    Then on my main machine, I opened Compressor and made a job based on the same file and settings, and sent it to the remote machine's cluster.  No problem at all!  Great!
    So now I know that both Compressor versions, and the clustering model, are working fine.  In fact I can send all sorts of files to the cluster, from any other version of compressor, and have them processed on the remote machine, and get the result back on my desktop later on.  Excellent.
    But, if I try put this same file into a FMPX timeline, and go Share > Export Using Compressor Settings.... and select a cluster with remote (non-local) compressor services, it does not work.  Rendering the video segments on the remote machine times out and fails, every time.  It doesn't matter what file format I use, it just fails. 
    So it's a bug. 
    From what I can tell, Final Cut Pro X somehow messes up the Share > Export Using Compressor settings where the cluster includes non-local compressor services, causing all jobs to fail.  The same Share > Export Using Compressor Settings will work quite happily if all the services on the cluster are on the same machine as FCPX, or if the job is sent to This Computer in the background.  But any attempt to send files to a cluster using any remote services will fail.
    I hope this saves some people from wasting as much time as I have!
    One workaround is to export to ProRes then put this file manually into Compressor, sending the job to the remote cluster.  This is a two step process with a large intermediary ProRes file.  If one goes Export as QuickTime movie, generating the intermediary file prevents further FCPX work being done. 
    To get the intermediary in the background one could use  Share > Export Using Compressor Settings via either This Computer, or to a cluster using only local services.  Then once complete, manually add it to a compressor job.
    So this is a FCPX bug as far as I can tell.
    Chris.

  • How to run UNIX command to a remote SUN machine through Java from Windows

    Dear All:
    I want to write one Java program which will be run on my Windows Machine.
    My Java program will will login in a SUN machine remotely say telnet and run some command.
    I want all those command output in my client windows PC for futher processing.
    Can anyone help me doing this?
    BR,
    P. Gupta

    import java.net.*;
    import java.io.*;
    import java.util.*;
    public class TelnetSocketDemo {
    static String list="";
    static String listArr[], hostArr[];
    static String host="", lhost="";
    public static void main(String[] args)throws IOException
    ExecuteUnixCmd obj=new ExecuteUnixCmd();
    // InetAddress localMachine = InetAddress.getLocalHost();
    // host=localMachine.getHostName();
    list=obj.ExecuteUnixCmdMain();
    int port=getPort(list,"Live");
    System.out.println(port);
    Socket sock = null;
    String prompt=">";
    String output = null;
    try
    // Connect to the PoleStar process.
    sock = new Socket("localhost",port);
    sock.setSoTimeout(60000);
    // Get the I/O streams for the socket.
    PrintWriter out = new PrintWriter(sock.getOutputStream(), true);
    InputStream in = sock.getInputStream();
    // Get to the silent console port.
    // out.println("S");
    // readToPrompt(in,area);
    // Fetch the response to the command.
    out.println("list all");
    output = readToPrompt(in,prompt);
    //System.out.println(output);
    //out.println("quit");
    //output=readToPrompt(in);
    catch (Exception ex)
    String msg = "unable to get Connection for PoleStar";
    finally
    try
    // close socket
    sock.close();
    catch (Exception ex)
    System.out.println(output);
    private static String readToPrompt(InputStream in,String prompt)throws IOExcepti
    on
    byte[] mByte = null;
    int iStrt = 0, iLen = 2000, nBytes = 0;
    StringBuffer buf = new StringBuffer();
    String s = null;
    boolean bNotFinished = true;
    do
    mByte = new byte[2000];
    nBytes = in.read(mByte, iStrt, iLen);
    if (nBytes == -1)
    break;
    // lost our TCP/IP connection
    // bNotFinished = false;
    // Convert byte stream to a string
    s = new String(mByte, 0, iStrt + nBytes);
    if (prompt.equals("") == false)
    if (prompt.equals(">"))
    if (s.indexOf(0x04) != -1)
    bNotFinished = false;
    // the hub sends the prompt at the beginning and the end
    else if (s.indexOf(prompt) != -1)
    bNotFinished = false;
    buf.append(s);
    } while (bNotFinished);
    return buf.toString();
    public static int getPort(String list, String area)
    int port;
    String listArr[],hostArr[];
    String lhost="";
    listArr=list.split(",");
    for(int i =0; i < listArr.length ; i++)
    lhost=listArr;
    hostArr=lhost.split("#");
    if((hostArr[1].equalsIgnoreCase("connectDev20"))&&(hostArr[0].indexOf(area)!=-
    1))
    port=Integer.parseInt(hostArr[2]);
    return port;
    else
    continue ;
    return 0;

Maybe you are looking for

  • Printing in B&W with HP CM2320 MFP - follow up

    Hi everyone, In the thread below Matthaus fixed his problem with the printer on his mac as quoted: https://discussions.apple.com/thread/1979704 "Okay. I figured it out. Knowing that the Grayscale was the ticket was very helpful. I just went into the

  • Problem in running a java stored procedure&optimum settings for this needed

    hi we are using java stored procedures to read huge data from database tables and transfer them to another system. the procedure is running fine but it fails after transferring 60000 records, the execution of procedure here does not terminate but kee

  • Wht is default User name  and password for the J2ee server

    Hi , All I had downloaded JSC for evaluation to get to creator hero .... After Complete Instalation I had started PointBase then start default Server Domain1 when I try to start the deploy tool for that wht is username and password 'coz while install

  • Attaching smartform and print prog to invoice

    hi ive developed a smartform and a print program. da program has a selection screen dat asks user for doc number(vbeln). it den displays data in da smartform. now ive to attach it to va02. wen i attach it using v/40 output type(RD000)  program name :

  • ORA-12545 error in rac, local&remote listener

    Hi, We have an 10g Release 2 RAC system. We usually take ORA-12545 Connect failed because target host or object does not exist tips error message. I think tnsnames.ora file is correct, I can achieve to send tnsping message. And I think the host file