Hot answers tagged

3

What the Technical Reasons for 1024 character limit The limit you refer to is not 1024 bytes. As explained in the article you linked to that was a bug, with a hotfix available. The article explicitly says the limit is 2048 bytes for the CreateEnvironmentBlock function. In addition the bug was specific to two old versions of Windows (XP and Server 2003). ...


2

How can I make sure that my user PATH variable is taken into account. Your problem is that your system path is currently too long (2000 characters). Fixing this should also fix your bash path as this is usually based on the Windows path. You can: Shorten your system path to < 1920 characters, or Add the user path values to the system path. Does ...


2

Plain old temporary files: $ pwd > /tmp/loc $ cd "$(</tmp/loc)" $ cd "`</tmp/loc`" $(< file) is similar to $(cat file); you can skip the double-quotes if contents don't have spaces. If you wrap this in a function or something, change the /tmp/file to ~/tmp/file or even $XDG_RUNTIME_DIR/file for some security: put() { echo "${*:2}" > ...


1

There's a lightweight, fast and pretty handy tool that is used all around where data caching or interchange is needed without big efforts on coding. Redis is the name, and here it could be used like this: you start redis-server you call redis-cli setting any key to the required value in one session you call redis-cli getting the required key's value in ...


1

DLL's are never loaded from the Path, they are loaded from a variety of places. If you want to be able to run the exe from anywhere, there are a couple of possible solutions Use a shortcut to point to the exe instead of the real exe, then the exe can still be close to it's dependencies. Change the program which created the exe to look for the DLL in ...


1

Run this (change Windows path to match your setup): "C:\Windows\system32\rundll32.exe" sysdm.cpl,EditEnvironmentVariables


1

Basically, the solution is in your question: eval. eval export JVM_OPTS=\"$JVM_OPTS\"



Only top voted, non community-wiki answers of a minimum length are eligible