Activity Stream
48,167 MEMBERS
6627 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 8 of 8
  1.     
    #1
    Member
    Website's:
    maxneeds.info

    Question some batch help ?

    Hi !
    If you aren't programming batch 2 years you totally forget anything ,believe me i am in this situation .
    I was wondering if you can help me making srcript for killing all processes called php-cgi.exe (because they grow ) except one of them. I hope you get my mind.

    :loop
    if php-cgi.exe > 1 process (
    TASKKILL /F /IM "php-cgi.exe")
    goto loop

    the italics font must be translated into batch..
    Porsche_maniak Reviewed by Porsche_maniak on . some batch help ? Hi ! If you aren't programming batch 2 years you totally forget anything :( ,believe me i am in this situation :D . I was wondering if you can help me making srcript for killing all processes called php-cgi.exe (because they grow :|) except one of them. I hope you get my mind. :loop if php-cgi.exe > 1 process ( TASKKILL /F /IM "php-cgi.exe") goto loop the italics font must be translated into batch.. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    Code: 
    TASKKILL /F /IM "php-cgi.exe"
    This will probably kill all php-cgi.exe processes.

    You can also use PID.
    Code: 
    TASKKILL /F /PID pidhere
    Anyway I don't really get you, try to explain it more please.

    Defendos BETA3 Released! Thread - Official Website

  4.     
    #3
    Member
    Website's:
    maxneeds.info
    l0calh0st - I think paint will explain it better



    I want to kill all php-cgi.exe except one of them (is it possible the newest?)...

  5.     
    #4
    Member
    Website's:
    maxneeds.info
    nobody can help ?
    Windows VBS script then ?

  6.     
    #5
    Member
    Website's:
    Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.com
    why don't you just set the max processes to 1 in fastcgi in lighttpd or whatever u use...
    LE with your pr2 site? <a href="http://tastro.org/">Tastro.org</a> or link exchance with our category page: <a href="http://tastro.org/i/hdtv">HDTV</a> | <a href="http://tastro.org/i/dvdrip">DVDRip</a> | <a href="http://tastro.org/i/r5">R5</a> | <a href="http://tastro.org/i/bdrip">BDRip</a> | <a href="http://tastro.org/i/brrip">BRRip</a>

  7.     
    #6
    Moderator
    NewEraCracker's Avatar
    WTF? php-cgi spawning childs in windows. I trough it was disabled in windows as I never managed to make PHP_FCGI_CHILDREN work.

    And by the way. Each child can only process one request simultaneously.

    Can you please tell us more details about your server configuration?
    Trusted: Dom, l0calh0st, 0ccul7, robert420
    Find all threads started by NewEraCracker

  8.     
    #7
    Member
    Website's:
    maxneeds.info
    @sloddl i don't think i can adjust that. I have only fastcgi processes timeout option.

  9.     
    #8
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    I'm sure the application won't work properly if you kill it's processes anyway you can kill all child processes using their PID's

    Code: 
    TASKKILL /F /PID pidhere1
    TASKKILL /F /PID pidhere2
    TASKKILL /F /PID pidhere3

    Defendos BETA3 Released! Thread - Official Website

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. need help with some batch script
    By techdaemon in forum Technical Help Desk Support
    Replies: 0
    Last Post: 29th Mar 2011, 02:58 AM
  2. Batch WMV to FLV conversion
    By AllHosting in forum Server Management
    Replies: 2
    Last Post: 25th Feb 2011, 07:53 AM
  3. Batch script help
    By SiNNER in forum Technical Help Desk Support
    Replies: 6
    Last Post: 19th Jan 2011, 01:58 AM
  4. [BATCH] Game!
    By l0calh0st in forum Web Development Area
    Replies: 2
    Last Post: 18th Sep 2010, 04:58 PM
  5. Any batch experts?
    By Daniel in forum General Discussion
    Replies: 0
    Last Post: 12th Mar 2010, 05:27 PM

Tags for this Thread

BE SOCIAL