Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to make a .exe file executable in Linux? Post 303026187 by Scott on Wednesday 21st of November 2018 12:35:24 PM
Old 11-21-2018
Exactly which operating system did you download the file to?

A file having a .exe extension implies (but only implies) that it's a Windows file, not a Linux one. You won't be able to natively run that on a Linux system.

If you're on Linux, what does
Code:
file ukbmd5.exe

show you?

Where did "ukbmd5.enc" come from in all of this? Apart from the UK register for births, marriages and deaths, I really don't know what UKBMD is Smilie

Making any file "executable" on Linux is easy (e.g. with the chmod command), but that doesn't mean it can be executed.
 

10 More Discussions You Might Find Interesting

1. Programming

Unable to make a debuggable exe in HP 11i

Hi Guys, I need a help from you all. Basically I am working on 64 HP-UX 11i. I am building an exe from some 2gb of C codes. Now my problem is that I am unable to make the exe a debuggable one. So whenever I remove the -s fla from the make file, during building, the error message "Out of memory"... (1 Reply)
Discussion started by: hrishiraj_b
1 Replies

2. Solaris

How to make a script executable by all users?

I have a script in my home direcroty which upon execution gives the essential system information like memory,cpu etc and is currently owned by root:root. Now I want to see that every non root user will run this file and grab the reqired system info. I know this is some thing associated with chown... (2 Replies)
Discussion started by: chrs0302
2 Replies

3. Shell Programming and Scripting

Need to call an Executable (.exe) using shell

Hi all , I need to call an executable (.exe) using shell script. Actual need is i need to call that shell script and do an export of some tables is there any way . the executable is datamover Please let me know if there are any option !! (2 Replies)
Discussion started by: raghav1982
2 Replies

4. Shell Programming and Scripting

run and make an executable file

as i said before i'm a beginner in shell programming and i have two questions: how to run an executable file in shell scripts like for example let's say the file called "prog.exe", what's the shell command to run this file? also how can i make the shell file an executable file (if it is... (5 Replies)
Discussion started by: _-_shadow_-_
5 Replies

5. Shell Programming and Scripting

Unable to make script executable

Hello everybody, I'm unable to make my shell script an executable file. The details are as follows: PATH includes my $HOME/bin i.e. /rchome/rc1/bin HOME directory is /rchome/rc1 script name is prep_mig.sh permissions set are 755 It's executing if I give below command sh prep_mig.sh but... (4 Replies)
Discussion started by: jitu.keshwani
4 Replies

6. Shell Programming and Scripting

Make multiple awk files into an executable

Hello everyone, The following are my input files. The following are my sequence of steps. Can someone please let me know about how to make these bunch of steps into a single script so that I start the script with 1.txt and 2.txt, after execution gives me the final... (11 Replies)
Discussion started by: jacobs.smith
11 Replies

7. UNIX for Dummies Questions & Answers

What are the executable file formats in Solaris and Linux?

we all knew that .exe files are the executable file formats in windows....... Similarly, what are the executable file formats in solaris and linux ........ please tell me:D Thanks in Advance. (2 Replies)
Discussion started by: vamshigvk475
2 Replies

8. Shell Programming and Scripting

Get the File name of perl executable in Linux

Hi All, I just want to know how to get the executable name of the perl script as i know "$0" will give me the script name but i want to know the executable name which i got it from the script using pp command. Regards Raj (1 Reply)
Discussion started by: kar_333
1 Replies

9. UNIX for Beginners Questions & Answers

How to make a dynamically linked executable file?

So I have a file called queens.cc and I need to do the following: Compile and make a .o file while specifying that the compiler is to search /student/214/include for system include files. Use g++, link and load .o file to make a dynamically linked executable file called queens and to also... (1 Reply)
Discussion started by: steezuschrist96
1 Replies

10. Shell Programming and Scripting

Bash script make itself executable

Is there a way to make this make itself executable? Thanks. :-) cat > somescript.sh << \EOF #!/bin/bash block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Block count:/ {print $NF}') reserved_block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Reserved block count:/ {print $NF}') perl -e... (4 Replies)
Discussion started by: drew77
4 Replies
FCHMODAT(2)						     Linux Programmer's Manual						       FCHMODAT(2)

NAME
fchmodat - change permissions of a file relative to a directory file descriptor SYNOPSIS
#include <fcntl.h> /* Definition of AT_* constants */ #include <sys/stat.h> int fchmodat(int dirfd, const char *pathname, mode_t mode, int flags); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): fchmodat(): Since glibc 2.10: _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L Before glibc 2.10: _ATFILE_SOURCE DESCRIPTION
The fchmodat() system call operates in exactly the same way as chmod(2), except for the differences described in this manual page. If the pathname given in pathname is relative, then it is interpreted relative to the directory referred to by the file descriptor dirfd (rather than relative to the current working directory of the calling process, as is done by chmod(2) for a relative pathname). If pathname is relative and dirfd is the special value AT_FDCWD, then pathname is interpreted relative to the current working directory of the calling process (like chmod(2)). If pathname is absolute, then dirfd is ignored. flags can either be 0, or include the following flag: AT_SYMLINK_NOFOLLOW If pathname is a symbolic link, do not dereference it: instead operate on the link itself. This flag is not currently implemented. RETURN VALUE
On success, fchmodat() returns 0. On error, -1 is returned and errno is set to indicate the error. ERRORS
The same errors that occur for chmod(2) can also occur for fchmodat(). The following additional errors can occur for fchmodat(): EBADF dirfd is not a valid file descriptor. EINVAL Invalid flag specified in flags. ENOTDIR pathname is relative and dirfd is a file descriptor referring to a file other than a directory. ENOTSUP flags specified AT_SYMLINK_NOFOLLOW, which is not supported. VERSIONS
fchmodat() was added to Linux in kernel 2.6.16; library support was added to glibc in version 2.4. CONFORMING TO
POSIX.1-2008. NOTES
See openat(2) for an explanation of the need for fchmodat(). The GNU C library wrapper function implements the POSIX-specified interface described in this page. This interface differs from the under- lying Linux system call, which does not have a flags argument. SEE ALSO
chmod(2), openat(2), path_resolution(7), symlink(7) COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2012-05-22 FCHMODAT(2)
All times are GMT -4. The time now is 10:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy