| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Perl script for polling a node |
Hello All!
I wrote a perl script for binkd, whitch can poll a node, example from crontab.
Maybe somebody can use it :)
=== Cut ===
#!/usr/bin/perl
my($input, {at}tmp, $izone, {at}tmp2, $inet, $inode, $file);
$input = $ARGV[0];
{at}tmp = split(/:/, $input);
$izone = $tmp[0];
{at}tmp2 = split(/\//, $tmp[1]);
$inet = $tmp2[0];
$inode = $tmp2[1];
$zone = sprintf("%x", $izone);
$net = sprintf("%x", $inet);
$node = sprintf("%x", $inode);
while(length($node) < 4)
{
$node = "0$node";
}
while(length($net) < 4)
{
$net = "0$net";
}
$file = "/home/ftn/outb/$net$node.ilo";
open (FLO, ">$file");
close (FLO);
=== Cut ===
Just change the outbound path :)
Regards, Bo
... "640K ought to be enough for anybody" Bill Gates 1981
--- Husky/Binkd/Ifmail/EleBBS/Golded+ 1.1.5
* Origin: Downlink BBS * telnet geekworld.dk * Roennede, Dk (2:236/100)SEEN-BY: 633/267 270 @PATH: 236/100 237/9 20/11 106/1 2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.