The security issues amount to just 2 potential problems:
1 - If a user is stupid enough to name a program the same as an already existing program or script name. This implies the user is only slightly smarter than a head of cabbage and doesn't first use the [ which ] utility to avoid name duplications.
2 - If the system is hacked. This implies that the OS is inherently unsafe, anyway, and much more anti-malware protection...
User Profile
Collapse
-
-
Security (and the lack there of) and the OS getting programs in PATH mixed up generally have nothing to do with each other.
This forum isn't the place to flame Windows security issues. There are plenty of other places to do that.Leave a comment:
-
-
Adding every development directory to the PATH is just not feasible or even reasonable. I create them/use them/delete them much too often.
Is there a way to automatically add the CWD to PATH without creating duplicate entries ? In other words, how can I get the OS check the CWD *first* to search for files ?Leave a comment:
-
Thanks - I got it working now. I haven't yet found all the conditions necessary to get shebang lines to work documented all in one place.
I find it very unfortunate that to execute a local script (python, bash, etc.) the prefix "./" must be added to the script filename. This seems pointless and counter-productive as well as being the exact opposite that all Window OSs, python, C compilers, etc., check to locate files.
...Leave a comment:
-
As it turns out, the shebang is somewhat useful only when running during development. Considering its 2 requirements it is far more direct to simply use the command line like :
$ python myapp.py
The shebang line is useless for trying to run myapp.py giving only :
$ myapp
Using the utility cxfreeze is a way [ the only known way ?] to be able to create any kind of executable and be able to place it in an...Leave a comment:
-
Run a python script and the #!/usr/bin/python line
I'm coming from the MSW development world and a few things in linux/ubuntu for "getting things done" have got me stumped.
If I have my python app in "/usr/local/pyscripts" named "myapp.py", how can I set up things so that I can run it from anywhere on the command line by simply giving the command "myapp arg1 arg2 arg3" ? (I can write bash scripts and set aliases if necessary.)
...
No activity results to display
Show More
Leave a comment: