FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Laptop

LinkBack Thread Tools
Old 03-25-2011, 12:10 PM
pahnin sd
Default Opendchub perl bot

Hi I am running a dc hub server on my debian with opendchub
i want to write a bot which logs ip of users connected
so here is te code I am trying to execute but it couldn't log anything


$botname = "Admin";

*sub main()

{*** odch::register_script_name($botname);


*sub new_user_connected()

{*** my($user) = @_;

*** my($host) = odch::get_hostname($user);*** my($ip) = odch::get_ip($user);

*** $iplog = ">>/var/log/hubiplog";*** open(PLIK, $iplog);

*** print PLIK $ip;*** print PLIK "

*** close PLIK;}

the file /var/log/hubiplog is under group 'odchub' user 'odchub'

Thread Tools

All times are GMT. The time now is 10:44 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org