| Ani-_ | snarkyFish: You opened the shell. In the shell you ran a perl script. That script contains exec(). exec() will replace the perl script with the thing you called. That thing is vim. |
| REGJAVA | http://paste.uni.cc/15333 |
| Ani-_ | snarkyFish: the difference is how the browser starts. |
| snarkyFish | Ani-_: ah.. hmm. |
| REGJAVA | and i call it system $CMD ; |
| hobbs | snarkyFish: the browser window is going via some sort of launcher that makes an RPC call to the real browser process and then immediately exits, most likely. |
| Ani-_ | snarkyFish: I suppose you could try: exec("start vimpath file"); |
| hobbs | yeah, START.EXE should fix it |
| REGJAVA | with CMD having the content in the paste bin |
| snarkyFish | ah. cool. will try that. Thanks whoo hoo! perfect. Thanks again all. |
| Ani-_ | REGJAVA: that paste site is slow. Way too slow. Please use one that is in the topic. |
| hobbs | REGJAVA: Either you're just wrong about commands of that length having worked, or else something changed on your system. But perl has nothing to do with it. And your paste site is broken, doesn't load. We have ones in the topic for a reason. |
| Ani-_ | (snarkyFish: note that that will - obviously - only work in Windows) |
| hobbs | but other systems don't have major shell-window hangups to work around anyway ;) |
| snarkyFish | Ani-_: aye, i figured. That's the only place it needs to. ; ) |
| pasteling | "regjava" at 125.16.130.180 pasted "C:\bea\jdk150_04\bin\java -Xms" (1 line, 32.2K) at http://sial.org/pbot/24794 |
| action | nanonyme finds it weird someone comes to perl with nick full in caps and mentioning java :) |
| nanonyme | finds it weird someone comes to perl with nick full in caps and mentioning java :) comes to #perl even |
| Ani-_ | snarkyFish: I suppose you could also use wperl to start the process. But note that your console goes away immediatly then (if you get one). REGJAVA: and how do you set $CMD ? |
| snarkyFish | snarkyNoob: wperl? |
| REGJAVA | system $CMD ; |
| TMTOWTDIt | REGJAVA: Try the (PROGRAM, LIST) form of system() - you should be able to avoid calling cmd.exe |
| REGJAVA | I ahve even tried system "$CMD" ; |
| dhar | man that is one ridiculously long classpath can't you also set an env variable for CLASS_PATH? |
| hobbs | that paste sunk my battleship TMTOWTDIt: I'm not sure if that'll actually help though |
| REGJAVA | TMTOWTDIt: i have tried that |
| hobbs | It might, but commandline length limit is usually a system thing. The shell just checks for it, it doesn't _cause_ it |
| dhar | REGJAVA: try setting your classpath in CLASS_PATH first, then drop all of that from the cmd line |
| TMTOWTDIt | hobbs: yeah me either - I'm not real clear how all that works on Win32 but I figured worth a try |
| Ani-_ | REGJAVA: that's how you use it. Not how you set it. |
| REGJAVA | $CMD="$ENV{JAVA_HOME}\\bin\\java -Xms200m -Xmx400m -XX:MaxPermSize=200m $PROPS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=".$map{DEBUG_PORT_ILS}." -cp $CP weblogic.Server"; |
| mauke | you can remove ". and ." |
| REGJAVA | you mean for the DEBUG_PORT_ILS? |
| mauke | yeah |
| REGJAVA | ok |
| perlmonkey2 | What's the most common solution to when your data you need munged will contain odd utf8 chars that will blow up regexps? Just make sure there are no weird utf8 chars? |