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
BCOMPILER_WRITE_EXE_FOOTER(3)						 1					     BCOMPILER_WRITE_EXE_FOOTER(3)

bcompiler_write_exe_footer - Writes the start pos, and sig to the end of a exe type file

SYNOPSIS
bool bcompiler_write_exe_footer (resource $filehandle, int $startpos) DESCRIPTION
An EXE (or self executable) file consists of 3 parts: o The stub (executable code, e.g. a compiled C program) that loads PHP interpreter, bcompiler extension, stored Bytecodes and initiates a call for the specified function (e.g. main) or class method (e.g. main::main) oThe Bytecodes (uncompressed only for the moment) oThe bcompiler EXE footer To obtain a suitable stub you can compile php_embed-based stub phpe.c located in the examples/embed directory on bcompiler's CVS. PARAMETERS
o $filehandle - A file handle as returned by fopen(3). o $startpos - The file position at which the Bytecodes start, and can be obtained using ftell(3). RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 bcompiler_write_exe_footer(3) example <?php /* creating the output file (example.exe) */ $fh = fopen("example.exe", "w"); /* 1) writing a stub (phpe.exe) */ $size = filesize("phpe.exe"); $fr = fopen("phpe.exe", "r"); fwrite($fh, fread($fr, $size), $size); $startpos = ftell($fh); /* 2) writing bytecodes */ bcompiler_write_header($fh); bcompiler_write_class($fh, "myclass"); bcompiler_write_function($fh, "main"); bcompiler_write_footer($fh); /* 3) writing EXE footer */ bcompiler_write_exe_footer($fh, $startpos); /* closing the output file */ fclose($fh); ?> NOTES
Warning This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. SEE ALSO
bcompiler_write_header(3), bcompiler_write_class(3), bcompiler_write_footer(3). PHP Documentation Group BCOMPILER_WRITE_EXE_FOOTER(3)
All times are GMT -4. The time now is 07:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy