Help required in socket programming...

hi all,
I have a server socket which is suppose to accept multiple clients and communicate with them... In case I m successfull able to connect only one client and communicate with the server where as the 2nd client is connected but i am not able to establish the communication.. can u please help me in this matter
Thank U
Parimala

Look at this Sample.
import java.awt.event.*;
import java.io.*;
import java.net.*;
public class Mserv extends JFrame
public Mserv() 
     super("J21server v1.4.1");
     setBounds(10,10,400,420);
     addWindowListener(new WindowAdapter()
    {     public void windowClosing(WindowEvent ev)
          {   dispose();
               System.exit(0);}});
     setVisible(true);
public void go(Socket clnt)
     Server server = new Server(clnt);
     server.start();
public class Server extends Thread
     Socket     clnt  = null;
public Server(Socket soc) 
     clnt = soc;
public void run()
     OutputStream out = null;
     InputStream  in  = null;
     int  i   = 0;
     byte b[] = new byte[1024];
     try
          out  = clnt.getOutputStream();
          in   = clnt.getInputStream();
          while ((i = in.read(b)) > 0)
     catch (IOException e){}
     try
          in.close();
          out.close();
     catch (IOException e){}
public static void main (String[] args) 
     ServerSocket servS  = null;
     Socket       clnt   = null;
     Mserv        mserv = new Mserv();
     try
         servS = new ServerSocket(4444);
          while (true)
               clnt = servS.accept();
               mserv.go(clnt);
     catch (IOException e)
          e.printStackTrace();
Noah

