Visit Our UNIX and Linux User Community


Not executable


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Not executable
# 1  
Old 09-21-2009
Not executable

I want to check whether a file is not executable or not?

means instead of knowing whether a file is executable or not:

if [ -x file ]
...........

I want to check:

if file is not executable
# 2  
Old 09-21-2009
if [ ! -x file ]

Previous Thread | Next Thread
Test Your Knowledge in Computers #2
Difficulty: Easy
Unix was invented by Steve Jobs of Apple Computer.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

who renamed my executable

Hi All, I connected via rlogin in testing environment (ksh ) and placed an executable with -rwxr-xr-x permission. eg: from my own unix box used : rlogin host -l user But the exe was renamed by somebody. since it's only renaming none of the access time , modification time etc is altered.... (2 Replies)
Discussion started by: blackcat
2 Replies

2. UNIX and Linux Applications

Tar executable

Hi, I need to download tar.exe to archive the files before doing gzip...... I downloaded the executables from Browse GnuWin Files on SourceForge.net but my concern is whether this particular exe is safe to use? is it a licensed version? Have anybody downloaded from this site? Need ur advice. (2 Replies)
Discussion started by: Codesearcher
2 Replies

3. Programming

Executable file in C

Hi all, I have modified a C file and executed it. While executing the executable file for that C file, it shows is cannot be printed. I have given isprint() to test it. When I copy the old executable file and execute it it shows it can be printed. Then I retain the C code back and executed it... (1 Reply)
Discussion started by: sivakumar.rj
1 Replies

4. UNIX for Dummies Questions & Answers

executable files

hello. My question, basically is: what is the definition of unix/linux exec files, or what makes a file executable? More specifically, must a unix source file that was compiled using gcc have exec permissions in order to be considered executable? Is it right to say that a unix/linux exec file... (1 Reply)
Discussion started by: nadavkri
1 Replies

5. Shell Programming and Scripting

executable file

Hi, I want to know that how can i read the content of a .exe file?? Thanks (1 Reply)
Discussion started by: ss_ss
1 Replies

6. Shell Programming and Scripting

starting an executable..

I need a perl script that needs to start an executable in a different shell so that I can use this to run more commands from my script. This is what I have: my $USER = "my_user_name"; mu $HOST = "hostname"; my $ssh = 'ssh $USER@'."$HOST"; my $cmd = "cd $EXE_DIR && sudo $EXE $EXE_PARAMETERS";... (0 Replies)
Discussion started by: looza
0 Replies

7. Shell Programming and Scripting

Executable file

Hi everybody: I have strange problem. I have compiled a source code and created an executable file. This file I can use it into my PC, but when I copy this executable to my laptop this one doesn't work and the system tell me: bash: ./sbdart_unix: cannot execute binary file Somebody can... (3 Replies)
Discussion started by: tonet
3 Replies

8. UNIX for Dummies Questions & Answers

Executable files

This question always confuses me :- Suppose I write a program and compile it on a machine with operating system A and processor B will the exe file run on a machine with operating system A2 but processor B operating system A but processor B2 operating system A2 and processor B2........ ... (9 Replies)
Discussion started by: nervous
9 Replies

9. UNIX for Dummies Questions & Answers

creating executable for every C file

hello Folks, once we compile any C code on Linux, we run the code using "./a.out".. but can we have an executable for every program so that we can run the code directly without compiling the code every time. just run the executable and get the output! Thanks! (7 Replies)
Discussion started by: compbug
7 Replies

10. UNIX for Dummies Questions & Answers

TK executable?

hi All, Can any one help me to find out a solution for creating an Executable file for a TK widget script. Is there any command line option for it. I am working in HP Unix workstation. Regards, Anent (3 Replies)
Discussion started by: anent
3 Replies

Featured Tech Videos