Re: regarding unix specific commands



On 2006-01-01, Unruh wrote:
> "fidlee" <fidlee@xxxxxxxxx> writes:
>
>>root@(none):/tmp/tmptmp# gcc -o test pro1.c
>>root@(none):/tmp/tmptmp# test
>>root@(none):/tmp/tmptmp#
>
> That is ./test, not just test. test is another command.
> And you will have to do
> chmod +x test
> first as well.

Probably not. gcc sets the execute bits on the resulting
executable.

--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
.



Relevant Pages

  • Re: another newbie
    ... around, writing simple shell scripts, etc. ... sat64% chmod a+x ./script.pl ... Then change its file mode to allow it to execute with the command: ...
    (freebsd-questions)
  • Re: Running a command in Terminal...
    ... chmod +x mytestfile ... "chmod -x" removed permissions for all users to execute ... The chmod command uses this syntax: ...
    (comp.sys.mac.system)
  • CHMOD
    ... I execute the command: ... chmod 715 -R *.pl ... Jamie ...
    (comp.security.ssh)
  • Re: retrieve list of currently running user applications in Java
    ... I am on a Windows machine. ... There is a command "tasklist" you can execute then. ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Print in PythonWin
    ... In the PythonWin's interactive window, ... why sometimes I need type the command two times to make it work? ... I execute "print testList" two times to make it work. ... Prev by Date: ...
    (comp.lang.python)