Sponsored Content
Top Forums Shell Programming and Scripting run and make an executable file Post 302293534 by ShawnMilo on Tuesday 3rd of March 2009 08:41:11 AM
Old 03-03-2009
Quote:
Originally Posted by _-_shadow_-_
well i want to be file.exe because i have linux and windows OS and i need the program to be executed in both also i want it to work forever and using SFU in windows is not that good

also i forget to mention in my question the path to the prog.exe is:

id address/path/to/prog.exe

i mean the program is not on the same computer it's on another computer connected via lan network and nfs
That will not work. What kind of file is it? If it's a Perl or Python script, it's possible (depending on how it's written and what it does) to run it without changes on Unix and Windows, but you'd need to use the .pl or .py extension. If it's a compiled program written in, for example, C++, you'd need to compile it separately for Unix and Windows.

In any case, calling something a .exe is meaningless -- it doesn't actually do anything. If it's actually a .exe file compiled for Windows, then it lets Windows know that it's an executable file, but the actual format of the file has to also match what Windows expects a .exe to look like.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do I make a cgi script World-executable

I'm trying to set up a form mail script on a website that when Submitted, a cgi script is executed and a perl translator (located in a secured and inaccessible folder) translates the script. After speaking to my hosting provider, I was told to "Telnet into the system and make the script... (2 Replies)
Discussion started by: tylerl
2 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

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

4. Shell Programming and Scripting

Automatically select records from several files and then run a C executable file inside the script

Dear list its my first post and i would like to greet everyone What i would like to do is select records 7 and 11 from each files in a folder then run an executable inside the script for the selected parameters. The file format is something like this 7 100 200 7 100 250 7 100 300 ... (1 Reply)
Discussion started by: Gtolis
1 Replies

5. Shell Programming and Scripting

How to run my make file in Kornshell

Hello Forum Memebers, I have file with exension of .shsrc ie(startA.shsrc) .while iam trying to make ,its getting Ksh not found. file:startA.shsrc error:KSH not found the content about shell declaration in the korn shell is below. ... (3 Replies)
Discussion started by: rajkumar_g
3 Replies

6. Shell Programming and Scripting

Make script that run with argument if not run from configuration file argument

Hello, Is there any method thorugh which script can take argument if pass otherwise if argument doesn't pass then it takes the argument from the configuration file i.e I am workiing on a script which will run through crontab and the script will chekout the code ,zip and copy to the... (3 Replies)
Discussion started by: rohit22hamirpur
3 Replies

7. 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

8. 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

9. 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

10. UNIX for Beginners Questions & Answers

How to make a .exe file executable in Linux?

Dear all, I download a .exe file in my current folder called: ukbmd5.exe. I was told to run the command below: ukbmd5 ukb25278.enc to verify the integrity of the files that you have downloaded and the program ukbmd5 has been made available to assist with decrpying ukb25278.enc. while when I run... (1 Reply)
Discussion started by: forevertl
1 Replies
ExtUtils::MM_Win32(3)					User Contributed Perl Documentation				     ExtUtils::MM_Win32(3)

NAME
ExtUtils::MM_Win32 - methods to override UN*X behaviour in ExtUtils::MakeMaker SYNOPSIS
use ExtUtils::MM_Win32; # Done internally by ExtUtils::MakeMaker if needed DESCRIPTION
See ExtUtils::MM_Unix for a documentation of the methods provided there. This package overrides the implementation of these methods, not the semantics. Overridden methods dlsyms replace_manpage_separator Changes the path separator with . maybe_command Since Windows has nothing as simple as an executable bit, we check the file extension. The PATHEXT env variable will be used to get a list of extensions that might indicate a command, otherwise .com, .exe, .bat and .cmd will be used by default. init_DIRFILESEP Using for Windows. init_tools Override some of the slower, portable commands with Windows specific ones. init_others Override the default link and compile tools. LDLOADLIBS's default is changed to $Config{libs}. Adjustments are made for Borland's quirks needing -L to come first. init_platform Add MM_Win32_VERSION. platform_constants constants Add MAXLINELENGTH for dmake before all the constants are output. special_targets Add .USESHELL target for dmake. static_lib Changes how to run the linker. The rest is duplicate code from MM_Unix. Should move the linker code to its own method. dynamic_lib Complicated stuff for Win32 that I don't understand. :( extra_clean_files Clean out some extra dll.{base,exp} files which might be generated by gcc. Otherwise, take out all *.pdb files. init_linker perl_script Checks for the perl program under several common perl extensions. xs_o This target is stubbed out. Not sure why. pasthru All we send is -nologo to nmake to prevent it from printing its damned banner. arch_check (override) Normalize all arguments for consistency of comparison. oneliner These are based on what command.com does on Win98. They may be wrong for other Windows shells, I don't know. cd dmake can handle Unix style cd'ing but nmake (at least 1.5) cannot. It wants: cd dir1dir2 command another_command cd .... max_exec_len nmake 1.50 limits command length to 2048 characters. os_flavor Windows is Win32. cflags Defines the PERLDLL symbol if we are configured for static building since all code destined for the perl5xx.dll must be compiled with the PERLDLL symbol defined. perl v5.16.3 2013-06-14 ExtUtils::MM_Win32(3)
All times are GMT -4. The time now is 06:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy