How to open gnome through servlet ?

Hi,
i am not able to open gnome-terminal with the help of the following servlet statement in the client side tomcat server in the servlet.while it working well on my tomcat server........is ther any permission to open the gnome...pl let me know
Statement..........................
Runtime rt=null;
Process p = rt.getRuntime().exec("gnome-terminal ");
Please do hurry ....

Hi,
i am not able to open gnome-terminal with the help of
the following servlet statement in the client side
tomcat server in the servlet.Client-side tomcat server?
while it working well on
my tomcat server........is ther any permission to
open the gnome...pl let me know
Statement..........................
Runtime rt=null;
Process p = rt.getRuntime().exec("gnome-terminal ");
Please do hurry ....Are you wanting to write a servlet (something that executes on the server) to open up a shell on the Client? That's not gonna work. If you've an X Server on the client then just export your DISPLAY and start a remote X session.
Good Luck
Lee

Similar Messages

  • How to open ipod through itunes.

    Recently my ipod touch 5's LED stopped working but every time I connect it to my laptop itunes open. I'm getting a new one so I don't want to spend money getting this fixed but I want a back up for this one. Itunes asks me to open my ipod but i cant due to the led, can't i open it through itunes in any way?

    No. that is a security feature

  • Opening .pdf through servlet

    Hi,
    I'm running a web-app that creates a pdf and opens it in a new browser window once the file has been created. My pre-developement environment is on Tomcat and the app works fine there. Once I test the app on a SunONE server, the app cannot open up the file. I'm just using a:
    response.sendRedirect("location of file");
    Why would it not work on SunONE but on Tomcat. The file is being created on both and its not a path issue. On the SunONE server I get a browser popup saying "Cannot download file....". Not sure why this comes up.
    Thank you

    Try this
    response.setContentType("application/pdf")
    response.sendRedirect("location of file");Regards
    Manikantan

  • How to open a file created at the server through form/report at client end

    How to open a file created at the server through form/report at client end
    Dear Sir/Madame,
    I am creating a exception report at the server-end using utl file utility. I want to display this report at the client end. A user doesn't have any access to server. Will u please write me the solution and oblige me.
    Thanks
    Rajesh Jain

    One way of doing this is to write a PL/SQL procedure that uses UTL_FILE to read the file and DBMS_OUTPUT to display the contents to the users.
    Cheers, APC

  • Problem in opening .ics and .vcs file types through servlet in IE browser.

    I'm having problem in downloading an .ics and .vcs file through servlet in I.E browser. It is happening fine in Mozilla firefox(they both are getting opened in OutLook), but in IE it says as undefined file type.
    I'm using Content Type as : 'text/Calendar' and then setting header as :
    response().setContentType("text/Calendar");
    response().setContentLength(file.length());
    response().setHeader("Content-Disposition", "attachment;
    filename="+filepath);
    and after that i'm writing it to OutPut stream.
    Plz Help.

    Hi,
    On page load check whether the session values are there. If not redirect the user to the login page.
    Hope this helps,
    Regards,
    Sammani

  • How to imort opening balance through template of journal entry

    Dear Experts
    I want to import opening balance through the date transfer workbench  how can i do this ? is there any way to import opening balance in SAP ?
    Pls reply ASAP
    Regards
    Rajani P. Patel

    Dear Rajani P. Patel,
    You may check these threads first:
    Re: Uploading Opening Balances
    Re: Importing Opening Balances from Legacy System
    Thanks,
    Gordon

  • How do I browse through pictures (in open state) using arrow keys

    Hi all. I know this is a lame question. But I am new to Mac. How do we navigate through photos in open mode. I mean usually in Windows, we open one picture and use arrow keys to navigate between photos.What are the keys I can use to navigate between photos. As of now, I have to close the photo and then double tap on another to view it. Thanks.

    What application are you using? In iPhoto you can just use the right and left arrow keys to browse photos...
    Clinton

  • I was downloading the walking dead app on my iphone and after it was done it started saying waiting. I can't delete it but if I go into the App Store I can open it through there. Can someone please tell me how to delete it.

    I was downloading the walking dead app on my iphone and after it was done it started saying waiting. I can't delete it but if I go into the App Store I can open it through there. Can someone please tell me how to delete it.

    I have the exact issue with Vivino on Iphone4S. Did u figure out a fix?

  • How to properly write a CSV through Servlet?

    hi all
    i am writing an application which will
    write selected database records to a csv text file
    not getting how to start with a servlet?
    any help in this regard is appreciated.
    thanx

    Your thoughts are good but there are some issues with eachof those
    1. When I send back the Response to the old Browser with a JavaScript to popup a new Window, I have to re-render the original page again ... and that is a performance hole.
    2. The problem with popping up a window and posting to the servlet using Javascript is that I cannot do a server side validation of the post.
    Thanks

  • Working with markups through servlet

    Hello,
    There is several problems with using Autovue through servlet.
    Fabula:
    Servlet receives http request, connect to the vue server (vue servlet via ServerControl), load .dwg file into
    vuebean by vuebean.setFile(new DocID(fileName)) and load markup by simple calling markupbean.readMarkup(FileInputStream instance) method.
    I get a markup file name by parsing 'markups.map'. Servlet modifies markup by http request parameters (set new FillColor, for example) and saves markup file -
    markupbean.writeMarkup(FileOutputStream) - very simple process.
    Problems:
    1. After markup changing i need to open dwg with markup (in applet), but i don't know how i can to do this. jVue.openMarkup() doesn't work - i don't understand what parameters are needed.
    2. When markup open via jVue applet GUI, changed TextBox elements are not visible, but presents in markup items list.
    If TextBox is selected it becomes visible! If I change the text or position of TextBox, it will become visible (without selection). This situation applies only to TextBoxes.
    Any suggestions how I can load markups into GUI and fix visibility of TextBoxes after saving via FileOutputStream.

    Hello,
    May I point out some issues where you are implementing code that is not supported nor documented (and probably will not) and consequently help on those topics is not available
    1. I get a markup file name by parsing 'markups.map' -> not documented, not supported, could change on any release.
    2. markupbean.writeMarkup(FileOutputStream) -> where? local datastore is not documented, will need synching, writing to it directly not supported, could change on any release.
    Stating it as a simple action is probably not the best way to describe a over-complicated solution piggybacking on a closed (undocumented) implementation
    Hence my recommendation for an open and properly documented platform
    Perhaps you should have started by describing what you are trying to do
    If what you want to implement is to save markups with a predefined name, then your solution is an overkill (and goes in the wrong direction)
    If you would be kind enough to
    1. follow this forum's rules ie https://forums.oracle.com/forums/ann.jspa?annID=1527
    2. properly state what you are trying to implement in another thread, if possible as it will make search/review easier to the rest of the community
    3. Have a tittle that is descriptive enough
    4. is this solution required to work on a cluster (ie more than one AV server)?

  • How to open a new window from submit button &dialog page in current window?

    We have a requirement, wherein we have a OAF search page for PO lines with search criteria, Go button to search ,result region (table layout) and a submit button(Create new expedite).
    1. Now user can select some lines from result region and click on Submit button.
    2. On click of submit button we need to pop up a window or may be a dialog page asking that " Do you want open supplier web link portal or not?".
    3. If user clicks yes(in Dialog page) then first fetch the URL from a look up maintained in Oracle EBS on the basis of supplier of the lines selected and then open that URL in a new window and side by side we need to open a dialog page in search page asking "whether user has updated the expedite info in supplier portal or not?". On basis of this we need to updated some count in custom tables.
    So in step 3 i am facing problem, that how to open an URL in a new window through a submit button and side by side want to open a dialog page in the current window also.
    Hope a quick response from you all.
    Note:- To open a custom page we can have a link or button(button of type button and not submit button) on base page with destination url property as following javascript:
    javascript:var a = window.open('OA.jsp?page=/XXX/oracle/apps/xxx/......&retainAM=Y', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    So the question is how to do the same for submit button on OAF page???

    Antriksh,
    You just need to attach a submit action in button bean and not submit button bean, based on the output of confirm type of alert in javascript.
    Here is code u need to put in destination url of the button:
    //replace <confirm message> by message you want to show.
    javascript:input=confirm('<confirm message>');if(input==true){submitForm('DefaultFormName',0,{XXX:' abc'});}" Now in the process request of the base page CO, u can get parametre 'XXX' from the pagecontext....so
    if((("abc").equals(pageContext.getParameter("XXX"))))
    {/// custom LOGIC }
    The same i have replied in your mail. I hope this resolves the issue.
    --Mukul

  • How to open front panel of a VI running in RT.

    Hi,
    I have an application to read the encoder position using the cRIO program. I have made an executable and this application runs as startup application whenever the controller reboots. Right now, i am accessing the VI of the startup exe through Remote Panel connection. This works fine but everytime i close the remote panel , i have to reboot the controller for the next view.
    So is there any alterntaive to open the front panel of the VI.
    I tried using VIServer but ran into errors. (i tried using front panel -open property node.did not work)
    Also i do not have any VIs stored on the controller. Only the exe is stored on the ni-rt/startup folder on the RT controller.
    Please let me know how to open this VI.
    Thanks.

    Hi Ben,
    When i close the remote front panel the first time, i am terminating the RT VI which is running on startup.
    So i had to reboot everytime to access the remote VI.  I guess that the VI (exe) should be continuosly running when the RT is started up. The remote panel only should be opened and closed. After I close the remote panel , i want a windows VI to be opened up.
    I have a Windows VI which programmatically opens connection to the RT server for opening the remote panel. The VI runs. When the user clicks Exit on this RT VI, the VI running is stopped and then another windows VI opens up. This works fine for first time. Since the RT VI is terminated, second time , if I run, it says, VI not in server memory.
    Is there a method to close the remote panel programmatically in the RT VI itself. I have a Exit button in this RT VI, so if the user clicks, Exit, the program has to be running, but the remote panel has to close. There is a method called close connection to client , but this does not work in RT , as this requires VI path.. Right now , when the remote panel RT VI is launced, to close the remote panel, i click on the 'close' button on the VI title bar. Again when the remote panel is launched, there is no error. but is there a method to close the remote panel in the server(RT VI itself).   i have attached the VI.
    Thank you.
    Attachments:
    Dummytest.vi ‏39 KB

  • How to open and navigate between human task forms in a same page?

    Hi
    I use Oracle BPM 11.1.1.5
    I have a question about taskflows in BPM Application.
    In ADF web application, I create a sipmle task flow and insert view id and bind these to jspx pages, my pages are opend in same page when
    return an outcome.
    For exapmle I have three pages like A,B,C.
    In task flow, insert three view ids and bind to A,B,C.
    My first pages is A, and when outcome is B navigate to B, when my outcome is C then navigate to C in a same page not separate pages.
    But my problem is here.. in BPM Application when create task forms, every task has a separate task flow that there exist a single view id and a wild card flow in it.
    In BPM workspace when initiate human task form is closed, I should press refresh button to see next human task form in task list table.
    I tried to create a simple task flow and insert human task forms in it and navigate between these.. but show human task form in wrong display and don`t show some component and human task payload.
    Now, my question : How to open and navigate between human task forms in a same page like software installation?

    Having a separate Data Control for each human task is normally the case. There is a way to assign multiple human tasks to a single data control (and one task flow), but I don't think that this is going to help you with what I think you're trying to do.
    If your human task is called "EmployeeDetail", then you'd use the data control associated with this for the UI pages in the task flow diagram that is associated with this human task. For example, you might have a first page that has just the basic employee information - the fields (at least the ID field) would come from the EmployeeDetail data control. When the end user clicks "Next", you might have this UI page flow to a second UI page in the task flow diagram that has the employee's address information. You might place the address fields from the EmployeeDetail data control onto this second UI page.
    You might be asking how the work item instance can automatically flow to the next interactive activity in the process while staying inside the first interactive activity's human task's task flow diagram. This is not how it works - the task flow diagram models the end user interaction while inside a single human task that is tied to a specific interactive activity in the process. If you want a the end user to be able to move the instance through multiple interactive activities in the process in one interaction, look at "Activity Guides". Activity Guides do a nice job of this.
    Dan

  • How to open a .MAT file in LABVIEW

    Hey everyone,
    I currently have a .MAT image file which I would like to open in LABVIEW to apply some image filters. However, I am unsure as to how to open the .MAT file in LABVIEW. Ideally I would like to be able to open the .MAT file without using matlab, and it seems the only way to accomplish this task is through the mathscript node. I have attached an example of the image im trying to open, as well as the LABVIEW program which I would like to use on the image. Thanks for the feedback! =]
    Attachments:
    MAT_Image_Adjust.zip ‏1779 KB

    Hi Boiler,
    1) Do you have a choice in the format you export your data from MATLAB?
    "ASCII Format
    Complete the following steps if you want to import or export data between LabVIEW and the MATLAB® environment, the process is straightforward as long as you are using ASCII format.
    From the MATLAB® environment to LabVIEW
    To save a vector or a matrix Xin ASCII format with tab delimiter, enter the following in the command window or m-script file in the MATLAB® environment:   
    >>SAVE filename X -ascii -double -tabs
        This creates a file whose name is filename, and it contains the data X in ASCII format with a tab delimiter.
    Import the file into LabVIEW using the Read From Spreadsheet File VI located on the Programming»File I/O palette.
    2) Have you tried using the mathscript node? Did you get any errors?
    "Binary Format
    Complete the following steps if you want to import or export data between LabVIEW and MATLAB®.
    From the MATLAB® environment to LabVIEW
    To read a .mat file in LabVIEW would require a VI to parse the file. This may be easier if each variable is saved to a separate file.
    " -- this was done here, no ideas if it still works,
    I want to read a Matlab MAT file into labview
    Hope this helps, James
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • How to open a Poplist

    Hi Experts,
    I am working in Oracle 10g. I have a doubt regarding the poplist in oracle forms.
    My Question is, How to open and close a poplist through keyboard when a cursor navigates to an item?
    If tab or enter key is pressed the cursor goes to the next navigable field which is a poplist. My requirement is as the cursor moves to the poplist it should open automatically without a mouse click and after selecting a value from the list when tab/enter key is pressed it must close and move to next field.
    Shall I use any Jars or something else?
    Thanks in advance.
    Regards,
    Sufi

    Sufi,
    I work on an application that is required to be Section 508 compliant (see https://www.section508.gov/ if you don't know what this is).  We found through our testing that there is no way to actually open a Poplist from the keyboard, but you can navigate through the values in the Poplist using the Up and Down arrow keys as well as type the letters of the value you are looking for.  Using these methods, we were able to certify using Poplists were 508 compliant since a user can select a value from the Poplist using only the keyboard.
    Hope this helps.
    Craig...

Maybe you are looking for

  • Dynamic Link not working in CS6

    I'm working on a Mac on OS 10.7.4, dynamic link between Premiere Pro CS 6.0.2 keeps hanging up and won't successfully launch AE. Just to see if it was the individual project, I launched a new project and tried to link a single file and it did the sam

  • Compile fail under linux ! oci.h: No such file or directory

    I want to transplant an Win32 OCI program to Linux.When i compile the program under Linux, the gcc returns the error information 'oci.h: No such file or directory '. Where can i find the OCI libs and includes under Linux/Unix?

  • Send two button in one form

    hi... i'm using jsp to design and coding in netbeans... my problem is....i have 2 button first button i'm using to searching and another button is to update but this 2 button send the parameter using form like this.... <form action="<%=request.getCon

  • Macs fine but PCs won't connect to AEBS - Ideas?

    Just switched out my old Linksys WAP and installed AEBS - all the Macs in my house work great but my Windows XP laptop refuses to connect to the new wireless network. It can see the new SSID in the network list but won't connect. Doesn't even get as

  • What are all the Standard Data targets&Data source for Warehouse management

    Hi, What are all the Standard Data targets & Data source for Warehouse management. Thanks, Ahmed.