#perl - Wed 9 May 2007 between 15:05 and 15:43



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.
REGJAVAhttp://paste.uni.cc/15333
Ani-_snarkyFish: the difference is how the browser starts.
snarkyFishAni-_: ah.. hmm.
REGJAVAand i call it system $CMD ;
hobbssnarkyFish: 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");
hobbsyeah, START.EXE should fix it
REGJAVAwith CMD having the content in the paste bin
snarkyFishah. 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.
hobbsREGJAVA: 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)
hobbsbut other systems don't have major shell-window hangups to work around anyway ;)
snarkyFishAni-_: 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
actionnanonyme finds it weird someone comes to perl with nick full in caps and mentioning java :)
nanonymefinds 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 ?
snarkyFishsnarkyNoob: wperl?
REGJAVAsystem $CMD ;
TMTOWTDItREGJAVA: Try the (PROGRAM, LIST) form of system() - you should be able to avoid calling cmd.exe
REGJAVAI ahve even tried system "$CMD" ;
dharman that is one ridiculously long classpath
can't you also set an env variable for CLASS_PATH?
hobbsthat paste sunk my battleship
TMTOWTDIt: I'm not sure if that'll actually help though
REGJAVATMTOWTDIt: i have tried that
hobbsIt might, but commandline length limit is usually a system thing. The shell just checks for it, it doesn't _cause_ it
dharREGJAVA: try setting your classpath in CLASS_PATH first, then drop all of that from the cmd line
TMTOWTDIthobbs: 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";
maukeyou can remove ". and ."
REGJAVAyou mean for the DEBUG_PORT_ILS?
maukeyeah
REGJAVAok
perlmonkey2What'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?

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 92 99 

IrcArchive