Invoking Remote Processes and Killing them

Hi,
I need to invoke c++/java programs remotely using a web browser on multiple computers on a network. I am running web servers on each of the computers. These web servers host servlets to invoke the processes locally on that computer. The web front end provides invocation of these servlets. The servlets are essentially using Runtime.exec(command) to start of the particular program (c++).
the problem is now killing the processes remotely. Is there anyway I could accomplish that?
Please give a example if possible. The last time I asked this question I was given some very tough answers which I could not comprehend at all.
Thanks.

thanks jschell for the quick reply,
I found out a way to do this. I am using kill.exe, a utility to kill a process in windows given the name of the executing process. It seems to be working fine except a new problem. This may sound a bit wierd too. I am using a couple of machines including a few servers running win2k advanced server. I know using kill.exe on these servers is not a very nice thing to do from a security point of view but the present task is purely academic in nature. Back to the problem. I am able to run the batch file, kill.exe and other stuff on the local machine through a servlet hosted at a web server running on the same machine. I am ablr to do this for most machine except one. Now this machine is running win 2k advanced server too. The exact query that would be defined from this discussion could be -
Are there some setttings that allow how much control is given to the servlets running on the web server at the local system?
Can a servlet, once invoked, perform any action on the machine?
I searched some literature/documentation on this. Did not get anything specific. Your reply would be higly appreciated regarding this.
Cheers!

