NETWORK PRESENCE ABOUT SERVICES PRODUCTS TRAINING CONTACT US SEARCH SUPPORT
 


Search
display results
words begin  exact words  any words part 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FW-1] fw: error while loading shared libraries: libfw1.so: cannot open shared object file



Is your LD_LIBRARY_PATH defined in your cronjob entry?


From: Kamalan Govender <[email protected]>
Reply-To: Mailing list for discussion of Firewall-1
<[email protected]>
To: [email protected]
Subject: [FW-1] fw: error while loading shared libraries: libfw1.so:
      cannot open              shared object file
Date: Tue, 19 Feb 2002 08:45:43 +0200
MIME-Version: 1.0
Received: from [207.46.181.109] by hotmail.com (3.2) with ESMTP id
MHotMailBE3B48FB005B400421C1CF2EB56D053013; Mon, 18 Feb 2002 23:25:57 -0800
Received: from beethoven.us.checkpoint.com ([206.184.151.194]) by
cpimssmtpa05.msn.com with Microsoft SMTPSVC(5.0.2195.4617); Mon, 18 Feb
2002 23:27:44 -0800
Received: from beethoven (beethoven [206.184.151.194])by
beethoven.us.checkpoint.com (8.12.1/8.12.1/CPbeethoven/1.4.1) with ESMTP id
g1IKZAZN012647;Mon, 18 Feb 2002 22:52:17 -0800 (PST)
Received: from LISTS.US.CHECKPOINT.COM by LISTS.US.CHECKPOINT.COM
(LISTSERV-TCP/IP release 1.8d) with spool id 2626331 for
[email protected]; Mon, 18 Feb 2002 22:52:15
 -0800
Received: from mail1.wits.ac.za (mail1.wits.ac.za [146.141.15.210]) by
    beethoven.us.checkpoint.com (8.12.1/8.12.1/CPbeethoven/1.4.1) with
     ESMTP id g1J6e7hw014950 for
<[email protected]>; Mon, 18 Feb 2002
22:40:08 -0800 (PST)
Received: from calisto.wits.ac.za ([146.141.15.55]) by mail1.wits.ac.za
with          esmtp (Exim 3.22 #1) id 16d7dj-00032i-00 for
[email protected]; Tue, 19 Feb 2002
08:36:51 -0200
Received: from saturnknight (saturn-knight.wits.ac.za [146.141.15.231]) by
        calisto.wits.ac.za; Tue, 19 Feb 2002 08:31:19 +0200
From [email protected] Mon, 18 Feb 2002
23:26:33 -0800
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2627
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
Message-ID:  <008801c1b911$0d654dd0$e70f8d92@saturnknight>
Sender: Mailing list for discussion of Firewall-1
<[email protected]>
In-Reply-To:  <[email protected]>
Return-Path: [email protected]
X-OriginalArrivalTime: 19 Feb 2002 07:27:44.0908 (UTC)
FILETIME=[EC5DE4C0:01C1B916]



Hi





I am having some difficulty getting the cron to do firewall log
switching.

I am using NG on Linux 7.0





When I run the script from the command line it works fine, but when you
put it in the cron, then it produces errors. It complains about



"fw: error while loading shared libraries: libfw1.so: cannot open shared
object file:"





Any help is appreciated.







Thanks







_____________________________________________



Kamalan Govender

Computer and Network Services

University of the Witwatersrand

Tel +27 11 717 1671

Fax +27 11 339 1225













CRONTAB

From the crontab I call a script to switch the logs

# DO NOT EDIT THIS FILE - edit the master and reinstall.

# (/tmp/crontab.16237 installed on Fri Feb 15 18:25:44 2002)

# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp
$)

58 23 * * * /home/admin/scripts/fwlogswitch







fwlogswitch

The "fwlogswitch" script looks like this:

cd /

DAY=`date +%d`

MONTH=`date +%m`

YEAR=`date +%Y`

HOUR=`date +%H`

MINUTE=`date +%M`

SECOND=`date +%S`

FILENAME=$YEAR-$MONTH-$DAY

FWLOGDIR=/var/admin/log/

FWDIR=/opt/CPfw1-50/

EXPORTFILENAME=$YEAR-$MONTH-$DAY"_"$HOUR-$MINUTE-$SECOND

PATH=$PATH:$FWDIR/bin

MANPATH=$MANPATH:$FWDIR/man

export PATH MANPATH FWDIR











echo SWITCHING FIREWALL LOGS