Similar Messages

  • Help on Server Socket Programming??????

    hello Friends,
    I need your help on following:
    I am the only person working on this project and the company wants me to prepare a infrastructure of this project and I should also give a demo of this project to my seniors. I will breif you up with my project:
    1. There is this gif image of distillation column. i will be publishing it using JApplet or Applet.
    2. This Image must be seen on internet.
    3. On the circle of these Image the user will click(In all there are five circles, called as controllers)and a dialog box should open thru which user will input the float values(I am using the JOptionPane class to open this dialog box).
    4. The inputed values will the be given to the C program which is the simulator for distillation column.
    5. The C program will generate the output through iterations(Code entirely in C), the output of each program will then be poped up to over the image beside the respective controlled or under the respective controller but definetely over the same gif file.
    6. The number of iteration will depend on how fast the C program converges the inputer parameters. And each output must be show over the gif image and when the final iteration value will appear it should remain on the image until some new value is inputted by the user again by clicking on any of the circle.
    The proposed theory to do this project accoding to me is as follows:
    1. Since each value must be thrown to the user. I beleive this is a real time project. So I decided to use Client Server Networking technology provided by java.
    2. Then I figured out that in this project there should be 2 clients One is the GUI which is the Image screen to receive the input from the user and to show the output to the user. Second client is a java program sitting behind the server which will receive this input data from user and it will have an NATIVE method through which all this input will be given to the C simulator program.
    3. The middle bridge between these two clients will be a server. Which will just pass the data to and fro from both the clients.
    3. The C program will perform iterations using these input values from second client. This C program will then give each iterations output to the Java program using JNI technology. This second client then sends this output value to the GUI clients through server.
    Well another very important thing, I am inexperience in the field of software so I had to do a lot of R&D and this is what I found out. Frankly I am really not sure whether this is the right path to approach to this project or there is some other correct and realistic way than this? Well friends i would certainly request you if you can suggest some other simple or rather correct path or else if this is the right path then would you please suggest me the possible hiches or perticular points where I should concentrate more.
    Well i am eagerly waiting for your reply.

    Since you are publishing your results on the net , it will be a better idea to use JSP?Servlet/Beans architecture instead of swing
    I will propose a architecture as follows:
    Client : Standard Browsers, IE and NS
    Middle Tier: Java Webserver/Application Server
    This will depend on your budget. If u have a fat allowance go for weblogic/websphere . If u are operationg on shoe string budget try for apache , etc
    In the server tier code your application in the follwing architecture
    JSP for presentation: Distillation towers picture, input boxes .. etc
    Servlets for business logic invocation and routing requests: Your JSP submits input values to servlets, which does the processing using Java Bean Components. Since you have a lot of Logic written in C I would suggest to encapsulate these in JavaBean components using JNI technology and reuse the code.
    After processing the servlet again forwards the response to another JSP for output
    Advantages:
    1.Your clients can be thin as most of the processing is done at the server
    2. Thread Management is taken care of by your webserver, which otherwise would be a headache
    3. Writing this through low level socket programming will be much more difficult as you will write your own protocol for communication this will be error prone and not scalable
    If you still decide to go for traditional client server programming using swing, use RMI for communication as I insist that socket programming is very very cumbersome...using your own protocols
    hope this helps
    Shubhrajit

  • Help required for Concurrent program parameters

    Hi All,
    I have a Concurrent program which has the following set of parameters.
    From Project Number
    To Project Number
    From Org
    To Org
    We dont want to make any of these mandatory, but we have a condition that either of the two sets must be entered i.e. before submitting we have to validate that either From Project Number/To Project Number parameter set is populated or From Org/To Org parameter set is populated.
    If someone could help me with this it would be a great help.
    Regards,
    Shruti

    Hi Shruti;
    What is your OS and EBS level?
    Please check below:
    Setup for Defined Concurrent Program with Parameters - SQL Script
    How to enable/disable parameters in concurrent program dependent prev. para
    Concurrent Program with conditionally required parameters
    Need to do validation while entering concurrent program parameters
    If those are not help,please try to look [this search|http://forums.oracle.com/forums/search.jspa?threadID=&q=Concurrent+program+parameters+&objID=f475&dateRange=all&userID=&numResults=15]
    Also check http://download-uk.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/progde04.htm and this
    Hope it helps
    Regard
    Helios

  • Help required in Dailog programming

    Hello All,
    I have a field in screen. For that filed i kept f4help in flow logic in process on request(POV)
    My problem is:
    The user chooses some value in f4 help.After the user chooses some value i need to set someother field based on this field. But i am unable to do that. Can any one help me. how to solve this problem?
    My code: in flow logic
    PROCESS ON VALUE-REQUEST.
      FIELD: qmel-qmcod MODULE f4help_qmcod.
      lt_qpk1codegrp-codegruppe = '*'.
      APPEND  lt_qpk1codegrp.
      CALL FUNCTION 'QPK1_GP_CODE_SELECTION'
        EXPORTING
          i_katalogart           = 'Z'
          i_code                 = '*'
          i_sprache              = sy-langu
          i_winx1                = 10
          i_winx2                = 70
          i_winy1                = 5
          i_winy2                = 25
          i_return_if_one        = 'X'
          i_pickup_mode          = 'X'
        TABLES
          t_qpk1cdtab            = lt_qpk1cd
          t_codegrptab           = lt_qpk1codegrp
        EXCEPTIONS
          no_match_in_range      = 1
          no_user_selection      = 2
          no_authorization       = 3
          no_selection_specified = 4
          object_locked          = 5
          lock_error             = 6
          object_missing         = 7
          OTHERS                 = 8.
      CASE sy-subrc.
        WHEN 0.
          READ TABLE lt_qpk1cd INTO ls_qpk1cd INDEX 1.
          IF sy-subrc = 0.
            qmel-qmgrp = ls_qpk1cd-codegruppe.
            qmel-qmcod = ls_qpk1cd-code.
            FREE: lt_qpk1cd,ls_qpk1cd.
          ENDIF.
        WHEN OTHERS.
          MESSAGE s006 WITH 'please check the program'.
      ENDCASE.
    Regards,
    Lisa

    READ TABLE lt_qpk1cd INTO ls_qpk1cd INDEX 1.
          IF sy-subrc = 0.
            qmel-qmgrp = ls_qpk1cd-codegruppe.
            qmel-qmcod = ls_qpk1cd-code.
    "here you need to call the Function
    " DYNP_VALUES_UPDATE to update the other fields
            FREE: lt_qpk1cd,ls_qpk1cd.
          ENDIF.

  • Help required on Freely Programmed Input help

    Dear all,
    I have developed a component, say comp1, in which i have implemented the interface IWD_VALUE_HELP.
    In the respective view(MAIN) of Comp1 i have a dropdown which contains a list of company codes fetched from T001 table.
    Apart from these two, I have also embedded the Main view into the window WD_VALUE_HELP.
    Now, I have created another component, say Comp2, in which i Used the dynpro component Comp1, and also in the MAIN view of my Comp2. Now in the MAIN view of Comp2 I have created a input field from the node T001 in the context which contains the single attribute BUKRS type String. In the properties of the BUKRS attribute I have also changed the Input help to "Freely Programmed" and linked to the component for the Input help.
    After this, I have created the application for my component Comp2. When i run the application and when i press F4 on the input field i am able to get the window from Comp1 component, and a dropdown with values.
    Now the question is, How can i pass the value selected in that window of Comp1 into the input field of Comp2? we do the same in OVS, when ever a value is selected from the Hitlist, it will be cascaded into the input field, just like that i want to do here.
    Please suggest me how to do this, and also please tell when to go for Freely programmed Input help and its advantages.
    Thank you,
    Shashi.

    You can do as suggested already and use interface nodes and cross component mapping; but that is all really not necessary.  It creates a situation where you calling application is too dependent upon the freely programmed input help.  You want to try to avoid the situation where the calling application needs code or mappings to communicate with the input help.
    That is easy to do because the framework passes all the information you need into the freely programmed input help via the value_help_listener object. 
    Part of the Freeley Programmed Input Help Component should be the component interface IWD_VALUE_HELP.  This comes with a component controller method called SET_VALUE_HELP_LISTENER.  This allows your freely programmed value help to capture this object called listener of type IF_WD_VALUE_HELP_LISTENER. I generally just store it awa into a component controller attribute.
    With this listerner object you have direct access to the context attribute in the calling component. You can query information about the calling UI element and of course set values directly back into it.  The listener is a hugely helpful object and should be the way you interact with the calling component whenever possible.  Here is small example:
      set single attribute
      wd_this->value_help_listener->f4_context_element->set_attribute(
      exporting
        name = wd_this->value_help_listener->f4_attribute_info-name
        value = l_time

  • Help require in ABAP programing.

    Good Afternoon all ,
    Target : To fill the value in ZPLN_DLTM which is attribute of 0MAT_PLANT
    The logic for updating the field is as follows:
      We want this Planned Delivery time to be based off of an InfoRecord (ZGOPRO71 and the new ZGOPRO59).  If there is no InfoRecord found then we will use 0PLND_DELRY on 0MAT_PLANT (PLIFZ).
         SELECT INFO_REC, PURCH_ORG, INFO_TYPE the first row you find From the active table of ODS ZGOPRO71
         WHERE material and plant = the material and plant on the record from R/3
         AND PURCH_ORG between 0000 and 9999.
    Now take the INFNR (InfoRecord) found and select from the new ZGOPRO59 ODS.
         SELECT SINGLE DURSHP_PL (planned delivery time) FROM active table of ZGOPRO59
         WHERE INFO_REC, PURCH_ORG, INFO_TYPE match from the above SELECT
         AND PLANT = plant on the record from R/3.
         Lastly the RESULT should equal the DURSHP_PL from the above SELECT +
              GR_PR_TIME.
    If you cannot find a record from either of the two SELECT statements, then set the RESULT to PLND_DELRY.
    ***************This program i have written in an INCLUDE***********
    TABLES:/bic/AZGOPRO5900,
            /bic/AZGOPRO7100.
    DATA: wa_datapak_line  type TRANSFER_STRUCTURE.
    ****Internal table for ZGOPRO71******
    DATA: Begin of i_zgopro7100 occurs 0,
                  Material       type /bic/azgopro7100-material,
                  Plant          type /bic/azgopro7100-plant,
                  INFO_REC       type /bic/azgopro7100-INFO_REC,
                  INFO_TYPE      type /bic/azgopro7100-INFO_TYPE,
                  PURCH_ORG      type /bic/azgopro7100-PURCH_ORG,
          End of i_zgopro7100.
    ****Internal table for ZGOPRO59******
    DATA: Begin of i_zgopro5900 occurs 0,
                   Material       type /bic/azgopro5900-Material,
                   Plant          type /bic/azgopro5900-Plant,
                   INFO_REC       type /bic/azgopro5900-INFO_REC,
                   DURSHP_PL      type /bic/azgopro5900-DURSHP_PL,
                   INFO_TYPE      type /bic/azgopro5900-INFO_TYPE,
                   PURCH_ORG      type /bic/azgopro5900-PURCH_ORG,
          End of i_zgopro5900.
    ******For Loading Data into Internal table i_zgopro7100 ******
    Refresh: i_zgopro7100.
    Select  Material Plant INFO_REC INFO_TYPE PURCH_ORG from /bic/azgopro7100
         INTO TABLE  i_zgopro7100
         FOR ALL ENTRIES IN datapak
              WHERE  Material = datapak-mat_plant
              AND    Plant = datapak-plant
               AND  PURCH_ORG BETWEEN 0000 AND 9999.
    Sort i_zgopro7100 by plant.
    For Loading Data into Internal table i_zgopro5900 ******
    Refresh: i_zgopro5900.
    Select  Material Plant INFO_REC DURSHP_PL INFO_TYPE PURCH_ORG from /bic/azgopro5900
         INTO TABLE i_zgopro5900
         FOR ALL ENTRIES IN datapak
          WHERE Material = datapak-mat_plant.
    Sort i_zgopro5900 by plant.
    loop at datapak into wa_datapak_line.
      ztabix = sy-tabix.
    READ TABLE  i_zgopro7100
      WITH KEY Material = wa_datapak_line-mat_plant
                  Plant = wa_datapak_line-plant
                              BINARY SEARCH.
      if sy-subrc = 0.
        READ TABLE i_zgopro5900
        WITH KEY INFO_REC = i_zgopro7100-INFO_REC
                               Material = i_zgopro7100-Material
                               INFO_TYPE = i_zgopro7100-INFO_TYPE
                               PURCH_ORG = i_zgopro7100-PURCH_ORG
                               Plant = wa_datapak_line-plant.
        if sy-subrc = 0.
          wa_datapak_line-/bic/ZPLN_DLTM = i_zgopro5900-DURSHP_PL + wa_datapak_line-gr_pr_time.
        Else.
          wa_datapak_line-/bic/ZPLN_DLTM = wa_datapak_line-plnd_delry.
        Endif.
      Else.
        wa_datapak_line-/bic/ZPLN_DLTM = wa_datapak_line-plnd_delry.
      Endif.
    modify datapak from wa_datapak_line index ztabix.
    endloop.
    *********My question****************
    The sy-subrc returned value 4 even though row is found
    the data is not updated in the field ZPLN_DLTM it copies valu from PLND_DELRY by default even though it satisfies the conditions but if u load for specific plant and material values get loaded in the field with proper calculation.
    For the right answer points will be rewarded.

    Hi Vaishali,
    In following code fragment ,
    Select Material Plant INFO_REC INFO_TYPE PURCH_ORG from /bic/azgopro7100
    INTO TABLE i_zgopro7100
    FOR ALL ENTRIES IN datapak
    WHERE Material = datapak-mat_plant
    AND Plant = datapak-plant
    AND PURCH_ORG BETWEEN 0000 AND 9999.
    Sort i_zgopro7100 by plant.
    try with following changes
    1. Comment 
    AND PURCH_ORG BETWEEN 0000 AND 9999.
    2. Instead of
    Sort i_zgopro7100 by plant.
       Write
    Sort i_zgopro7100 by material plant.
    In following code fragment
    loop at datapak into wa_datapak_line.
    ztabix = sy-tabix.
    READ TABLE i_zgopro7100
    WITH KEY Material = wa_datapak_line-mat_plant
    Plant = wa_datapak_line-plant
    BINARY SEARCH.
    if sy-subrc = 0.
    READ TABLE i_zgopro5900
    1. After statement
    ztabix = sy-tabix.
      Insert
       Clear i_zgopro7100.
        Clear i_zgopro5900.
    And let us know the output .
    Hope that helps.
    Regards
    Mr Kapadia
    Assigning points is the way to say thanks in SDN.

  • Help required - For ALV program

    Hi Guys,
    I have created an ALV  (using containers) with , say , 10 fields. As the container size is not large enough to accomodate all the 10 fields, it is getting displayed as
    field1, field2,field8, field9 and field10.
    When I click on the horizontal scrollbar, the fields getting displayed should change as follows.
    First click: Field2, Field3, Field8,Field9, Field10
    Second click: Field3,Field4, 8, 9,10
    Third click: Field4,Field5,8,9,10
    This is for one of my friends.Can you provide me with good ideas as to how to approach this problem and if any one has worked on similar problem, please provide the code for it.
    I will check the code and will award points to all helpful answers.
    Have a nice day .
    Regards,
    SP.

    Hello Sylendra
    As developer of ALV lists we do not care that much about the layout of the list because the user has all the options available to adjust it to her specific needs.
    Your requirement is to be able to "freeze" columns at the right border of the ALV list. This is, as far as I know, not possible, only at the left border.
    When you call the context menu for a column heading you will see the options
    - Freeze to Column
    - Unfreeze Columns
    If you freeze a column all columns to its left side remain fixed. Thus, in your case you have to change the order of your columns that the fixed columns (field8 - field10) appear on the left side of the ALV list.
    Regards
      Uwe

  • HELP : Convert socket programming from Ipv4 to IPv6

    Hi all,
    I need help in converting my Ipv4 socket programing to Ipv6. How can I do this? I already have an Ipv4 socket programming that is working but when I tried to convert it to Ipv6 it doesn't work .
    this is my Ipv4 socket programming :
    DatagramPacket sendPacket;
    DatagramSocket sock;
    ip = jtfDIP.getText().trim();
    try{
    sock = new DatagramSocket();
    add = InetAddress.getByName(ip);
    sendPacket = new DatagramPacket(buf,buf.length,add,port);
    Please help me. How can I convert this to Ipv6. Thank you.

    Socket sock = new Socket("host");
    or
    Socket sock = new Socket("192.168.1.1");
    or
    Socket sock = new Socket("www.host.com");
    or
    Socket sock = new Socket("hhhh.hhhh.hhhh.hhhh");
    Get it? Just use whatever host, domain name, or IP you need, the underlying native code does the work - you'll never need to do anything, for the most part.

  • SOCKET PROGRAMMING  HELP NEEDED!!!!

    hi,
    I got an idea of establishing socket connection with all clients from SERVER through the windows command
    called (arp -a). when we type the stated command on dosprompt in server, it gives the list of current system's
    ipaddress.....switched on. SO i can establish socket connections in a for loop where i can take the following ipaddress from output listed from command.
    i've written the code to call the command in JAVA.
    i write the dosprompt output in a file named list1.txt
    import java.util.*;
    import java.io.*;
    import java.io.File;
    public class RunCommand
    public static String[] runCommand(String cmd) throws IOException
    ArrayList list = new ArrayList();
    Process proc = Runtime.getRuntime().exec(cmd);
    InputStream istr = proc.getInputStream();
    BufferedReader br = new BufferedReader(new InputStreamReader(istr));
    String str;
    while ((str = br.readLine()) != null)
    list.add(str);
    try
    proc.waitFor();
    }catch (InterruptedException e)
    System.err.println("process was interrupted");
    // check its exit value
    if (proc.exitValue() != 0)
    System.err.println("exit value was non-zero");
    // close stream
    br.close();
    // return list of strings to caller
    return (String[])list.toArray(new String[0]);
    public static void main(String[] args) throws Exception
    try
    FileWriter f1=new FileWriter("list1.txt");
    String[] s = runCommand("arp -a");
    for (int i = 0; i< s.length; i++)
    f1.write(s);
    System.out.println(s[i]);
    f1.close();
    }catch (Exception ex) { System.out.println(ex);}
    SAMPLE OUTPUT:
    Interface: 172.16.3.1 on Interface 0x1000003
    Internet Address Physical Address Type
    172.16.3.4 00-00-e2-13-a9-e8 dynamic
    172.16.3.6 00-00-e2-13-aa-0f dynamic
    172.16.3.10 00-00-e2-13-ab-bb dynamic
    172.16.3.12 00-00-e2-13-ab-93 dynamic
    172.16.3.16 00-00-e2-13-37-b8 dynamic
    172.16.3.17 00-00-e2-13-37-19 dynamic
    172.16.3.18 00-00-e2-13-37-1d dynamic
    172.16.3.19 00-00-e2-13-38-98 dynamic
    172.16.3.22 00-00-e2-13-37-54 dynamic
    172.16.3.23 00-00-e2-13-39-02 dynamic
    172.16.3.24 00-00-e2-13-39-0f dynamic
    172.16.3.26 00-00-e2-13-37-a5 dynamic
    172.16.3.27 00-00-e2-13-37-0b dynamic
    172.16.3.28 00-00-e2-13-37-12 dynamic
    172.16.3.29 00-00-e2-13-39-15 dynamic
    172.16.3.30 00-00-e2-13-38-af dynamic
    172.16.3.31 00-00-e2-13-37-fe dynamic
    172.16.3.32 00-00-e2-13-38-ff dynamic
    172.16.3.34 00-00-e2-13-ab-c8 dynamic
    172.16.3.37 00-00-e2-13-ab-67 dynamic
    172.16.3.42 00-00-e2-13-ab-19 dynamic
    PLS HELP ME OUT IN GETTING ONLY THE IPADDRESS IN FOR LOOP IN SERVER SOCKET PROGRAM TO INVOKE ALL CLIENT'S PROGRAM IN NETWORK.
    PLS HELP ME!!!!!!!
    ATTACH THE CODE!!!!!!!!!!!!

    Connecting to a client presumes that the client is waiting for a connection.
    If that is the case I would suggest looking a java.net.Socket.

  • Help needed with swings for socket Programming

    Im working on a Project for my MScIT on Distributed Computing...which involves socket programming(UDP)....im working on some algorithms like Token Ring, Message Passing interface, Byzantine, Clock Syncronisation...i hav almost finished working on these algorithms...but now i wanna give a good look to my programs..using swings but im very new to swings...so can anyone help me with some examples involving swings with socket programming...any reference...any help would be appreciated...please help im running out of time..
    thanking u in advance
    anDy

    hi im Anand(AnDY),
    i hav lost my AnDY account..plz reply to this topic keeping me in mind :p

  • Network and socket programming in python

    i want to learn network and socket programming but i would like to do this in python.Reason behind this is that python is very simple and the only language i know . 
    anybody can suggest me which book should i pick.
    the book should have following specification--
    1)not tedious to follow
    2)lots of example
    3)starts with some networking stuff and then get into codes
    thanks in advance with regards.

    hmm. well, your requirements are almost contradictory.
    Not sure about books, except maybe dusty's.
    Most python books cover at least some network programming (unless the book is topic specific).
    I use lots of python-twisted at work. I mean ALOT. I wouldn't recommend it to someone looking for non-tedious though! I also like gevent/eventlet (esp. the async socket wrappers).
    EDIT: Wow. My post wasn't really helpful at all. Sorry!
    Last edited by cactus (2010-09-04 09:16:54)

  • [Urgent]3G Socket programming

    May I use socket for 3G networks?
    I use the demo provided by the WTK2.5-Beta(NetworkDemo), it works well in the simulator. However, when I download the program to the mobile phone, it seems that the mobile phone that runs ServerSocket cannot create the socket ... all the 2 handsets use a 3G SIM card provided by a Hong Kong ISP smartTone ... What can I do?
    Please help~ provide any web page of codes, thanks very much!

    1.     We want to create a socket connection which can
    remain open and live for ever till it is closed. Is
    this possible in java socket programming?Yes, but it isn't practical in the real networking world. So your code had better be prepared to deal with network failures.
    2.     I am just wondering in order to communicate with
    the third party over the socket connection, does this
    other party requires to run something specific on
    their end? I am not able to understand how will my
    java code communicate with their server otherwise.It has nothing to do with java. Sockets send and recieve messages. The applications at either end, regardless of the language that they are written in, must handle those messages.
    3.     Can we send and receive data over the socket
    created and also is their specific format for the
    data? Yes.
    Can we send files of data over this connection?Yes. (Although I don't know why you would need to do that if you are doing credit card auths.)
    It would be great if someone can comment on these
    questions and also if possible please provide some
    code that can create socket connection.The tutorial.....
    http://java.sun.com/docs/books/tutorial/networking/sockets/index.html

  • Urgent help required: Query regarding LC Variables

    Hi All
    Sometime earlier I was working on a performance issue raised by a customer. It was shell script that was taking almost 8-9 hrs to complete. During my research I came across a fact that there were some variables which were not set, the LC variables were impacting the sort funnel operations because of which the script was taking a long time to execute.
    I asked them to export the following commands, after which the program went on smoothly and finished in a couple of mins:
    export LC_COLLATE=en_US.ISO8859-1
    export LC_MESSAGES=C
    export LC_MONETARY=en_US.ISO8859-1
    export LC_MONETARY=en_US.ISO8859-1
    export HZ=100
    export LC_CTYPE=en_US.ISO8859-1
    export LANG=en_US.UTF-8
    Later I did recover that setting the LC_COLLATE to C, is not helping and the program was again taking a lot of time. Few questions that I want to ask are:
    1. Can someone please tell me, what each of these variable mean and how these values make a difference.
    2. When I exported LC_COLLATE=en_US.ISO8859-1, it worked fine, but when i tried with the defalut value LC_COLLATE=C, then why the program didnt work.
    As this issue is still going on, hence I would request All to provide their valuable inputs and let me know as much as possible.
    Appreciate your help in this regard.
    Thanks
    Amit
    Hi All
    A new development in this regard. The customer has send us a screen shot in which they were trying to export the locale variable using the commands which I have pasted above. I can see in the screen shot that while exporting LC_COLLATE and LC_TYPE, they get a message that ""ksh: export: couldn't set locale correctly"".
    Request everyone to please give their inputs as it's a bit urgent.
    Thanks for all the help in advance.
    Thanks
    Amit
    Some help required please...
    Edited by: amitsinhaengg on Jul 22, 2009 2:03 AM
    Edited by: amitsinhaengg on Jul 22, 2009 2:06 AM

    LC_CTYPE
    Controls the behavior of character handling functions.
    LC_TIME
    Specifies date and time formats, including month names, days of the week, and common full and abbreviated representations.
    LC_MONETARY
    Specifies monetary formats, including the currency symbol for the locale, thousands separator, sign position, the number of fractional digits, and so forth.
    LC_NUMERIC
    Specifies the decimal delimiter (or radix character), the thousands separator, and the grouping.
    LC_COLLATE
    Specifies a collation order and regular expression definition for the locale.
    LC_MESSAGES
    Specifies the language in which the localized messages are written, and affirmative and negative responses of the locale (yes and no strings and expressions).
    You can use command
    # locale -k LC_CTYPE
    to see more detail about each type.

  • Help required with Photoshop Elements 4.0 this has been installed on my new Toshiba laptop with windows 8.1 for some 18 months and operating well. Now it will not open, message pops up saying "attempt to access invalid address" then "application not respo

    Help required with Photoshop Elements 4.0 this has been installed on my new Toshiba laptop with windows 8.1 for some 18 months and operating well. Now it will not open, message pops up saying “attempt to access invalid address” then “application not responding” Suggestions how to access would be much appreciated. Tks. Stuart

    What is the size of your hard disk?  PSE 4 is a very old program and I suspect it is not able to access the entire hard disk on your machine.  Just a thought here.

  • Help with a java program

    Hello. I'm posting in these forums because I really don't know where else to go. I have been trying for the past several days to figure out how to go about writing my program but to no avail. The project requires reading many lines each containing several different elements from a datafile named "DATA". A few examples of some lines from that file:
    Department number/Number of units received/Date on which the shipment arrived/Expiration date/Name of Object
    0 78 02/03/2001 02/12/2001 apples
    0 26 06/03/2001 06/10/2001 lemons
    3 62 03/06/2001 03/14/2001 hamburger
    What we have to do with this data is read all of it from the file, separate all the different elements, and based on input from the user, sort everything and print it out to the screen. If the user enters 03, the program will show everything that arrived and expired within the month of March, sorted by date.
    It is a pretty basic program, but my problem is that I have no idea how to go about reading in this data, putting it into a vector (probably the easiest method) or separating the different elements. I've gone to websites and looked through my textbooks but they didn't help much. If anyone has any resources that could help for writing such a program, or if anyone could offer help in writing the program, I would really appreciate it. I can also show what I've managed to write so far, or more details on how the program should work. Thanks in advance.
    Matt

    since im not a pro like some of the guys on here :),
    and believe me thiers people here, who could write your whole app in a hour.
    anyways my advice , would be to do a search on the forums for useing.bufferReader()
    i think you would need to read the file in with bufferreader then split up each line useing the stringTokenizer and then use some algorithm to compare
    the values and split them up into your vector arrays as needed.
    thier is also fileinputStream i think you can use that too.

