Integrate unix system calls in htmldb display

can you please show what have to be done to display unix system command in htmldb. for example - how can i show the output for the "ls" unix command in htmldb ?
Please direct to some examples.
Thanx

If there is a command line tool then you use Runtime.exec() otherwise you have to use JNI.
If you want to access shared libraries you might want to look at www.swig.org

Similar Messages

  • Integrate system call in htmldb page

    can you please show what have to be done to display unix system command in htmldb. for example - how can i show the output for the "ls" unix command in htmldb ?
    Please direct to some examples.
    Thanx

    Do you have a solution?
    I tried the undocoumented (why?) package wksys.wk_qry-package to get the results of an Ultra Search Query. It works when I start the procedure in the Ultra-Search schema. When I try it from a different schema (DBA), it does not work.

  • Unix System Calls using Java

    Hi!
    Can anyone tell me how to do Unix System Calls in my Java program?
    If possible please give me the java code for it taking one unix system call as an example.
    Thanks in advance
    Raj

    do you mean firing off a shell command, or making actual kernel API calls or C library calls?
    for shell commands, have a look at Runtime.exec(). for kernel calls, use JNI. the JNI FAQ mentions something called "shared stubs" that may be of use:
    http://java.sun.com/products/jdk/faq/jnifaq.html
    cheers,
    p

  • How do i make UNIX system calls in Java app?

    Is it possible to make UNIX system calls in a java app? I.E. perform a file copy/move to another machine within a program.
    Thanks,
    Erik

    If there is a command line tool then you use Runtime.exec() otherwise you have to use JNI.
    If you want to access shared libraries you might want to look at www.swig.org

  • How to access system calls from java program?

    i am having a doubt regarding accessing system calls from a Java program like accessing unix system calls from a c program.

    Runtime.getRuntime().exec("line command here");
    example:
    Runtime.getRuntime().exec("ls -la");

  • Unix system() system call in Java

    Hi,
    system() call in Unix is very helpfull when you need to implement a piece of code that is already implemented in an exsiting utility.
    Is there a way to achive a similar functionality?
    To put it in simpler words - is there a way, in Java, to call some method that will invoke a Unix shell and will execute the command specified in the string that is past in?
    Could you please CC the reply to [email protected]
    Thanks,
    -Michael

    Runtime.exec()
    > Could you please CC the reply to [email protected]
    Certainly not.

  • System Call in Unix?

    Hi,
    Is there a way to send a system call from LabView 6.1 to UNIX similar to
    the Windows environment?
    Thanks,
    Roger

    I found it. Please ignore my last post. Thanks.
    Regards,
    Roger
    "Roger C." wrote in message
    news:ak699o$4en$[email protected]..
    > Hi,
    >
    > Is there a way to send a system call from LabView 6.1 to UNIX similar
    to
    > the Windows environment?
    >
    > Thanks,
    > Roger
    >
    >

  • ABAP to FTP connect to non SAP UNIX system

    Greetings~
    I'm looking for a way (via function modules and/or BAPI) to transfer data in flat files from an SAP UNIX system to a non-SAP UNIX system using an ABAP program. I see FM's FTP_CONNECT and FTP_COMMAND however these seem to only work with UNIX systems running SAP as they require RFC_DESTINATION information. Anybody know which (if any) FM's can be used without the necessity of the target system running SAP/RFC?
    Thanks!

    Hi Joseph,
    Please refer the below program.
    REPORT  ZHR_T777A_FEED.
    tables: t777a.                        "Building Addresses
    Internal Table for  Building table.
    data: begin of it_t777a occurs 0,
            build like t777a-build,       "Building
            stext like t777a-stext,       "Object Name
            cname like t777a-cname,       "Address Supplement (c/o)
            ort01 like t777a-ort01,       "City
            pstlz like t777a-pstlz,       "Postal Code
            regio like t777a-regio,       "Region (State, Province, County)
          end of it_t777a.
    Internal Table for taking all fields of the above table in one line
    separated by ‘|’(pipe).
    data: begin of it_text occurs 0,
          text(131),
          end of it_text.
    Constants: c_key  type i value 26101957,
               c_dest   type rfcdes-rfcdest value 'SAPFTPA'.
    data: g_dhdl type i,      "Handle
          g_dlen type i,      "pass word length
          g_dpwd(30).         "For storing password
    Selection Screen Starts
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE TEXT-001.
    parameters: p_user(30) default 'XXXXXXX'          obligatory,
                p_pwd(30)  default 'XXXXXXX'          obligatory,
                p_host(64) default 'XXX.XXX.XX.XXX'   obligatory.
    SELECTION-SCREEN END OF BLOCK blk1.
    SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE TEXT-002.
    parameters: p_file like rlgrap-filename default 't777a_feed.txt'.
    SELECTION-SCREEN END OF BLOCK blk2.
    Password not visible.
    at Selection-screen output.
      loop at screen.
        if screen-name = 'P_PWD'.
          screen-invisible = '1'.
          modify screen.
        endif.
      endloop.
    g_dpwd  = p_pwd.
    Start of selection
    start-of-selection.
    To fetch the data records from the table T777A.
      select build stext cname ort01 pstlz regio
             from t777a
             into table it_t777a.
    Sort the internal table by build.
      if not it_t777a[] is initial.
        sort it_t777a by build.
      endif.
    Concatenate all the fields of above internal table records in one line
    separated by ‘|’(pipe).
      loop at it_t777a.
        concatenate it_t777a-build it_t777a-stext it_t777a-cname
                    it_t777a-ort01 it_t777a-pstlz it_t777a-regio
                    into it_text-text separated by '|'.
        append it_text.
        clear it_text.
      endloop.
    To get the length of the password.
      g_dlen = strlen( g_dpwd ).
    Below Function module is used to Encrypt the Password.
      CALL FUNCTION 'HTTP_SCRAMBLE'
        EXPORTING
          SOURCE      = g_dpwd          "Actual password
          SOURCELEN   = g_dlen
          KEY         = c_key
        IMPORTING
          DESTINATION = g_dpwd.         "Encyrpted Password
    *Connects to the FTP Server as specified by user.
      Call function 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          text = 'Connecting to FTP Server'.
    Below function module is used to connect the FTP Server.
    It Accepts only Encrypted Passwords.
    This Function module will provide a handle to perform different
    operations on the FTP Server via FTP Commands.
      call function 'FTP_CONNECT'
        EXPORTING
          user            = p_user
          password        = g_dpwd
          host            = p_host
          rfc_destination = c_dest
        IMPORTING
          handle          = g_dhdl
         EXCEPTIONS
            NOT_CONNECTED.
      if sy-subrc ne 0.
        format color col_negative.
        write:/ 'Error in Connection'.
      else.
        write:/ 'FTP Connection is opened '.
      endif.
    **Transferring the data from internal table to FTP Server.
      CALL FUNCTION 'FTP_R3_TO_SERVER'
        EXPORTING
          HANDLE         = g_dhdl
          FNAME          = p_file
          CHARACTER_MODE = 'X'
        TABLES
          TEXT           = it_text
        EXCEPTIONS
          TCPIP_ERROR    = 1
          COMMAND_ERROR  = 2
          DATA_ERROR     = 3
          OTHERS         = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        write:/ 'File has created on FTP Server'.
      ENDIF.
    Call function 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          text = 'File has created on FTP Server'.
    To Disconnect the FTP Server.
      CALL FUNCTION 'FTP_DISCONNECT'
        EXPORTING
          HANDLE = g_dhdl.
    To Disconnect the Destination.
      CALL FUNCTION 'RFC_CONNECTION_CLOSE'
        EXPORTING
          destination = c_dest
        EXCEPTIONS
          others      = 1.
    Regards,
    Kumar Bandanadham.

  • My MBP with RD's Facetime camera freezes when changing portrait to landscape during facetime calls on the display of the person who i'm calling to, but it shows alright on my side, what's going on?

    My MBP with RD's Facetime camera freezes when changing portrait to landscape during facetime calls on the display of the person who i'm calling to, but it shows alright on my side, what's going on?
    Another thing is that on Skype, whenever i clicked to sharescreen it only show a complete black out window. nothing else.
    Tried restore OSX mountain lion, doesn't work. what should i do?

    kaeandcolesmon,
    If you open the recovery drive (partition) it should only have a single folder (Recovery).
    To make sure that your not saving restore points to that drive.
    See:
    Start, Control Panel, System, System Protection tab. Make sure the D drive partition is set to OFF so that it does not save there.
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • Can anyone tell me how to fix this error I am receiving: LabView: File not found. VI "Mobile Display.vi" was stopped at unknown " " at a call to "Mobile Display.vi"?

    Can someone help me please? I am receiving this error everytime I attempt to execute my application:
    LabView: File not found. The file might have been moved or deleted, or the file path might be incorrectly formated for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on Linux. Verify that the path is correct using the command prompt or file explorer.
    VI "Mobile Display.vi" was stopped at unknown " " at a call to "Mobile Display.vi"
    Attachments:
    labview error.jpg ‏176 KB

    We cannot help without additional information:
    Are you running your code
    ...in the development system?
    ...as a standalone application?
    ...deployed to an embedded target?
    If it is a built application, do you explicitly include dynamically called VIs in the build specification?
    Who wrote the program? Do you have access to the code?
    How is this VI called? Is there sufficient error handling?
    Do you manipulate paths as strings or as proper path datatypes with the strip path/build path primitives etc.?
    Is it running on the same OS used to develop it ...
    LabVIEW Champion . Do more with less code and in less time .

  • Caller ID not displaying correctly on some call recipients' phones

    This isn't necessarily an iPhone issue - a similar issue appears on other boards.  But I haven't seen an answer that will help me, so here goes:
    My wife and I share a VZW account.  She has the iPhone, and today she found out that when she makes a call, some recipients are not seeing her caller ID name displayed as she intends it.  Previous posts point to a 3rd party company that manages Verizon's (and other carriers') Caller ID systems, Targus.  Those posts all ended inconclusively, in my opinion, because none of them spelled out a sure-fire way to contact Targus to fix the problem.
    With our plan, we can customize how our mobile phones display their identity to the world.  Verizon has branded this service "Share Name ID".  http://support.verizonwireless.com/faqs/Features%20and%20Optional%20Services/faq_share_name_id.html
    When my wife calls our house landline, that caller ID display shows her name as she entered it in the Share Name ID custom name field.  Whe she calls her sister's landline, that caller ID display shows my name (as the account holder).
    These previous posts point to similar problems.
    https://community.verizonwireless.com/message/628340#628340
    https://community.verizonwireless.com/message/674665#674665
    https://community.verizonwireless.com/message/560546#560546
    https://community.verizonwireless.com/message/574112#574112
    https://community.verizonwireless.com/message/595510#595510
    All these posts share something in common: the so called Targus contact info is useless for actually reaching someone at Targus who can fix this problem.
    The previous posts seemed to suggest that Verizon was incapable of fixing the problem.
    Does anyone have a suggestion for how I can proceed to remedy the situation?

    Hello wh_vzwnub,
    I can see how this could pose a problem for you & your wife.  I would like to assist.
    Just to clarify, the Share Name ID service is an Opt in option for all VZW customers to present a customer's name to the calling party's handset or landline Caller ID (where supported, offered by the terminating carrier).  Service is not compatible with all carriers.  Depending on the service provider and/or carrier the called party is subscribing to, the customer may or may not be able to view the shared name.  When calling to non-compatible carriers, the call receiver will continue to see "Wireless Caller" on their caller ID display.  Share Name IDs are not consistently displayed on AT&T landlines.  Share Name ID is not currently displayed on VZW devices.
    SHARE NAME ID
    I hope I have answered your questions, and have addressed your concerns.
    Thanks,
    AnthonyTa_VZW
    VZW Support
    Follow us on Twitter @VZWSupport

  • How to use system call in assembler

    I write codes to display the dictionary using C,
    and it can run well,and then I want to use system call
    in assembler to realize the same function ,but it doesn't
    display the dictionary,how to correct it?
    Look:
    //C
    #include <stdio.h>
    int main()
    char *name[2];
    name[0]="/bin/ls";
    name[1]=NULL;
    execve(name[0],name,NULL);
    return 0;
    //Assembler
    .data
    msg:.string "/bin/ls"
    .text
    .global _start
    _start:
    movl $0xb,%eax
    movl $msg,%ebx
    mov $msg,%ecx
    movl $0,%edx
    int $0x80
    movl $1,%eax
    movl $0,%ebx
    int $0x80

    If you compile with -Wwrite-strings, as I like to do for new code, you'll notice it warns about assigning the address of read-only memory to a plain char *. You might want to declare name as follows to avoid accidentally trying to modify it:
    char const *name[2];
    But as for your question. The execve system call requires a pointer to a list (array) of pointers to strings in %ecx. You are passing it a pointer to a single string, which means it will try to interpret the string ("/bin/ls")as a series of pointers to strings, with potentially disastrous (and certainly weird) results.
    Last edited by Trent (2012-12-28 15:31:38)

  • Deleting System Call Handlers in Unity 7.x

    I am trying to delete a system call handler for a conference room extension we have.  When I try and delete it I get an error message  "Operation cannot be completed because the object is in use"  How can I find out what its linked to so I can remove the link and delete the system call handler.

    Bill et al,
    For handlers (interview, directory, system, etc) that refuse to go  away, follow the same process as above but use this query:
    run cuc dbquery unitydirdb select * from vw_handlerreference where  objectid in (select objectid from tbl_handler where  fn_tolower(displayname) = lower('myhandler'));
    Replace myhandler with the actual display name of the handler.
    Example:
    run cuc dbquery unitydirdb select * from vw_handlerreference where  objectid in (select objectid from tbl_handler where  fn_tolower(displayname) = lower('Goodbye'));
    objectid                             displayname                   referencetype referrerobjectid                     referrerobjecttype
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 Opening Greeting              AfterMessage  3cbc5620-28b9-4757-8e20-138bbb5f8a27 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 Operator                      AfterMessage  97ce3eab-4eb4-4627-acbf-627bb98cbd8d 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 Primary                       AfterMessage  83b42c0c-38eb-47bd-8e95-a917b55b678d 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 Primary                       AfterMessage  cd3764df-6ff9-4856-9910-abdc73e7125d 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 RobWeimann                    AfterMessage  132b5cfe-e045-42ee-bcd0-2b7d86ce7cbf 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 System Call Handler Template  AfterMessage  51f8b56a-61ac-4909-9dba-17aa18556571 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 System Directory Handler      NoInput       a6dea20d-f5a9-4f76-be60-8aa8994c3037 6               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 System Directory Handler      NoSelection   a6dea20d-f5a9-4f76-be60-8aa8994c3037 6               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 abell                         AfterMessage  b55f1562-45e3-4b54-9e55-7a6d4ac081b2 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 ebell                         AfterMessage  75c3f060-c5bf-4d24-9ffa-d056362dce47 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 manoj3                        AfterMessage  8304ac82-63fa-4e80-9cc1-6b8052d73575 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 miyazaki                      AfterMessage  8ce70dbd-9a6b-4ee6-8387-8a1dc4ced323 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 operator                      AfterMessage  d0906380-687c-448f-a078-d8b8b7bfa3d1 3               
    6b2bb401-f362-4010-8c4b-b389e4ac7eb6 undeliverablemessagesmailbox  AfterMessage  964fd52e-ed65-4992-b9fe-22cc7e39f560 3
    99% of the cases I've seen are with users that have a caller  input option configured to point to the specific call handler.  In that  case, you'll see a "TTx" under the referencetype column where x=0-9.  Example, TT7 means caller input key 7 is configured to send to the call  handler you're trying to remove.
    Hope that helps everyone,
    Brad

  • System calls in Java

    Any suggestions how one would perform a UNIX call inside a C++ or Java program?
    Student who needs help.

    If it is really a system call, then you will have to define and implement a "native" method.
    o java method witha "native modifier".
    o write a small c program that implements the method
    If you define the native method, and then run java.h, the result is a header file for the c program.

  • How to intercept system calls in JVM?

    Hi, everyone. I am looking for a way to intercept system calls in JVM, a way do something like ptrace does in Linux. Because I wanna log all function calls a specified application made, and I may modify the arguments and the return value.
    And then i search the internet but nothing found except this article:
    [  http://java.sun.com/developer/technicalArticles/Programming/jvmti/#Authors|  http://java.sun.com/developer/technicalArticles/Programming/jvmti/#Authors]
    It's seems that JVMTI is a perfect tools to manipulate Java VM and i can achieve my goal with it. I download the sample code you written and modify a bit to adopt my environment (I use Linux and Sun JDK 6). It works well.
    And then I add a function to get stacktrace like the case in your article. I also read the sample code in JVMIT Refenerce, but it doesn't work.
    So, I am puzzled. I wanna know is there any way to intercept system calls in JVM? If JVMTI can do it, is there any tutorial or sample code to review? And, is that possible to use this way in J2ME?
    Thanks a lot :)
    Best Regard.

    jschell wrote:
    Nelly_Zeltser wrote:
    I do not know if there are any tools similar to solaris truss is available to trace system and library calls in j2me world.Well, I want to trace the jvm system calls to OS (UNIX), not java.Are you using j2me?No, to say more I'm not "using" java at all. My program (written on C) just monitors all system calls from another program that I define as the parameter.
    It may not be java. It may be any program:for example my simple .o file made by myself.
    Can we continue this topic at [http://forums.sun.com/thread.jspa?messageID=10746765&#10746765|http://forums.sun.com/thread.jspa?messageID=10746765&#10746765]
    I've written my shared library and defined LD_PRELOAD. But it doesn't help, cuz JVM, afaik, uses LD_PRELOAD for its own purposes, so
    I can't use my shared library.That of course is not what the poster of this thread wanted to do.

Maybe you are looking for

  • Is there a way to open the right click menu on the left side of your pointer?

    Whenever I try to right-click an object that's located on the right side of the screen, the pointer always automatically click whatever entry in the right-click menu which just happens to be under the pointer the moment the menu is opened. I noticed

  • How can I get the Menu Bar in P/S Ele. 9 to show in the organizer?

    The Menu bar IS in Edit.  Problem occured when I updated from XP to new computer w/ Windows 7.  There is a small rectangle where the menu bar usually is.  I can click on it and the menu bar opens vertically.  The rectangle can not be seen unless you

  • Doubt on user procedure used in dml handler?

    I am calling a user procedure in dml handler of apply process.I dont want my apply to apply changes.Instead i want to insert in a table <history_row_lcrs> the values which are captured by captured process. history_row_lcrs table has columns (date_t d

  • Unable to download the photoshop trial

    hey, im just wondering whether or not to purchase photoshop for my art, and i wanted to try it out, but I seem to be unable to download it. i get to this page https://creative.adobe.com/products/download/photoshop?promoid=IICUB but chrome does not be

  • Mountain lion performance issues

    After installing 10.8 I am experiencing performance issues...is there anything that needs to be done to my macbook pro to improve usability? Tom