Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
win32 /
bin /
Delete
Unzip
Name
Size
Permission
Date
Action
exetype.pl
2.67
KB
-r--r--r--
2014-12-27 11:49
perlglob.pl
1.14
KB
-r--r--r--
2014-12-27 11:49
pl2bat.pl
12.49
KB
-r--r--r--
2014-12-27 11:49
runperl.pl
1.9
KB
-r--r--r--
2014-12-27 11:49
search.pl
53.25
KB
-r--r--r--
2014-12-27 11:49
Save
Rename
#!perl -w $0 =~ s|\.bat||i; unless (-f $0) { $0 =~ s|.*[/\\]||; for (".", split ';', $ENV{PATH}) { $_ = "." if $_ eq ""; $0 = "$_/$0" , goto doit if -f "$_/$0"; } die "'$0' not found.\n"; } doit: exec "perl", "-x", $0, @ARGV; die "Failed to exec '$0': $!"; __END__ =head1 NAME runperl.bat - "universal" batch file to run perl scripts =head1 SYNOPSIS C:\> copy runperl.bat foo.bat C:\> foo [..runs the perl script 'foo'..] C:\> foo.bat [..runs the perl script 'foo'..] =head1 DESCRIPTION This file can be copied to any file name ending in the ".bat" suffix. When executed on a DOS-like operating system, it will invoke the perl script of the same name, but without the ".bat" suffix. It will look for the script in the same directory as itself, and then in the current directory, and then search the directories in your PATH. It relies on the C<exec()> operator, so you will need to make sure that works in your perl. This method of invoking perl scripts has some advantages over batch-file wrappers like C<pl2bat.bat>: it avoids duplication of all the code; it ensures C<$0> contains the same name as the executing file, without any egregious ".bat" suffix; it allows you to separate your perl scripts from the wrapper used to run them; since the wrapper is generic, you can use symbolic links to simply link to C<runperl.bat>, if you are serving your files on a filesystem that supports that. On the other hand, if the batch file is invoked with the ".bat" suffix, it does an extra C<exec()>. This may be a performance issue. You can avoid this by running it without specifying the ".bat" suffix. Perl is invoked with the -x flag, so the script must contain a C<#!perl> line. Any flags found on that line will be honored. =head1 BUGS Perl is invoked with the -S flag, so it will search the PATH to find the script. This may have undesirable effects. =head1 SEE ALSO perl, perlwin32, pl2bat.bat =cut