Maybe you are looking for

  • Not able to EDIT the data in PSA

    Hi Experts, I had created cube and it has following seeting 1) Three  dimensions i.e. Employee_No, Employee_name and Time 2) Key figures i.e. Salary and Tax Procedure What I have followed ======================= 1. Created one CSV file and it contain

  • How can I print from my iPad through my Mac Book Pro which is connected to a printer?  I was told I could do this.

    How can I print from my iPad through my Mac Book Pro which is connected to a printer?  I was told I could do this when the iPad and Mac Book Pro are synched together.

  • Image text is missing in InDesign CS4

    Hi everybody, I am using InDesign CS4 with MAC OS X 10.5.8. I encountered a problem that the Text is missing in the eps image, when imported on InDesign document. Refer below screenshot. I have used "Times New Roman" Type1 font in InDesign document.

  • Acrobat 7.0 ayuda con la conexion a SQL

    Buenas la presente es a ver quien me hace el favor y me ayuda en cuanto al nuevo Adobe 7.0 en el designer con la conexion a SQL mi problema es el siguiente: Creo un Drop-Down List le hago la conexion pero me da el siguiente error al ejecutarlo: "conn

  • Shared folder read-only for other users

    We setup a new iMac with three accounts for members of the family. Two have admin rights. We installed Quicken Essentials 2010 for Mac, and put the Quicken data file in the Users/Shared/Quicken folder. Everything worked great for user #1 who copied t