Operating System - HP-UX
1752777 Members
6028 Online
108789 Solutions
New Discussion юеВ

/opt/perl/bin/perl size became zero

 
sekar sundaram
Honored Contributor

/opt/perl/bin/perl size became zero

Hi,

just yesterday, looks like someone did a simple mistake and somehow /opt/perl/bin/perl filesize became zero.

root@fair> ll /opt/perl/bin/perl
-r-xr-xr-x 1 bin bin 0 Sep 29 04:24 /opt/perl/bin/perl

any idea where is the perl log file available?
now, only we have to install perl again or any other methods available?
7 REPLIES 7
H.Merijn Brand (procura
Honored Contributor

Re: /opt/perl/bin/perl size became zero

I'd say get /opt/perl back from your backup

Otherwise you indeed have to (force) re-install it. To do so, you might have to uninstall it first.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
sekar sundaram
Honored Contributor

Re: /opt/perl/bin/perl size became zero

thanks for the reply...
any idea how to find out what happened?
Hakki Aydin Ucar
Honored Contributor

Re: /opt/perl/bin/perl size became zero

Hi,
it is not related with Perl error while Perl running or initializing, but your issue's root cause probably from system ,so refer to system logs, and root mail.
Pete Randall
Outstanding Contributor

Re: /opt/perl/bin/perl size became zero

My guess would be that someone logged in as root did something like

> perl

or

> /opt/perl/bin/perl

but that type of thing will not appear in any log file. That's why we run backups!


Pete

Pete
Dennis Handly
Acclaimed Contributor

Re: /opt/perl/bin/perl size became zero

>any idea how to find out what happened?

Only if you had auditing turned on.
But you know of course, root did it. You could look at /var/adm/sulog or run last(1) to see who was root at 04:24.
Dave Johnson_1
Super Advisor

Re: /opt/perl/bin/perl size became zero

If you use a history file, perhaps you can look back through that to see some command like the ones suggesting some output was redirected to perl instead of piping to it.

Good luck,
-Dave
Jim Walls
Trusted Contributor

Re: /opt/perl/bin/perl size became zero

It might also be in some faulty script... in which case you may have the same problem again if that script is run! In which case, after restoring /opt/perl from backup (or by re-installing the package) you might want to take a local backup of /opt/perl, using tar, until you have tracked down the root cause.