Sometimes you need to search and replace strings over multiple files. This can easily be done using perl. I found this tip from www.liamdelahunty.com/tips
Read the rest of this entry
How to Search and Replace over Multiple Files in Linux
Author: adminJan 13
There was an error when you login Cpanel
Author: adminDec 19
There was an error when you login Cpanel
Can’t locate GDBM_File.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/cpanel/perl /usr/local/cpanel/Cpanel/CPAN/overload/__Digest /usr/local/cpanel/build-tools/stubs /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/Locale/Utils.pm line 14.
Cpanel::Locale::Utils::BEGIN() called at GDBM_File.pm line 14
eval {…} called at GDBM_File.pm line 14
require Cpanel/Locale/Utils.pm called at /usr/local/cpanel/Cpanel/Locale.pm line 15
Cpanel::Locale::BEGIN() called at GDBM_File.pm line 14
eval {…} called at GDBM_File.pm line 14
require Cpanel/Locale.pm called at /usr/local/cpanel/Cpanel/StatsBar.pm line 11
Cpanel::StatsBar::BEGIN() called at GDBM_File.pm line 14
eval {…} called at GDBM_File.pm line 14
require Cpanel/StatsBar.pm called at (eval 74) line 1
main::BEGIN() called at GDBM_File.pm line 14
eval {…} called at GDBM_File.pm line 14
eval ‘use Cpanel::StatsBar ();’ called at cpanel.pl line 4974
main::modloader(‘StatsBar’) called at /usr/local/cpanel/Cpanel/LoadModule.pm line 10
Cpanel::LoadModule::loadmodule(‘StatsBar’) called at cpanel.pl line 4982
main::api2_preexec(‘StatsBar’, ‘rowcounter’) called at cpanel.pl line 1451
main::cpexectag(‘<?cp StatsBar::rowcounter(%,rowtype) rowcounter=mainstats ?>’) called at cpanel.pl line 4808
main::dotag(undef) called at cpanel.pl line 4691
main::cpanel_parseblock(‘SCALAR(0xa93311c)’) called at cpanel.pl line 4643
main::cpanel_parse(‘GLOB(0xa514874)’) called at cpanel.pl line 2878
main::doinclude(‘/usr/local/cpanel/base/frontend/x3/branding//index.html’, 0, 1) called at /usr/local/cpanel/Cpanel/Branding.pm line 95
Cpanel::Branding::Branding_include(‘index.html’) called at (eval 7) line 1
eval ‘Cpanel::Branding::Branding_include(@{$argref});’ called at cpanel.pl line 1660
main::exectag(‘<cpanel Branding=”include(index.html)”>’) called at cpanel.pl line 4808
main::dotag(undef) called at cpanel.pl line 4691
main::cpanel_parseblock(‘SCALAR(0x91a0700)’) called at cpanel.pl line 4643
main::cpanel_parse(‘GLOB(0xa4d4110)’) called at cpanel.pl line 1318
because there are some errors in PERL
resolve
/scripts/checkperlmodules
/scripts/perlinstaller --force Encode
/scripts/upcp --force
Lighttpd Setup CGI-BIG CGI For Perl Programs
Author: adminDec 2
httpd has mod_cgi module that allows you running Perl and other server side programs via cgi-bin directory. The Common Gateway Interface (CGI) is a standard protocol for interfacing external application software with an information server.
Read the rest of this entry
Bash Shell: Replace a string with another string in all files using sed and perl -pie
Author: adminAug 27
Q. How do I replace a string with another string in all files? For example, ~/foo directory has 100s of text file and I’d like to find out xyz string and replace with abc. I’d like to use sed or any other tool to replace all occurrence of the word.
A.sed command is designed for this kind of work i.e. replace strings.