Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^2: Create and edit new scripts

by johngg (Canon)
on Apr 25, 2006 at 15:20 UTC ( #545579=note: print w/replies, xml ) Need Help??

in reply to Re: Create and edit new scripts
in thread Create and edit new scripts

I don't know whether you have had this issue with nedit. If I create a new script from within the editor and save it without closing the edit session and then chmod +x it in the shell I can run it. If I make further changes to the script and save them I can no longer run the script as the permissions revert to rw-r--r-- after the save. If I create the file outside of nedit with execute permissions and then start editing, nedit doesn't trample on the permissions during the edit/save/test/edit ... cycle. This was one of the reasons for writing "newscript".

Thank you for your reply, it has given me useful pointers to how I can better use nedit.



Replies are listed 'Best First'.
Re^3: Create and edit new scripts
by arkturuz (Curate) on Apr 26, 2006 at 07:42 UTC
    I hadn't have this problem. It works OK for me on Linux system.
    Although, when I run the program from nedit I run it with (binded to Ctrl+Shift+E):
    chmod +x %; %
    '%' stands for current editing file.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://545579]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2023-01-29 09:54 GMT
Find Nodes?
    Voting Booth?

    No recent polls found