Similar Messages

  • Find network share process and kill it

    Hi All,
    Is it possible that we could find open network share access process and kill it?
    For example, user is opened a folder via network share (e.g: \\myserver\c$\myfolder). Is it possible that we could somehow query process to identify this open network share process and kill it before attemp to delete C:\myfolder? Please advise.
    Best Regards,
    Andy Pham
    Best Regards, Andy Pham

    You could try checking for open file handles, as described here:
    http://stackoverflow.com/questions/317071/how-do-i-find-out-which-process-is-locking-a-file-using-net. They have both a solution using an external executable utility (SysInternals) and one using PInvoke. You could also use this other utility which is specifically
    targeted at hosts of network shares:
    http://technet.microsoft.com/en-us/sysinternals/bb897552.aspx.
    Wasabi Fan

  • Invoke BPEL process and display result in BAM chart?

    Hi,
    I was wondering if there is any way to invoke a BPEL process and display the result back in BAM chart (Active Studio).
    I have in mind the Actionable Reports and getting the BPEl process populate the BAM Data Object to show the result back. Let me know if there's anything to connect these ideas to do the whole thing.
    The reason for this requirement is to have a single User Interface for having BAM charts and a query operation (synchronous BPEL process).
    Any inputs are welcome.
    Thanks in advance.
    Vikas

    Yes, this can be done with the help of Alert and setting up a external Action.
    Please refer the following document for more details.
    http://www.oracle.com/technology/products/integration/bam/10.1.3/TechNotes/TechNote_BAM_CallingExternal_WebServices.pdf
    regards
    Laj

  • I seem to have a lot of Apple IDs. Is there a way to get a list of them and kill them all off until there is just one left?

    I can't get on the icloud because my Apple ID is a birthday, password and email that are not mine. How do I fix this?

    Welcome to the Apple community.
    If you mean that Find My Phone is asking for a password to a different Apple ID to your current Apple ID.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID using your current password, you don’t need access to this address if it’s previously been used with your Apple ID, once you have saved these details enter the password as requested on your device and then turn off "find my phone" and delete the account from your device.
    You should then change your Apple ID back to its current state, save it once again and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • How to monitor / shutdown processes and users?

    Hi,
    As you can see in my previous post i'm totally new to Arch and fairly new to Linux...
    Here's one thing that bothers me: I don't know how to keep track of all running processes (and end them if needed... I guess you need to 'kill' them but you first need to know their name, right...) and logged on users (even though that's only me, heh...)
    How can you do that in Linux? (something like task manager or another admin tool - or a command line version)
    Another thing... I think a wiki page 'securing the default Arch install' would be helpful...
    (flame me if there already is one, but I didn't find it )
    greetings,
    d.
    (I think Arch is going to be the one Linux distro to break the record of 1 month installation on my pc... woohoo!!!)

    Kern wrote:
    processes man ps
    Now only 2 questions are left: how to monitor logins, and how to secure Arch Wink
    Arch Wink, is this a subrelease of Arch? if so i've never heard of it. 
    I really don't know how that ended up in my post especially because I use semicolon, bracket instead of colon, wink, colon for my smiley...
    but as relates to securing Arch, of course I mean against network based attacks. The way you would try to secure Windows. I know how to own windows computers when I have physical access to them, and I guess it's the same thing with Linux pc's... but I want to feel secure that nobody from the internet is going to appropriate my box for illegal or other things, on those few occasions that i'm not behind a router/firewall (which I am not sure I trust either... it's a Linksys wireless/wired router with integrated firewall capability. How secure is that? I don't know!)
    Is there no way to deny all other pc's access to this pc? It's a laptop, not a server, so nobody has business accessing it remotely anyway... Actually, this is one of the reasons I had an eye on openBSD secure as hell...
    EDIT: since we're at it... another thing I don't find is how I can find out at what speed my cpu is running... is it going down to 600 MHz when Idle or isn't it? etc... That stuff is pretty easy to see in windows... must be feasible at least in Linux hey

  • How can I set a BPS's formula to be a remote process

    Hi Masters
    Now i hava a copy formula in my BPS level.
    I want to know how can I set it to be a remote process and remote it in every day.
    Thanks & Regards.

    Create a process chain, add process type to call the report program UPC_PLANFUNCTION_EXECUTE with proper variants, assign the planning function and trigger this process chain daily.

  • How to map business process and enterprise service?

    Recently, I read some documents about ESA. I'm confusing about the relationship between business process and enterprise service. In other word, how to map the business process to enterprise service after the business process is analyzed? Is there any methodology/rule to define business process and wrap them into service in ESA?

    Hi Sherry,
    I like to add some of my thoughts about that discussion. From my point of view ESA is much more than just another BPM or Enterprise BPM. ESA is adresses six key areas and I think all of them are really needed:
    - <b>People Productivity</b> as the word itself describes...it's about portals and productivity.
    - <b>Embedded Analytics</b> has to integrate transactional and analytical content.
    - <b>Service Composition</b> is used for model-driven service composition and services orchestration.
    - <b>Service Enablement</b> is about a Enterprise Services Repository filled with business meaningful Enterprise Services and service patterns for enabled objects. Excactly this is where SAP has years of experiences.
    - <b>Business Process Platform</b> is about service enablement of all application platform objects and engines. This is the place where "BPM" for core business processes resits.
    - <b>Life-Cycle Management</b> has to cover the deployment, configuration, operation and change management for ESA based processes.
    Therefore the term "BPM" is located in serveral layers of an ESA approach. On the level of <u>Business Process Platform</u> BPM is providing the choreography for core business preocesses.
    At <u>Service Enablement</u> BPM needs to compose out of granular services (I would say "atomic" services)
    buiness meaningful services (here we have "molecular" services).
    The third level where BPM could be used is <u>Service Composition</u> because exactly this is the place
    where serveral Enterprise Services could be combined to a process representation.
    To come back to the discussion:
    1. The question should be how to indentify business meaningful services which could represent single process steps. ATP check, Credit card check, ... could be examples. In theory this service could be out-tasked, defined more flexible etc. This means that processes needs to be evaluated for Enterprise Service candidates. Afterwards you can check against SAP's Enterprise Services Repository for already existing Enterprise Services. The evalution for enterprise services candidates will be supported by the metodology mentioned by Kaj and David.
    2. I think domains in this context should be motivated by business and/or functional areas. Depending on the granularity. For example Order Fulfilment Services, Master Data Services, Search Services... These kind of serices can be combined again to services such as "Search of Master Data" (Search Service + Read Master Data Service) etc. or can be used to generate UI to be used in a ESA application.
    Your thoughts?
    Very best regards
    Wulff

  • How to avoid authentication screen when invoking a process?

    Hello!
    I created a simple webservice in Workbench to generate a sequential ID for PDF forms.
    It's working fine, but the form is open a Windows Security dialog asks for login and password to access the webservice.
    As there are over sixty of these forms to be used by around 4,000 employees, this will be a major problem.
    Question: is there a way of invoking the process and sending the authentication information when the form is opened and thus avoid this dialog entirely?
    Thank you very much for any hints!
    Marcos

    Thank you Nith! 
    But... it did not work...   
    I set it to "No", stopped the service, started it back again. No good.
    When I press the button on the form to invoke the service, the Windows authentication screen comes on.
    What could be wrong?
    Thank you!
    Marcos

  • I attempt to open a second window from the icon but it does not open then when firefox is closed it will not reopen because it is still running in processes but no window displayed until you kill the process and then restart firefox.

    I attempted to open a new window from the Firefox icon but nothing happens. I then went on browsing and closed Firefox but was later unable to open it. I checked processes and it was already running but there was no window displayed. I am running Windows 7 Professional.
    This is repeated any time I already have the browser open and wish to open a second instance.

    '''<u>Open a second window (not a second tab, that is different) when Firefox is already running and displayed on the monitor</u>'''
    *Firefox button > New Tab > New Window
    *CTRL+N
    *'''''If using the Menu Bar''''': File > New Window
    **To '''''temporarily''''' display and make choices from the Menu Bar press the ALT key or the F10 key
    **Also see: https://support.mozilla.com/en-US/kb/Menu%20bar%20is%20missing
    '''<u>Firefox "hang on exit"</u>'''
    #Stop the Firefox process:
    #*[http://kb.mozillazine.org/Kill_application Mozillazine - Kill application]
    #*Windows 7 users click [http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576 here]
    #Why Firefox may hang:
    #*[http://support.mozilla.com/en-US/kb/Firefox+hangs Firefox hangs] (see Hang at exit)
    #*[http://kb.mozillazine.org/Firefox_hangs Firefox hangs (Mozillazine)] (see Hang at exit and Closing Firefox properly)
    #*[https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding Firefox is already running but is not responding]
    #Use Firefox Safe Mode to find a problem with an Extension or Plugin:
    #*Don't check anything when entering Safe Mode, just continue
    #*If the problem does not occur in Safe Mode it is probably and Extension or Plugin causing the problem
    #*See:
    #**[[Safe Mode]] and [http://kb.mozillazine.org/Safe_Mode Safe Mode (Mozillazine)]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    #**[http://support.mozilla.com/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • What are these processes and how do I prevent them?

    For many years, many have complained of external drives that are in standby/sleep spinning up for no apparent reason.  From the user's point of view this is unnecesssary, but to make matters worse, the system usually stops everything else while waiting for the drives.
    I have a Mac mini that I use as a home theater pc.  The media and backups are on a 5-bay enclosure (no RAID) attached by USB.  While watching a video, the unused drives will go into standby mode, which is good.  But then, with no user activity, they will spin up, freezing the video and everything else, which is not good.  As these are slow drives and spin up sequentially, this can take 10-20 seconds.  This may happen once or twice an hour, but sometimes more frequently.
    In looking into the causes, I have turned off time Machine (after putting these drives into the Privacy section for good measure).  I also prevented Spotlight and fsevents logging with the following:
    mdutil -i off /Volumes/<drive1> /Volumes/<drive2> . . .
    cd /Volumes/<drive1 and then repeat for other drives>
         rm -rf .fseventsd .Spotlight-*
         mkdir .fseventsd
         touch .fseventsd/no_log .metadata_never_index
    As far as I can tell this has worked to stop those processes from accessing the drives after they are mounted, but the problem persists.  To find out what else might be causing them to wake up:
    sudo fs_usage -w | grep -e Volumes/<drive1> -e /Volumes/<drive2> . . .
    and here is what I found last night (actually didn't use the -w last night, thus it is cut off):
    18:35:36  fsgetpath   /Volumes/XBMC         0.000026   SSDragHelper
    18:35:36  fsgetpath   /Volumes/Stuff        0.000006   SSDragHelper
    18:35:36  fsgetpath   /Volumes/DatOptic_3   0.000005   SSDragHelper
    18:35:36  fsgetpath   /Volumes/MacBackUp    0.000003   SSDragHelper
    18:36:15  fsgetpath   /Volumes/XBMC         0.000026   System Prefe
    18:36:15  fsgetpath   /Volumes/Stuff        0.000004   System Prefe
    18:36:15  fsgetpath   /Volumes/DatOptic_3   0.000003   System Prefe
    18:36:15  fsgetpath   /Volumes/MacBackUp    0.000003   System Prefe
    18:55:36  fsgetpath   /Volumes/XBMC         0.000034   GoogleSoftwa
    18:55:36  fsgetpath   /Volumes/Stuff        0.000004   GoogleSoftwa
    18:55:36  fsgetpath   /Volumes/DatOptic_3   0.000003   GoogleSoftwa
    18:55:36  fsgetpath   /Volumes/MacBackUp    0.000003   GoogleSoftwa
    After looking into the Google process, I was surprised to find the tentacles that Google puts into your system, and ripped every bit of it out that I could.  But I have no idea about what's going on with SSDragHelper and System Prefe (presumable System Preferences).  This must be OS X itself?  What are these processes doing, and is there any way to prevent them from accessing these disks in this way?

    Thanks for the reply Hen3ry.  Looks like you've done a lot of investigation.  For me, fs_usage entries accompanying spindown are not problems - I'm happy if the drives spin down.  My problem is the spinups.  But still, I don't think it is necessary to time the fs_usage entries with spinups.  If you grep for the drives you're concerned about, you will see any process that would potentially wake them up.
    Because my understanding is limited, I also am more concerned with the process/application that is accessing the drives than with the functions or commands they are sending.  And the values that are returned by those functions are way beyond what I can deal with.
    It's interesting that you've found a difference between your old and new drives.  Could you specify the enclosure and drives in each case?
    The StorageStatus app looks interesting; thanks for the tip.
    Here's a summary of what I've done so far, which I think is working.  I need a few more weeks to know for sure.
    How to prevent unwanted drive spin-ups
    If you are actively using the computer that the enclosure is attached to, nothing on God’s green earth will stop OS X from waking them up after some user action, even ones that seem to have nothing to do with the external drives.  But if you leave the computer alone while some application is running, like watching a movie or downloading a file, you have a fighting chance of coaxing OS X into leaving the uninvolved drives alone.
    If the drives are shared with any other computers over a network, eject them on those computers
    Otherwise, OS X (AppleFileServer) will poll them every 10 seconds.  This might not be bad if you want to just keep the drives spinning and the other computer stays awake.
    Third-party apps
    Make sure no apps are running that might access your drives.  Google runs some processes that do this (maybe I’m naïve, but I was so shocked I removed chrome and every other trace of Google from my Mac mini system). Another is iStat and any utility that monitors SMART status in the background.
    Don’t let Spotlight index or search the drives
    Spotlight is persistent, and it may be necessary to take a variety of steps to stop its various processes (mds, mdworker) from accessing the drives and waking them up.  In other words, kill it, drive a stake through its heart, then burn the body:
    In System Preferences > Spotlight, add the drives to the Privacy pane.
    Add a file called .metadata_never_index to the root of each drive (note the leading period).  The easiest way to do this is in Terminal
    touch /Volumes/<drive1>/.metadata_never_index
    Tell Spotlight AGAIN to keep away from the drive:
    mdutil -i off /Volumes/<drive1> /Volumes/<drive2> . . .
    Finally delete the Spotlight folder from the drive.
    rm -rf /Volumes/<drive1>.Spotlight-*
    Stop fseventsd from logging in the drive
    This is easy, just putting a no_log file in its folder.  I have found that rarely it still writes some files in there, but it doesn’t seem to do so when it causes problems, so . . .
              rm –rf /Volumes/<drive1>/.fseventsd/*
         touch /Volumes/<drive1>/.fseventsd/no_log
    Finder sidebar
    Some people say that if the drives show in the Sidebar of Finder windows, the Finder will be checking them.  I’m not sure. But to be safe, in Finder Preferences > Sidebar, uncheck External Disks.
    Just say no to Time Machine
    On the home theater mac itself, regular backups shouldn’t be needed.  You should be able to just turn Time Machine off.  However, it is probably sufficient to simply open System Preferences > Time Machine > Options and add the drives to the list of locations to exclude from backup.
    Second, local backups can be disabled with
    sudo tmutil disablelocal
    Look for other culprits
    If the problem persists, use fs_usage, which generates a real-time log of filesystem activity. There is so much going on that you need to use grep to restrict the output to entries that involve your drives. The entries that accompany your drive spin-ups are the ones you really want.
    sudo fs_usage -w | grep -e Volumes/<drive1> -e /Volumes/<drive2> . . .
    Now leave the keyboard and mouse alone, as many things you might do will cause the drives to be accessed. You probably want to find what does it when you’re not actively interacting with the computer.  It’s not really necessary to wait for your drives to sleep and see what wakes them.  Any activity you see would probably wake the drives if they were asleep.  When you see some activity and want to stop and examine, type Control-C to stop the output.  On the far right of each entry is the process or application that accessed the disks.
    I got pointers from http://system-log.tyr.org.uk/2012/01/31/how-to-stop-usb-drives-from-spinning-up- unnecessarily-on-os-x-lion/ and http://www.jackenhack.com/disk-that-refuses-to-sleep-in-mac-os-x-how-to-fix-it/

  • Remotely invoke DS job and wait for job

    Hi,
    We are running DS 4 SP2 on Linux and have generated our job script from
    the console. We need to be able to invoke a DS job from scheduler
    (autosys) running on AIX and wait for the DS job to complete so the
    return status is passed back to autosys.
    We are planning to replace informatica with DS, informatica has a utility
    pmcmd which allows remote invocation and will also wait for the job to
    complete. Is there a similar utility in DS?
    Alternately, if we installed DS on the remote AIX server, would it be
    able to remotely start/wait for the job on the Linux server?
    Thanks,

    you can export the job execution command for a job from management console and use that to run the job from auto sys, the script will start job aluncher which has a option -w (by default it waits for job to complete) which tell whether the launcher process waits for job to complete or starts the job and exit

  • When closing my Firefox window, all processes are not closing requiring me to open task manager and kill the process before using Firefox again. Received recent upgrade and hasn't worked right since then.

    I open Firefox, use it, then close the window. Try to reopen Firefox and it fails with a message that a previous process is still running. Requires me to open Task Manager and kill the old process.

    Try to wait a bit longer before reopening Firefox to give Firefox more time to close completely.<br />
    Try to use "Firefox/File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") to close Firefox if you are currently doing that by clicking the close X on the title bar.
    See "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    *https://support.mozilla.com/kb/Firefox+hangs

  • I want to get my parents setup with an imac and iPad.  They are elderly and we live in different countries.  I want to know what solution exists so I can be the remote administrator to maintain and keep them up and running .. I dont want anything fancy.

    I would like to setup my eldery parents with an imac and ipad which I know will greatly help them in their daily life.  The technology they love to play with whenever I visit, but they can never keep anything running or sync'ed unless I am around.  Medical and other issues make this a real challenge for them.  Unfortunately, I live in a different country and see them maybe once per year.  I'm surrounded my apple products but never tried remote administration and wondered what I would need (software and hardware) to make this noble venture sucessful.  Anyone out there has some experience or recommendations?  I'm looking for something that is simple and reliable to implement ...

    JokerGirl,
    This is Scott J, I work for Intel and wanted to try and help you out. Sorry to hear about your current PC and your knee!
    I agree with the bigger screen. I have the Samsung ATIV Smart PC with a screen 11.6" which is great to watch shows/movies!  anything bigger is almost too big for a tablet (personal opinion).
    Yes, most if not all tablets will have speakers and a headphone jack
    You can watch YouTube
    Only certain models have keyboards, you will want to specify this when making a purchase. Note: most keyboards are sold separately.
    Covers are usually pretty easy to come buy, as well as screen protectors (clear plastic that covers and protects your screen from scratches, etc.)
    Depending on the Operating System (Windows, Android, etc.) you will have access to an app store where you can buy and download content. Alternatively you can access your favorite sites to read news, get books, magazines, etc.
    Hooking things to your tablet - different tablets will have different ports (USB, HDMI, etc.) Question to ask prior to making a purchase as some do not have ports (iPad). Back to my Samsung, I have several ports and do hook it to my TV
    Tablets can run anywhere from $150-$1,000.  The mid-range $400-$700 should fulfill all of your needs above and more!
    Here's an article that might help you narrow down your search: http://electronics.howstuffworks.com/gadgets/high-tech-gadgets/5-tips-for-choosing-the-right-tablet....
    Happy Holidays!
    Scott
    #IntelTablets

  • How do I process multiple files and turn them from raw to jpeg

    How do I process multiple files and turn them from raw to jpeg. Ive tried and it seems to go through the files but doesnt seem to process them or store them in the selected folder

    Yes that was the first thing I did. Then I used the process multiple files and selected a new folder to put them in and selected use open files and selected to turn them into jpeg. The images flash on the screen like they are being processed, but the folder never appears in library. Is it possible because there are a couple 16 bit files open that this corrupts the task. Do I need to create the folder first. Will elements not create the folder on its own.
    Thanks Vince

  • If I were to purchase the Apple Remote Desktop with Unlimited licenses, would I be able to install the client software on each of there computers/laptops and have them remote desktop into the server?

    I have several friends and family who are looking for a central place to access information from ( Pictures, home movies etc ).  So I am considering setting up an OSX Lion Server.  There are some other things I can use it for as well.
    Here is my question:
    If I were to purchase the Apple Remote Desktop with Unlimited licenses, would I be able to install the client software on each of there computers/laptops and have them remote desktop into the server?  Or would I have to install the Admin software on each?  Do they intend it to be used strictly as one admin to access many clients? 
    I always could set up a network drive so they can log in and just see the folders they have created with space on the server I provide them.  But I want them to be able to log an and actually use it as a Remote Desktop.
    Thanks,
    Eric

    Dave,
    Thanks for the feedback.  I understand that ARD is meant for Remote Administration, but I was not sure if it could be used for my purpose as well.  The reason I was looking to do it this was was because I read several articles online about security and performance issues with setting up VNC and activating screen sharing.  Unless I am misunderstood. 
    As far as people's activities on the server, mostly it is going to be used as a place for them to store their media.  I will only allow own person ( Who I trust and I know wont botch the server ), to run applications.  Everyone else will be restricted to uploading and downloading content to their designated account on the server as well as a community share on the server.
    I appreciate your help.
    Thanks,
    Eric

Maybe you are looking for