Re: Run Unix script and permissions...



On 2007-08-24 10:04:39 +0200, Kvochur <kvochur@xxxxxxxxx> said:

Hi to all,
I am a very newbie with Mac OS X and Unix systems in general, but I am
an expert Windows user.
In windows to run a script (DOS batch file or Windows CMD file, but
there is the same thing) is needed only a click in the Explorer.

in terms of usability it might be a desirable thing to have newly created files, such as batch scripts, to be immediately executable.

from a security point of view this is of course not desirable. as such on unix systems files are usually created without execute permissions. files requiring execute permissions need to be explicitly chmodded +x.

In Mac OSX first i need assign execute permission (chmod .....). I
would know if it is possible also with the GUI, because the Finder
show only read/write permissions but not execute. Any utility ?

the standard GUI does not allow setting the x bit AFAIK. probably to protect the user from making resources executable that don't require it. you might try tools like Path Finder that allow setting x bit i think.


Then, because I use so much script, it would more confortable run a
script simply clicking on it in the Finder, instead of open the shell,
exactly like in Windows. Any way to do this ?

once the x-bit is set, you can click on it in finder and it is run in terminal/iterm :)


--

regards,
solaris

.



Relevant Pages

  • Re: ASP.Net - the "Big Picture"?
    ... -ASP .NET has the same ability to access Windows features as the rest of the ... Script tags are fine for JavaScript ... libraries that depend on them. ... ASP .NET to generate client-side JScript, ASP .NET does not execute and is ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Closing down Windows with a script
    ... Windows starts to close down but suddenly stops.(it doesn't ... >write even a simple script to do this. ... you should be able to tell your UPS software to execute ... that command in case of power failure. ...
    (microsoft.public.scripting.wsh)
  • Re: Run Logon Script on Workstations Only
    ... > I am creating a script that I want to run at logon in a Windows NT ... but want it to execute on Windows 2000 or XP Professional ... Here is a small example using 'RegRead' (watch for wrapping): ...
    (microsoft.public.scripting.vbscript)
  • Re: How to make statements running in strictly sequential fashion like in an interactive shell
    ... Pexpect - a Pure Python Expect-like module ... However, when I execute the script, either being invoked ... I am using Python 3.2 in Windows in which Pexpect appeared ...
    (comp.lang.python)
  • Re: Microsoft Warns of New Windows Flaw (March 19, 2003 )
    ... In WINDOWS SETUP in ADD/REMOVE PROGRAMS of Control Panel ... Uninstall Outlook Express, ... Java, Javascript, ActiveX and all the other script runner toys Billy ... Install WebWasher the spammers are terrified of free from ...
    (comp.security.misc)