10 More Discussions You Might Find Interesting
1. Programming
hello everyone,
could somebody tell me where can i find some good exercises on signals,processes and threads? actually i need to find some solved exercises in system programming.
tnx (4 Replies)
Discussion started by: micy
4 Replies
2. Programming
All,
I have never comipled C code before and would appricaite if anyone could tell me how to build a .exe from a C program.
Thanks in advance. (5 Replies)
Discussion started by: thana
5 Replies
3. Programming
Is it possible to extract c program,from its executable file(.exe)?
i mean we dont have program but its exe file only which runs,can we retrieve the program?
if yes how?
if no why? (2 Replies)
Discussion started by: unknown9
2 Replies
4. Programming
how we can run the exe when the system starts. (2 Replies)
Discussion started by: phani_sree
2 Replies
5. UNIX for Dummies Questions & Answers
how to open .exe file in freebsd system.My work is to run a growth.exe(created by growth.c turbo c 3.0 file).how to run that exe file in freebsd system?Thanks in advance help me (8 Replies)
Discussion started by: kumarangopi
8 Replies
6. Programming
Hi
Is it possible to find all the information like its 'ProductName', 'ProductVersion, ''InternalName' , 'FileVersion' etc about a windows excutable file,( i.e. *.exe file ) on Unix/Linux.
thanks
sumsin (6 Replies)
Discussion started by: sumsin
6 Replies
7. Linux
Hai,
is there any way to run an .exe file in unix environment . i have read that WINE HQ supports this concept but its very inconsistent and upto the user risk . but i tried WINE but iam not able to configure it can any one help me in this matter
Regards
Sanju (1 Reply)
Discussion started by: sanjustudy
1 Replies
8. SuSE
does exe files works withe suse
am new n linux system
and were can i find msn 4 linux (2 Replies)
Discussion started by: abdulla
2 Replies
9. Programming
At time of installation I have to open the resource. and i have to insert a string serial number in the exe.
please provide me code to edit the exe (in solaris) to insert a serial number which can be used by exe at run time. (6 Replies)
Discussion started by: ssahu
6 Replies
10. UNIX for Advanced & Expert Users
Hello all,
how to run windows .exe file in Linux
and vice the versa (3 Replies)
Discussion started by: rajashekaran
3 Replies
LEARN ABOUT MOJAVE
file::which
File::Which(3) User Contributed Perl Documentation File::Which(3)
NAME
File::Which - Portable implementation of the `which' utility
SYNOPSIS
use File::Which; # exports which()
use File::Which qw(which where); # exports which() and where()
my $exe_path = which('perldoc');
my @paths = where('perl');
- Or -
my @paths = which('perl'); # an array forces search for all of them
DESCRIPTION
"File::Which" was created to be able to get the paths to executable programs on systems under which the `which' program wasn't implemented
in the shell.
"File::Which" searches the directories of the user's "PATH" (as returned by "File::Spec->path()"), looking for executable files having the
name specified as a parameter to "which()". Under Win32 systems, which do not have a notion of directly executable files, but uses special
extensions such as ".exe" and ".bat" to identify them, "File::Which" takes extra steps to assure that you will find the correct file (so
for example, you might be searching for "perl", it'll try perl.exe, perl.bat, etc.)
Steps Used on Win32, DOS, OS2 and VMS
Windows NT
Windows NT has a special environment variable called "PATHEXT", which is used by the shell to look for executable files. Usually, it will
contain a list in the form ".EXE;.BAT;.COM;.JS;.VBS" etc. If "File::Which" finds such an environment variable, it parses the list and uses
it as the different extensions.
Windows 9x and other ancient Win/DOS/OS2
This set of operating systems don't have the "PATHEXT" variable, and usually you will find executable files there with the extensions
".exe", ".bat" and (less likely) ".com". "File::Which" uses this hardcoded list if it's running under Win32 but does not find a "PATHEXT"
variable.
VMS
Same case as Windows 9x: uses ".exe" and ".com" (in that order).
Functions
which($short_exe_name)
Exported by default.
$short_exe_name is the name used in the shell to call the program (for example, "perl").
If it finds an executable with the name you specified, "which()" will return the absolute path leading to this executable (for example,
/usr/bin/perl or C:PerlBinperl.exe).
If it does not find the executable, it returns "undef".
If "which()" is called in list context, it will return all the matches.
where($short_exe_name)
Not exported by default.
Same as "which($short_exe_name)" in array context. Same as the `where' utility, will return an array containing all the path names matching
$short_exe_name.
BUGS AND CAVEATS
Not tested on VMS or MacOS, although there is platform specific code for those. Anyone who haves a second would be very kind to send me a
report of how it went.
File::Spec adds the current directory to the front of PATH if on Win32, VMS or MacOS. I have no knowledge of those so don't know if the
current directory is searced first or not. Could someone please tell me?
SUPPORT
Bugs should be reported via the CPAN bug tracker at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-Which>
For other issues, contact the maintainer.
AUTHOR
Adam Kennedy <adamk@cpan.org>
Per Einar Ellefsen <pereinar@cpan.org>
Originated in modperl-2.0/lib/Apache/Build.pm. Changed for use in DocSet (for the mod_perl site) and Win32-awareness by me, with slight
modifications by Stas Bekman, then extracted to create "File::Which".
Version 0.04 had some significant platform-related changes, taken from the Perl Power Tools `which' implementation by Abigail with
enhancements from Peter Prymmer. See <http://www.perl.com/language/ppt/src/which/index.html> for more information.
COPYRIGHT
Copyright 2002 Per Einar Ellefsen.
Some parts copyright 2009 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
File::Spec, which(1), Perl Power Tools: <http://www.perl.com/language/ppt/index.html>.
perl v5.18.2 2009-09-26 File::Which(3)