User Profile

Collapse

Profile Sidebar

Collapse
pascor
pascor
Last Activity: Sep 30 '12, 05:04 PM
Joined: Jul 7 '12
Location: near Philadelphia, Pennsylvania, USA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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...
    See more | Go to post

    Leave a comment:


  • 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.
    See more | Go to post

    Leave a comment:


  • Code:
    But you have been warned.
    Why do you say this ?
    See more | Go to post

    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 ?
    See more | Go to post

    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.
    ...
    See more | Go to post

    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...
    See more | Go to post

    Leave a comment:


  • pascor
    started a topic Run a python script and the #!/usr/bin/python line

    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.)

    ...
    See more | Go to post
No activity results to display
Show More
Working...