Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Batch Files

Name: Anonymous 2011-10-04 19:19

So I run a Minecraft server on/off on my friend's server box, using simply php/batch files uploaded through FTP.

The problem is, his whore ex-girlfriend is running 2 servers, so I can't simply taskkill the java process, as I used to do, when I need to turn off my server.

Is there a way to have the stop batch file determine which of the java processes is associated with my server, and kill only that one?

Name: Anonymous 2011-10-04 21:15

ex-girlfriend is running 2 servers

Girls don't servers, they run kitchens.

Fuck her servers killall -9 java.

Also why the fuck don't have your process save it's pid in a pidfile so you can kill it later or do just like being out-smarted by a girl?

Name: Anonymous 2011-10-04 21:21

>>2

Actually, my friend handles it for her, she couldn't tell a batch file from a batch of cocks. (Actually she probably could, since the fat whore would most likely snarf down the latter)

Name: Anonymous 2011-10-04 23:38

>>>/g/

Name: !L33tUKZj5I 2011-10-05 0:54

>>1
Yes.
Make a connection to your minecraft server from your own IP, then run this.

netstat -anp|grep $your_ip_here

It will spit out a line something like this
tcp        0      0 192.168.1.5:42616       209.85.169.104:80       ESTABLISHED2019/firefox-bin

It will say apache instead of firefox-bin, or whatever. The second IP address will be the one you connected from...anyway, the bit in bold is the PID you need to kill.

Hope this has helped.

Name: !L33tUKZj5I 2011-10-05 0:56

BTW, I hope you realise you have to run that command on the actual server, and that it has to be a linux server.

If you are running a server on windows, GTFO.

Name: Anonymous 2011-10-05 7:11

>>6
How's that cover coming up?

Name: Anonymous 2011-10-05 8:32

>>6
Nice elitism faggot, Windows has netstat too and it can print not only the process number but also a snapshot of the stack trace when socket() was called.

Needless to say your shitty solution would work on Mac OS X and most BSDs too. Anyway enjoy your Linux.

Name: !L33tUKZj5I 2011-10-05 10:35

>>8
Ok, I should have said *nix.

However, the windows version of netstat doesn't have the ability to use the -p flag which IS the solution jackass

Also, windows doesn't have grep, ``faggot'', so NONE of my solution would have worked.

If you thought you were buttfrustrated before, how do you feel now?

Name: !L33tUKZj5I 2011-10-05 10:36

>>7
I'll do it now.

Name: Anonymous 2011-10-05 11:02

>>9
windows doesn't have grep
My GNU/NT distribution does.

Name: !L33tUKZj5I 2011-10-05 11:05

>>11
ACtually I'm on windows at the minute, as I've been doing a bit of gaming recently. I do have cygwin installed so so does mine. The lack of being able to fork shit is wank though, it's noticably slower at some tasks, and there isn't the ability to use screen

Name: !L33tUKZj5I 2011-10-05 11:06

I do still have dual boot though, and my netbook only ever has linux on it.

But damnit, if I run windows in a virtual machine, the latency on my midi keyboard is fucking through the roof, like over two seconds. It's unusable.

Name: (Me == OP) !neAe92srE6 2011-10-05 13:59

Gotta love leaving a post on here overnight and coming back to the clusterfuck of herpderp.

Anyway..

My friend told me the server is Windows.

Name: Anonymous 2011-10-05 14:07

Is it possible for me to grab the process ID of the java exe when I run the server, so I can use it later?

All I have in my start batch file right now:

cd "C:\Program Files (x86)\EasyPHP1-8\www\minecraft\mc"
CALL minecraft_server.jar

Name: !L33tUKZj5I 2011-10-05 15:07

>>14
Install cygwin.

Name: Anonymous 2011-10-05 18:00

>>16
Install Cygentoo.

Name: Anonymous 2013-09-01 13:59



         r- 、           , ',二ヽ
        __|::::::ハ,. -─- ..,,_     └' r 'ノ
      ノ´::::::::::::::l       `'' 、  └'   、l | ll| || ll | ll | || l| ll |
      ヽ::::::::\::::∨  ̄ ̄`゙' 、  ヽ  ○  ミ
       '`' 、::::::>'´   ,   }  ヽ  ':,   Ξ  弁  出  お .無
     /  / `ア  / / |   ハ  l   '   ニ.  当  て  に  限
     ,'  ,'  /  / ´工 |   ,' !  ハ.   '   Ξ  箱.  く.  ぎ  に
    ;  ;  ;'  ;'ァ'´, -ミl  / ,' /、!l   |.   ニ  ッ  る  り
    /  |  |  |{ ん } `  '、/-//   ;   .Ξ  ! ?    が
    /   ヽ ||__.」 乂_,ソ    ん' }、  /   彡,
   ;'   /|   | ""     .  l_ソ '//´      '/l | ll |l |l | ll |l |l || l |
   l/l  ,' |   |、u        ""/イ 何これ
    、 {、八  |   、  ´    ,ム |  こわい  ,. -─- 、
        _\ 」 \ `ァ -r ァ 升 、」      ,:'       ヽ
     /´  \:::\/lソr ヽ-、          ;        ',
    ,:'      ヽ::::::}_>rァハ, '⌒ヽ'⌒ヽ⌒ヽ         l
   .{       ∨::::::丶! / ■ ..::',■..:',■.::', 、        , '
    '、     _ }::::: r─────┬───┐`' ーァ  /
    `ヽ r'"´ ‐'∨::::: |:::: /´)::::::::::::::::!::::::::::::::::::::!  ,'  ,.' 
        ∨´  ':,:::::└ /  '、_,. -‐、┴‐r  ─┘  {  、_,. -、
        ∧    '、::::: /   _,,. イ   ;       ヽ.,_,. -、 )
      .く:::::'、     /  /´:::ト、、   ノ           (r'

Name: Anonymous 2013-09-01 15:30



      ,.ヘrく⌒ヽ、_,,.. -─- ..,,_
      /:::::\;>'"´        `「`'く⌒ヽ-‐ァ
     く::::::::/    /`     r':::::-|   ∨
     ; `7  /  /        |::::::::/|   ト、
      | ; ./ /   ;'      ヽ,   ´ ̄ |    「
      | | | |rメ、|  ,ハ、  ;  |   .|   |   知るか
      | '、 、|| lハ '  / _」二_ |  |   .|   |    Yahoo!でググれ…っと
     ',  \7 弋! ∨´ 「  ハ||  ;   ./|   |
      ヽ. 八"   '  弋zン/ /ァ/./    .!
       C ‐ …\  、   "∠ イ/ /     !
       ノ  |   `_,ー‐=ァ (/、   ,'     ,'
      (  _/__ /´l l} |/  /r \. |    /
       \| lolヾ' /{!ム!  /r'   ':, 、  {
      Pi .| |-| |7 .// \/'      |  \  )
        {ト=k| ;':;'  〈     /     )'
       (ミ}_」 |::|    7二二ハ 
       /ヽ-' ハ. |::|   /  / |ム|
        '、__/r'、.|::| "/  ∧
         /ヽ l_>/  //\
        /\/ ̄「/  //\ /\
      く\/| ̄r'   //  /Y />

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List