Can someone give me an example of a very simple launchd.plist file that...

Launches an agent and allows the agent general internet access?
I have this simple plist but what happens is that launchd launches it and then kills it (abort) and then launches it again and does the same thing 10 times and quits. I have traced the 'action' that causes this. As soon as my app tries to get a socket and connect, it is killed.
I did put in a socket thing in the launchd plist file, but then it seems that launchd answers the call, not the thing I want to, then my app gets stuck on a recv call thinking it has sent data to a server and is waiting for an answer which will never come.
I do not know if they have these for macs (I am sure they do), but imagine a tool like ICQ or Instant Messenger. It loads when the user logs on, you have your contacts list, and it coordinates via some foreign server, although once a match is made direct connects to person you are chatting with.
How would you launch an agent like that? I can't figure out the plist entries needed. I can either launch my app and have it get "locked" by a recv call cause launchd answered the connect, and accepted the send, or I can remove the socket stuff and get in this cycle of launches and aborts.
A simple example would be of great help.

An object is a good way to implement this. For the first, the object would look like this:
var oT1 = {
    "5" : 0.1,
    "50" : 2,
    "75" : 6,
    "100" : 12
To get the value associated with the 100 property, the code would look something like:
var val = oT1["100"];
The variable "val" would then contain the number 12.
For the second, the value of each object property could be an array, something like:
var oT2 = {
    "Debbie" : [5, 0, 16],
    "Carl" : [0, 20, 4],
    "Josh" : [2, 8, 19]
To get the second item in the array for the "Josh" array, the code would look like:
var val = oT2["Josh"][1];
To get the last item in the "Debbie" array, you could do this:
var val = oT2["Debbie"][2];
Array indexes are zero-based, so the second item has an index of 1, third item is 2, etc..
Good luck

Similar Messages

  • Can someone give me an example of creating a table in the Custom Calc Script?

    I need to simulated a table in the Custom Calculation Script. All I need is an example (maybe two examples, see below) and I can hopefully work out the rest.
    Here is a sample of the first table:
    Col 1
    Col 2
    5
    .1
    50
    2
    75
    6
    100
    12
    Basically I need the script to get the number from the first column and return the associated number (in same row) in the second column.
    The second table I need to simulate is a little more complex as it uses text and has multiple columns:
    Header 1
    Station 1
    Station 2
    Station 3
    Debbie
    5
    0
    16
    Carl
    0
    20
    4
    Josh
    2
    8
    19
    It will pull the names from one field then the stations from another and return the cross referenced value.
    I hope someone can please help.
    Bruce

    An object is a good way to implement this. For the first, the object would look like this:
    var oT1 = {
        "5" : 0.1,
        "50" : 2,
        "75" : 6,
        "100" : 12
    To get the value associated with the 100 property, the code would look something like:
    var val = oT1["100"];
    The variable "val" would then contain the number 12.
    For the second, the value of each object property could be an array, something like:
    var oT2 = {
        "Debbie" : [5, 0, 16],
        "Carl" : [0, 20, 4],
        "Josh" : [2, 8, 19]
    To get the second item in the array for the "Josh" array, the code would look like:
    var val = oT2["Josh"][1];
    To get the last item in the "Debbie" array, you could do this:
    var val = oT2["Debbie"][2];
    Array indexes are zero-based, so the second item has an index of 1, third item is 2, etc..
    Good luck

  • Can someone give me an example on how to use keyevents with a textbox?

    I'm trying to have a method occur when the user hits the F2 button in a textbox. All the examples I've seen on this assume your using a menu and none seem descriptive for what I need. I'm also trying to find out how I can set my class to handle multiple event types. Ex.
    public class frmMain extends JFrame implements ActionListener
    how can I define this to handle multiple Listeners?
    How can I write it it to:
    A) Have a control respond to user input?
    B) Have it check to see if the key was pressed?
    I've used ActionListener events and I seem to have descriptions of that but I'm not sure how to tell if a key event was pressed. Ex.
    JButton cmdPushMe = new JButton("OK");
    cmdPushMe.addActionListener(this);
    public void actionPerformed(ActionEvent myEvent)
    Object eventSource = myEvent.getSource();
    if (eventSource==cmdPushMe)
    txtInput.setText("This works!");
    I have some code to test whether a key was pressed.
    if (eventSource==KeyStroke.getKeyStroke(KeyEvent.VK_F1))
    txtInput.setText("You pressed F1");
    I don't really know if this is how I should write it or what? Also since ActionListener only has one event (ActionPerformed) what is the
    default event for KeyListener being there are (keyPressed,keyReleased,keyTyped)? Is there a different way I should
    call this?

    You can use more than one listener:
    public class frmMain extends JFrame implements
    ActionListener, KeyListenerAnd don't forget to add the key listener to your textBox. Sounds stupid but you can easily forget and sometimes it takes a little while to realize thats why you key events are not fireing.

  • Can someone give me an example of

    How to use the scroll compand on a bitmap
    a bitmap as simple as this
    var bmp:BitmapData = new BitmapData(200, 200, false, 0xFFCC00CC);
                var bitmap:Bitmap = new Bitmap(bmp);
                bitmap.x = bitmap.y = 200;
                addChild(bitmap);

    I mean I want to make like a game map that expands out in all four directions and someone said to do that you got to use scroll and bitmap tiles

  • Can someone give me an example use of JCOM1 pinheader - P6N SLI-FI

    Trying to maximize the usage of my new board and the only thing the manual says of the JCOM1 pinheader is it is used for serial devices.
    Thanks for help

    Quote from: Maesus on 11-March-07, 14:55:58
    Is it a 9-pin port? It's for Serial COM devices. Recent boards removed Serial COM port from the backpanel, leaving only 9-pin headers on the board. You need to have a Serial COM bracket with the correct 9-pin assignment connection to use it.
    Thank you for your reply. I'm trying to understand what SerialCOM devices might be. A digital camera? Maybe a Camcorder or a calculator?

  • Can someone give me ABAP Dialog program /ALV Step by Step hands on examples

    Can someone give me a document for ABAP Dialog programming(module pool) and ALV - but i need Step by Step example ,with sreenshots and explanations.
    In general any ABAP, STEP BY STEP hands on examples - Smartform, Sapscrips, Report, BDC will be highly appreciated.
    I only need hands on examples please - regular Abap courses does not work because they dont have examples.
    Please help ASAP.
    Bob
    Welcome to SCN - but please read the rules of engagement before posting
    Edited by: Rob Burbank on Jun 14, 2009 4:28 PM

    What temporary files are you talking about?

  • What exactly is balance in Oracle Payroll. Can someone give an example pls

    Hi
    I am a newbie to Oracle Payroll. Could some one xplain what exactly is balance in Oracle Payroll. Can someone give an example pls. Is there any link which would be useful to clearly explain this.

    Results of Payroll run get accumulated in the Balances. The accumulation happens according to the dimension like ASGRUN holds the value of current payroll run, ASGYTD holds the cumulative value for the current financial year and gets reset at the beginning of the next financial year, ASGQTD holds the cumulative value for the current quarter and gets reset at the beginning of the next quarter etc.
    You can see the values of the balances for different dimension after running the payroll.
    View -> Assignment Process Results -> Balances.

  • Everything runs als Root, can someone give me a hand for the system rights?

    yeah I screwed up big times because of this neat unknow_user "Feature" in Leopard.
    First i installed a os 10.4 app under leopard which let the disk utility slow down and the finder crashes if i change the user rights, and then i changed globally the group and user of everything in the application folder and my documents folder with pathfinder for looking if i can solve the problem that way.
    -But now everything runs as Root and even the hd itself has a owner root and as group admin.
    i don't get the difference between system, root, admin, wheel, username for the owner and group. I googled but found nothing clear about this.
    And i also wonder what i should do about the group and the meaning of root, system, admin, wheel, username as a group for a single user system. Where should i give a read, read&write and execute permission for example?
    at the moment everything seems to run mostly root and every program runs on root and i think this is the worst think that can happen and causes some trouble for the programs.
    Can someone give me a short hand and for example tell me if i should set the hd owner to my username and the group to system or admin or whatever and this also for the application and documents/film and other stuff on my user folder?
    that would be great
    I think i have to reinstall leopard, but as long as this unknow_user problem still resist and no patch is available, i see the same thing happen again and again for me, so a little help would be great
    here the ls -l -a from the system and user directory
    drwxrwxr-t 26 root admin 1496 Nov 1 23:41 .
    drwxrwxr-t 26 root admin 1496 Nov 1 23:41 ..
    -rw-rw-r--@ 1 root admin 15364 Nov 5 22:42 .DS_Store
    drwxrwxr-x@ 3 root admin 102 Oct 30 18:40 .Spotlight-V100
    drwxrwxr-x@ 2 root admin 68 Aug 2 12:29 .Trashes
    -rw-r--r-- 1 root admin 0 Oct 30 17:09 .com.apple.timemachine.supported
    drwx------ 2 root admin 952 Nov 5 22:09 .fseventsd
    -rw-rw-r--@ 1 root admin 262144 Oct 10 11:42 .hotfiles.btree
    drwxr-xr-x@ 2 root wheel 68 Aug 2 12:30 .vol
    drwxrwxrwx+ 400 adrian admin 13872 Nov 5 22:00 Applications
    drwxr-xr-x 2 root admin 102 Nov 1 23:01 Data
    -rw-r--r--@ 1 root admin 10240 Oct 25 05:19 Desktop DB
    -rw-r--r--@ 1 root admin 37442 Oct 25 01:39 Desktop DF
    drwxrwxr-x@ 13 root admin 544 Oct 30 19:46 Developer
    drwxr-xr-x 5 adrian adrian 204 Sep 12 14:25 InputManagers
    -rw-r--r--@ 1 adrian adrian 1568128 Nov 1 23:45 Installer Log File
    drwxrwxr-t+ 60 root admin 2108 Nov 1 22:06 Library
    drwxr-xr-x@ 2 root wheel 68 Aug 2 10:08 Network
    drwxr-xr-x 3 root wheel 136 Oct 30 18:01 System
    drwxrwxrwx@ 3 root admin 102 Aug 2 17:21 TheVolumeSettingsFolder
    drwxr-xr-x 5 root admin 238 Nov 2 00:03 Users
    drwxrwxrwt@ 4 root admin 170 Nov 5 20:21 Volumes
    -rw-r--r-- 1 adrian admin 0 Oct 29 22:51 az.log
    drwxr-xr-x@ 2 root wheel 1360 Oct 30 17:57 bin
    drwxrwxr-t@ 2 root admin 68 Jan 13 2006 cores
    dr-xr-xr-x 2 root wheel 512 Nov 2 04:11 dev
    lrwxr-xr-x@ 1 root admin 11 Oct 30 17:57 etc -> private/etc
    dr-xr-xr-x 2 root wheel 1 Nov 2 04:11 home
    lrwxr-xr-x 1 root 502 11 Nov 1 22:40 mach -> mach_kernel
    -r--r--r--@ 1 root admin 615748 Oct 29 18:23 mach.sym
    -rw-r--r--@ 1 root wheel 10243756 Oct 10 06:38 mach_kernel
    -rw-r--r--@ 1 root wheel 10696809 Oct 10 06:38 mach_kernel.ctfsys
    dr-xr-xr-x 3 root wheel 2 Nov 2 04:11 net
    drwxr-xr-x@ 3 root admin 102 Sep 14 17:40 opt
    drwxr-xr-x@ 6 root wheel 204 Oct 29 18:23 private
    drwxr-xr-x@ 2 root wheel 2244 Oct 30 18:01 sbin
    drwxr-xr-x 11 root admin 374 Jun 9 2006 sw
    lrwxr-xr-x@ 1 root admin 11 Oct 30 17:57 tmp -> private/tmp
    drwxr-xr-x@ 13 root wheel 510 Oct 30 19:52 usr
    lrwxr-xr-x@ 1 root admin 11 Oct 30 17:57 var -> private/var
    and for the my user folder:
    drwxr-xr-x+ 22 adrian adrian 1156 Nov 3 02:30 .
    drwxr-xr-x 5 root admin 238 Nov 2 00:03 ..
    -rw-r--r-- 1 adrian adrian 3 Sep 13 22:41 .CFUserTextEncoding
    -rw-r--r--@ 1 adrian adrian 15364 Nov 5 21:50 .DS_Store
    -rw-r--r-- 1 adrian adrian 11 Oct 16 17:17 .PortAuthority2.4.rc
    drwx------ 2 adrian adrian 68 Nov 5 20:58 .Trash
    -rw-r--r-- 1 adrian adrian 0 Aug 16 04:37 .Xauthority
    -rw-r--r-- 1 adrian adrian 2552 Nov 5 22:43 .bash_history
    drwxr-xr-x 4 adrian adrian 136 Aug 17 21:11 .config
    drwxr-xr-x 8 adrian adrian 306 Aug 6 02:22 .dvdcss
    drwxr-xr-x 2 adrian adrian 578 Oct 21 19:32 .fontconfig
    -rw-r--r-- 1 adrian adrian 489724 Aug 30 17:49 .fonts.cache-1
    drwxr-xr-x 2 adrian adrian 68 Sep 14 17:40 .macports
    -rw-r--r-- 1 adrian adrian 1643 Aug 30 19:01 .mime.types
    -rw-r--r-- 1 adrian adrian 47 Oct 12 22:45 .parallels_settings
    -rw-r--r-- 1 adrian adrian 194 Sep 28 02:52 .profile
    drwxr-xr-x 3 adrian adrian 102 Sep 23 00:48 .stella
    drwxr-xr-x 2 adrian adrian 68 Aug 16 20:09 .wapi
    -rw-r--r-- 1 adrian adrian 467 Nov 5 04:21 .webaom
    -rw-r--r-- 1 adrian adrian 570 Aug 16 04:37 .xinitrc
    drwxr-xr-x 3 adrian adrian 170 Aug 5 08:10 Applications
    drwxr-xr-x+ 23 adrian adrian 1190 Nov 5 20:21 Desktop
    drwxrwxrwx+ 35 adrian adrian 2210 Nov 5 22:08 Documents
    drwxr-xr-x+ 14 adrian adrian 3332 Nov 5 20:02 Downloads
    drwxr-xr-x+ 48 adrian adrian 1836 Oct 30 19:11 Library
    drwxr-xr-x+ 9 adrian adrian 748 Nov 2 23:49 Movies
    drwxr-xr-x+ 8 adrian adrian 510 Sep 29 05:44 Music
    drwxr-xr-x 2 root adrian 68 Nov 3 02:30 New Folder
    drwxr-xr-x+ 6 adrian adrian 748 Oct 18 23:26 Pictures
    drwxrwxrwx+ 3 adrian adrian 238 Nov 4 20:34 Public
    drwxr-xr-x+ 3 adrian adrian 204 Aug 14 21:29 Sites
    drwxr-xr-x 3 adrian adrian 340 Oct 31 05:55 CompilationUnix
    -rw-r--r-- 1 adrian adrian 129 Oct 6 16:48 license.jai

    lllaass wrote:
    lizdance40, did you read the original post? The poster's problem is that when he connects the iPod to his computer the iPod does not appear in iTunes. He does not say he has a wifi problem with his iPod.
    lizdance40 wrote:
    You need to do an update on your router's firmware, or get a higher speed router..
    Or replace the router and or modem.  High demand can burn out a router in 2 years.  Typical life is about 4-5 at most.
    The new iPod is more advanced and if your router is slow or inconsistant signal your iPod will stop trying to connect to save your battery.
    of course he dose have a wifi problwm. read the last line of the original post

  • I'm not sure how to use this site....but here goes, I have a samsung galaxy and it's fully charged but it will not turn on, can someone give me some solutions as to how I can get it to work?

    I'm not sure how to use this site....but here goes, I have a samsung galaxy and it's fully charged but it won't turn on, can someone give me some solutions I can use to fix this problem???

    Try this website. Yes its sprint but it might help you. http://support.sprint.com/support/article/Troubleshoot_issues_related_to_your_Sa msung_Galaxy_S_II_not_turning_on_completely/WTroubleshootingGuide_542_GKB51165-T rend?INTNAV=SU:DP:OV:TSIS:SamsungGalaxySIi-AsYouGo:TroubleshootIssuesRelatedToYo urSamsungG

  • Can you give me an example of using blacklist from in mail settings to block unwanted mail?

    I want to use serveradmin settings mail command line to set a list of domains/servers I do not want to receive emails from. Can you give me an example on how to set this in ML server?
    I managed to set the domains using the command line serveradmin but it is not working. This is a list of domains I have set so far:
    mail:postfix:blacklist_from:_array_index:0 = "bounces.servidordeenvio.com"
    mail:postfix:blacklist_from:_array_index:1 = "reiserver50.info"
    mail:postfix:blacklist_from:_array_index:2 = "vps5.central-adworks.com.br"
    mail:postfix:blacklist_from:_array_index:3 = "emailTrocar.com.br"
    mail:postfix:blacklist_from:_array_index:4 = "geeklemail21.com.br"
    mail:postfix:blacklist_from:_array_index:5 = "produtosnotaveis.org"
    But I still keep receiving emails from those domains with virus (which are intercepted by the virus filtering) and receiving alert messages from the server app suggesting me to include these domains in a blacklist.
    Thanks for your help..

    Thank you.
    I tried it out and did not work either but I finally found a way to add multiple entries. I read on the serveradmin man page that if you had multiple values you should better off use a file for input.
    I did create a plain file with as many as needed entries:
    mail:postfix:blacklist_from:_array_index:0 = "*@xxx.com"
    mail:postfix:blacklist_from:_array_index:1 = "*@xxxx.com"
    saved as blacklist then I issued the command:
    sudo serveradmin settings < blacklist
    This solved the setting of multiple values. I will monitor if it will really block the spam from the locations.
    Thanks again for your help and interest.

  • I have a few compile errors. Can someone give me direction?

    I have some compile areas in the following code and I am not really sure how to correct.
    Can someone give guidance? Thanks
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.Window.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.applet.*;
    import java.net.*;
    public class FrontEnd_2 extends Applet{
         private static int appType = 0;
         private Frame FrontEnd_2 = null;
         private Choice nameList = new Choice();
         private Label PipeID = new Label("");
         private TextField pipelineName = new TextField();
         private TextField problem = new TextField();
         private TextField location = new TextField();
         private TextField repairCost = new TextField();
         private Button update = new Button("Update");
         private Button clear = new Button("Clear");
         private Button delete = new Button("Delete");
         private Button exit = new Button("Exit");
         private long idList[] = null;
         public static void main(String args[]){
         appType = 1;
         new FrontEnd_2();
         public FrontEnd_2(){
         Panel p = new Panel(new GridLayout(6,3));
         p.add(new Label());
         p.add(nameList);
         p.add(new Label());
         p.add(new Label("PipeId"));
         p.add(new Label());
         p.add(new Label());
         p.add(new Label("Pipeline Name"));
         p.add(pipelineName);
         p.add(update);
         p.add(new Label("Problem"));
         p.add(problem);
         p.add(clear);
         p.add(new Label("Location"));
         p.add(location);
         p.add(delete);
         p.add(new Label("Repair Cost"));
         p.add(repairCost);
         p.add(exit);
         String data = getData("L0");
              StringTokenizer st = new StringTokenizer(stRetVal, ",");
              nameList.add("[select a name]");
              int size = st.countTokens() / 2;
              idList = new long[size+1];
                   for ( int i=1; i<=size; i++ ) {
                        idList[i] = Long.parseLong(st.nextToken());
                        nameList.add(st.nextToken());
         private String getData(String cmd)
         Socket s = null;
         BufferedReader reader = null;
         BufferedWriter writer = null;
         String sRetVal = " ";
         try{
         s = new Socket("66.24.174.32",1234);
         reader = new BufferedReader(new InputStreamReader(s.getInputStream()));
         writer = new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));
         writer.write(cmd);
         writer.newLine();
         writer.flush();
         writer.close();
         sRetVal = reader.readLine();
         catch(UnknownHostException ue){
         catch(IOException ioe){
    finally
         writer = null;
         reader = null;
         return sRetVal;
         switch(appType){
         case 0:                                                                           // Applet extends panel
         FrontEnd.add(p);
         break;
         case 1:                                                                           // Application
         FrontEnd_2 = new Frame("Pipeline Inputs");
         FrontEnd_2.addWindowListener(this);
         nameList.addItemListener(this);
         exit.addActionListener(this);
         p.add(exit);
         FrontEnd.add(p);
         FrontEnd.setSize(30,60);
         FrontEnd.setVisible(true);
         break;
         public void actionPerformed(ActionEvent ae){
              if(ae.getSource() == exit){
              fileExit();
              else if (ae.getSource() == clear){
              fileClear();
         public void itemStateChanged(ItemEvent e) {
              int index = nameList.getSelectedIndexOf();
              long id = idList[index];
              String data = getData("R" + id);
              StringTokenizer st = StringTokenizer(data, ",");
              PipeID.setText(st.nextToken());
              problem.setText(st.nextToken());
              location.setText(st.nextToken());
              repairCost.setText(st.nextToken()):
         public void windowActivated(WindowEvent we){     }
         public void windowClosed(WindowEvent we){     }
         public void windowClosing(WindowEvent we){ fileExit();}
         public void windowDeactivated(WindowEvent we){     }
         public void windowDeiconified(WindowEvent we){     }
         public void windowIconified(WindowEvent we){     }
         public void windowOpened(WindowEvent we){     }
         private void fileExit(){
         FrontEnd_2.dispose();
         System.exit(0);

    Some of the errors that I got while compiling your program were the following:
    1) You need to declare your methods outside of your constructor
    2) You are declaring sretval in a private method getData and passing it on to StringTokenizer. You should declare it as an instance variable cuz local variables won't go any farther than the method in which they were declared.
    3) You did not implement WindowListener, ActionListener, ItemListener.
    Some tips: Try to use adapters in an anonymous inner class to implement listeners such as WindowAdapter.
    Use some white space between your code. It makes it a heck of a lot easier to read. Use indentation to show nested statements :)
    Here is the fixed code.
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.Window.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.applet.*;
    import java.net.*;
    public class FrontEnd_2 extends Applet implements WindowListener, ActionListener, ItemListener{
    private static int appType = 0;
    private String sRetVal = " ";
    private Frame FrontEnd_2 = null;
    private Choice nameList = new Choice();
    private Label PipeID = new Label("");
    private TextField pipelineName = new TextField();
    private TextField problem = new TextField();
    private TextField location = new TextField();
    private TextField repairCost = new TextField();
    private Button update = new Button("Update");
    private Button clear = new Button("Clear");
    private Button delete = new Button("Delete");
    private Button exit = new Button("Exit");
    private long idList[] = null;
    * mainline
    public static void main(String args[]){
    appType = 1;
    new FrontEnd_2();
    public FrontEnd_2(){
    Panel p = new Panel(new GridLayout(6,3));
    p.add(new Label());
    p.add(nameList);
    p.add(new Label());
    p.add(new Label("PipeId"));
    p.add(new Label());
    p.add(new Label());
    p.add(new Label("Pipeline Name"));
    p.add(pipelineName);
    p.add(update);
    p.add(new Label("Problem"));
    p.add(problem);
    p.add(clear);
    p.add(new Label("Location"));
    p.add(location);
    p.add(delete);
    p.add(new Label("Repair Cost"));
    p.add(repairCost);
    p.add(exit);
    String data = getData("L0");
    StringTokenizer st = new StringTokenizer(sRetVal, ",");
    nameList.add("[select a name]");
    int size = st.countTokens() / 2;
    long idList = size+1;
    for ( int i=1; i<=size; i++ ) {
    idList = Long.parseLong(st.nextToken());
    nameList.add(st.nextToken());
    switch(appType){
    case 0: // Applet extends panel
    FrontEnd_2.add(p);
    break;
    case 1: // Application
    FrontEnd_2 = new Frame("Pipeline Inputs");
    FrontEnd_2.addWindowListener(this);
    nameList.addItemListener(this);
    exit.addActionListener(this);
    p.add(exit);
    FrontEnd_2.add(p);
    FrontEnd_2.setSize(300,300);
    FrontEnd_2.setVisible(true);
    break;
    }//end constructor
    public void actionPerformed(ActionEvent ae){
    if(ae.getSource() == exit){
    fileExit();
    else if (ae.getSource() == clear){
    fileClear();
    public void itemStateChanged(ItemEvent e) {
    int index = nameList.getSelectedIndex();
    long id = idList[index];
    String data = getData("R" + id);
    StringTokenizer st = new StringTokenizer(data, ",");
    PipeID.setText(st.nextToken());
    problem.setText(st.nextToken());
    location.setText(st.nextToken());
    repairCost.setText(st.nextToken());
    public void windowActivated(WindowEvent we){ }
    public void windowClosed(WindowEvent we){ }
    public void windowClosing(WindowEvent we){ fileExit();}
    public void windowDeactivated(WindowEvent we){ }
    public void windowDeiconified(WindowEvent we){ }
    public void windowIconified(WindowEvent we){ }
    public void windowOpened(WindowEvent we){ }
    private void fileExit(){
    FrontEnd_2.dispose();
    System.exit(0);
    private void fileClear(){
    //do something here
    //start of getData
    private String getData(String cmd){
    Socket s = null;
    BufferedReader reader = null;
    BufferedWriter writer = null;
    try{
    s = new Socket("66.24.174.32",1234);
    reader = new BufferedReader(new InputStreamReader(s.getInputStream()));
    writer = new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));
    writer.write(cmd);
    writer.newLine();
    writer.flush();
    writer.close();
    sRetVal = reader.readLine();
    }//end try
    catch(UnknownHostException ue){
    catch(IOException ioe){
    finally{
    writer = null;
    reader = null;
    return sRetVal;
    }//end getData

  • Can anyone give me an example for crm_svy_..._pai?

    Hi all, I have a survey, there are several questions. After I input the answers, I click the 'CHECK' button, I will check the answers. There will be different response to my answers. If the answer is not correct, I will post an error message.
    And I also need to retrieve data from tables to fill the blank.
    I am a beginner for CRM survey, can anyone help me? I create a FM:crm_svy_..._pai, and code in it right? But how can I do it?
    Can anyone give me an example for crm_svy_..._pai to do what I need?
    Many many thanks in advance!! 
    Heare is an example, but I don't its function and how does it work..
      read table lt_all_values into ls_value
                               with key answer_id = 'get_value'.
      if sy-subrc = 0.
        data: lt_values type crm_svy_api_string_t.
        append ls_value-value to lt_values.
        call method ir_survey_values->values_set
          exporting
            i_question_id = 'set_value'
            i_answer_id   = 'set_value'
            it_values     = lt_values.
      endif.

    Hi Yu,
    Could you tell how you solved your issue?
    Regards and tx in advance,
    Mon

  • KCLP - can someone give me the big picture?

    In a project I have to review I stumbled into some log files displayed with Tx KCLP. It's some "external data transfer" logs.
    Unfortunately I miss the big picture and I did not find much on KCLP. Can someone give me a hint what's the big picture, e.g. what kind of applications use the KCLP logs.
    Thanks Frank

    I know KCLP is used by CO-PA to import external data via KEFC.
    THe bigger picture is
    - provide an import structure
    - define some transfer rules
    - post the data
    Christian

  • Can u give an detail examples or help on SQL- loader

    Can u give an detail examples or help on SQL- loader
    I need full details on this how to run and what are the pre requirements for this and what
    Can u give an example with unix+sql loader

    The Oracle Utilities manual has a chapter on SQL*Loader Case Studies
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch10.htm#1656
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • I am new to webdynpro ABAP can someone give the good material ?

    Hi,
    i am new to webdynpro ABAP can someone give the good material ?
    Please tell me  what knowledge do i need to learn webdynpro ABAP?
    Regards,
    Chow.

    Hi Chow,
    SAP Web Dynpro Overview
    http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2005/presentations/12-WebDynpro-Overview.ppt
    Web Dynpro General Concepts
    https://admin.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/30ea953b-8e57-2910-4e85-f7be60b00407 [original link is broken]
    Web Dynpro
    http://help.sap.com/saphelp_nw2004s/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
    Web Dynpro for ABAP: Tutorials for Beginners
    Web Dynpro for ABAP: Tutorials for Beginners [original link is broken]
    Web Dynpro Architecture
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/content.htm
    Web Dynpro User Interface Design
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/webcontent/uuid/ce44a14c-0a01-0010-af89-d7dbd944f176 [original link is broken]
    Getting Started with Web Dynpro Java
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/webcontent/u [original link is broken]
    uid/8921447c-0501-0010-07b4-83bd39ffc7be
    Developing ABAP applications using Web Dynpro Configuration Scenario
    http://www50.sap.com/businessmaps/8729920B31E343F099B71340B15F06DB.htm
    http://www.sapforum.co.kr/TECHDAY07/download/9.%20SAP%20WebDynpro_%EA%B9%80%ED%98%9C%EC%84%AD.pdf
    How-to add a custom Web Dynpro iView to the MSS Employee Profile (ECC 6.0)
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/how-toaddacustomWebDynproiViewtotheMSSEmployeeProfile(
    ECC+6.0)&focusedCommentId=55238
    Developing Java Applications using Web Dynpro Configuration Scenario
    http://www50.sap.com/businessmaps/8F5B533C4CD24A59B11DE1E9BDD13CF1.htm
    Regards,
    J.Joe

Maybe you are looking for

  • Can't Print from Acrobat 9 Pro on windows 7 64bit....

    I have a windows 7 64-bit computer that can't print to any printer from Acrobat 9 Pro.  When you try to print I get the following error: "print driver host for 32 bit application has stopped working" Any thoughts, it's driving me crazy....

  • How do you know if the battery is dead? Detailed history. Help needed!!

    So here's the story. Bought the PowerBook G4 1.67GHz used off a trusted friend. Worked fine for 3 months or whatever up till yesterday basically. The charger was in, orange light, but the charger in the corner was going from "Charge" to "15%" and swi

  • Want to run SAP on IPad

    Hello to every one, I m working in a company where SAP is implemented. Clients are using it on PCs through LAN. I want to run it on IPad as well through Wifi. Is there any specific client of SAP for IPad or any web application that run in any browser

  • InContext Menu Not Displaying

    The InContext Menu Item is not displaying under Insert menu in Dreamweaver CS4. I have checked for updates, there are none available. Operating system is Windows XP with latest service packs and patches.

  • Designer Export Table

    Hi When I try to export data from Oracle Designer 10g (running on 10g database) I get: RME 02105: ORA-01986: Optimizer Goal is obsolete. As far as I can determine the database instance is running the default optimizer goal. Any help would be apprecia