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: 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: Windows Security Templates
    ... Try exec.vbs from the Windows 2000 resource kit. ... >Is there a way to execute a script across the entire domain ... >Policy to apply them. ...
    (Security-Basics)
  • vbscript fails to start windows application
    ... I am trying to execute some applications from within vbscript using ... The thing is that the same script that fails to start aida32 ... So it definitively seems to be related to Windows XP ...
    (microsoft.public.scripting.vbscript)
  • vbscript fails to start windows application
    ... I am trying to execute some applications from within vbscript using ... The thing is that the same script that fails to start aida32 ... So it definitively seems to be related to Windows XP ...
    (microsoft.public.windowsxp.help_and_support)

Loading