fw logswitch

sleep 30



cd /opt/CPfw1-50/log

FILE1=$FILENAME*.log

FILE2=$FILENAME*.logaccount_ptr

FILE3=$FILENAME*.loginitial_ptr

FILE4=$FILENAME*.logptr



echo THE FOLLOWING FILES ARE PRODUCED BY LOGSWITCH

echo FILE1 $FILE1

echo FILE2 $FILE2

echo FILE3 $FILE3

echo FILE4 $FILE4



echo MOVING FILES TO /VAR/ADMIN/LOG

mv $FILE1 $FWLOGDIR/.

mv $FILE2 $FWLOGDIR/.

mv $FILE3 $FWLOGDIR/.

mv $FILE4 $FWLOGDIR/.



cd /var/admin/log

echo EXPORTING BINARY FILES TO ASCII

fw logexport -n $FILE1 > $EXPORTFILENAME.export.log

fw logexport -n $FILE2 > $EXPORTFILENAME.export.logaccount_ptr

fw logexport -n $FILE3 > $EXPORTFILENAME.export.loginitial_ptr

fw logexport -n $FILE4 > $EXPORTFILENAME.export.logptr



echo COMPRESSING LOG FILES

compress $EXPORTFILENAME.export.log

compress $EXPORTFILENAME.export.logaccount_ptr

compress $EXPORTFILENAME.export.loginitial_ptr

compress $EXPORTFILENAME.export.logptr



echo REMOVING BINARY FILES

rm -rf $FILE1

rm -rf $FILE2

rm -rf $FILE3

rm -rf $FILE4



OUTPUT WHEN SCRIPT RUN FROM COMMAND LINE

SWITCHING FIREWALL LOGS

Trying to switch logfile to 2002-02-17_141224.log



Log File was switched to : 2002-02-17_141224.log





THE FOLLOWING FILES ARE PRODUCED BY LOGSWITCH

FILE1 2002-02-17_141224.log

FILE2 2002-02-17_141224.logaccount_ptr

FILE3 2002-02-17_141224.loginitial_ptr

FILE4 2002-02-17_141224.logptr

MOVING FILES TO /VAR/ADMIN/LOG

EXPORTING BINARY FILES TO ASCII

Starting pass 1 of the log file.

Starting pass 2 of the log file..

Starting pass 1 of the log file..

Starting pass 2 of the log file..

Starting pass 1 of the log file..

Starting pass 2 of the log file..

Starting pass 1 of the log file..

Starting pass 2 of the log file..

COMPRESSING LOG FILESe processed.

REMOVING BINARY FILES



OUTPUT FROM CRON SCRIPT

SWITCHING FIREWALL LOGS

fw: error while loading shared libraries: libfw1.so: cannot open shared
bject file: No such file or directory THE FOLLOWING FILES ARE PRODUCED
BY LOGSWITCH FILE1 2002-02-16*.log FILE2 2002-02-16*.logaccount_ptr
FILE3 2002-02-16*.loginitial_ptr FILE4 2002-02-16*.logptr MOVING FILES
TO /VAR/ADMIN/LOG

mv: cannot stat `2002-02-16*.log': No such file or directory

mv: cannot stat `2002-02-16*.logaccount_ptr': No such file or directory

mv: cannot stat `2002-02-16*.loginitial_ptr': No such file or directory

mv: cannot stat `2002-02-16*.logptr': No such file or directory
EXPORTING BINARY FILES TO ASCII

fw: error while loading shared libraries: libfw1.so: cannot open shared
object file: No such file or directory



fw: error while loading shared libraries: libfw1.so: cannot open shared
object file: No such file or directory



fw: error while loading shared libraries: libfw1.so: cannot open shared
object file: No such file or directory



fw: error while loading shared libraries: libfw1.so: cannot open shared
object file: No such file or directory COMPRESSING LOG FILES REMOVING
BINARY FILES













_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

=================================================
To set vacation, Out Of Office, or away messages,
send an email to [email protected]
in the BODY of the email add:
set fw-1-mailinglist nomail
=================================================
To unsubscribe from this mailing list,
please see the instructions at
http://www.checkpoint.com/services/mailing.html
=================================================
If you have any questions on how to change your
subscription options, email
[email protected]
=================================================



 
----------------------------------

ABOUT SERVICES PRODUCTS TRAINING CONTACT US SEARCH SUPPORT SITE MAP LEGAL
   All contents © 2004 Network Presence, LLC. All rights reserved.