From owner-freebsd-isp Mon May 14 6:46:53 2001 Delivered-To: freebsd-isp@freebsd.org Received: from tacni.net (mail.tacni.net [216.178.136.165]) by hub.freebsd.org (Postfix) with SMTP id 8EF3637B424 for ; Mon, 14 May 2001 06:46:50 -0700 (PDT) (envelope-from tom.oneil@tacni.com) Received: (qmail 58214 invoked by alias); 14 May 2001 13:46:49 -0000 Received: from unknown (HELO tacni.com) (216.201.173.186) by pendragon.tacni.net with SMTP; 14 May 2001 13:46:49 -0000 Message-ID: <3AFFE1CC.E89BA8D7@tacni.com> Date: Mon, 14 May 2001 08:46:52 -0500 From: Tom ONeil Organization: Texas American Communications X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Free Subject: sed question - phone list Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Greetings All; I have a script that handles our pop numbers and it requires I change the format of a large poplist we use for input. This is the format - CA,Anaheim,714,408,4411 and what I need is - CA,Anaheim,714-408-4411 because I don't enough perl to modify the script and I can't figure out how use sed to do it. awk will do the substitution, but removes the first 2 commas in the process. awk -F, '{print $1,$2,$3,-$4,-$5}' poplist Thoughts? snippets of code? Tom -- Thomas J. ONeil tom.oneil@tacni.net http://www.tacni.net/ "National power, local presence" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 8: 7:18 2001 Delivered-To: freebsd-isp@freebsd.org Received: from tacni.net (mail.tacni.net [216.178.136.165]) by hub.freebsd.org (Postfix) with SMTP id 680B737B42C for ; Mon, 14 May 2001 08:07:14 -0700 (PDT) (envelope-from tom.oneil@tacni.com) Received: (qmail 61446 invoked by alias); 14 May 2001 15:07:11 -0000 Received: from unknown (HELO tacni.com) (216.201.173.186) by pendragon.tacni.net with SMTP; 14 May 2001 15:07:11 -0000 Message-ID: <3AFFF4A2.EEEBB0CF@tacni.com> Date: Mon, 14 May 2001 10:07:14 -0500 From: Tom ONeil Organization: Texas American Communications X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Free Subject: sed question - the fix. Many thanks to all! Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I received so many great responses I thought I'd cat them all together in one post. Many mega thanks to all. The Question; Greetings All; I have a script that handles our pop numbers and it requires I change the format of a large poplist we use for input. This is the format - CA,Anaheim,714,408,4411 and what I need is - CA,Anaheim,714-408-4411 because I don't enough perl to modify the script and I can't figure out how use sed to do it. awk will do the substitution, but removes the first 2 commas in the process. awk -F, '{print $1,$2,$3,-$4,-$5}' poplist Thoughts? snippets of code? Tom Glenn foster awk -F , '{print $1","$2","$3"-"$4"-"$5}' Rowan Crowe awk -F, '{print $1 "," $2 "," $3 "-" $4 "-" $5}' poplist Andy #!/usr/local/bin/perl while () { ($a,$b,$c,$d,$e) = split /,/; print "$a,$b,$c-$d-$e"; } then do:- $ cat oldfile | prog > newfile where "prog" is the name of the perl script holding those lines at the start of this email. Regards Andy #!/usr/bin/perl use strict; my $file = "/patch/to/database"; open FILE, $file; while () { chomp; my @arr = split(/([A-Z]+)\,([a-zA-z]+)\,(\d+)\,(\d+)\,(\d+)/o, $_); shift(@arr); print $arr[0] . "," . $arr[1] . "," . $arr[2] . "-" . $arr[3] . "-" . $arr[4] . "\n"; } close FILE Best regards, Alexei V. Alexandrov awk -F, '{print $1 "," $2 "," $3 "-" $4 "-" $5}' < poplist Enno. bash-2.05# cat blah CA,Anaheim,714,408,4411 bash-2.05# cat blah | sed 's/\([0-9]\),\([0-9]\)/\1-\2/g' CA,Anaheim,714-408-4411 it matches a "," surrounded by numbers and replaces the comma with a dash. Hope this helps. andys -- Thomas J. ONeil tom.oneil@tacni.net http://www.tacni.net/ "National power, local presence" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 8:10: 8 2001 Delivered-To: freebsd-isp@freebsd.org Received: from pitr.tuxinternet.com (pitr.tuxinternet.com [208.32.175.113]) by hub.freebsd.org (Postfix) with ESMTP id CCD5237B423 for ; Mon, 14 May 2001 08:10:05 -0700 (PDT) (envelope-from hugme@pitr.tuxinternet.com) Received: (from hugme@localhost) by pitr.tuxinternet.com (8.11.0/8.11.0) id f4EBFli30794; Mon, 14 May 2001 11:15:47 GMT (envelope-from hugme) Date: Mon, 14 May 2001 11:15:47 +0000 From: Hug Me To: Tom ONeil Cc: freebsd-isp@FreeBSD.org Subject: Re: sed question - phone list Message-ID: <20010514111547.A30769@pitr.tuxinternet.com> References: <3AFFE1CC.E89BA8D7@tacni.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3AFFE1CC.E89BA8D7@tacni.com>; from tom.oneil@tacni.com on Mon, May 14, 2001 at 08:46:52AM -0500 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, May 14, 2001 at 08:46:52AM -0500, Tom ONeil wrote: > > > Greetings All; > > I have a script that handles our pop numbers and it requires I change > the format of a large poplist we use for input. > > This is the format - CA,Anaheim,714,408,4411 > and what I need is - CA,Anaheim,714-408-4411 > because I don't enough perl to modify the script and I can't figure out > how use sed to do it. > > awk will do the substitution, but removes the first 2 commas in the > process. > awk -F, '{print $1,$2,$3,-$4,-$5}' poplist you are missing some prans: awk -F, '{ print $1","$2","$3"-"$4"-"$5 }' this should work, I would not suggest sed. unless you need to search for that string within the document. hugme http://www.hugme.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 8:37:17 2001 Delivered-To: freebsd-isp@freebsd.org Received: from mail.sai.co.za (mail.sai.co.za [196.33.40.8]) by hub.freebsd.org (Postfix) with ESMTP id A99D237B43C for ; Mon, 14 May 2001 08:37:09 -0700 (PDT) (envelope-from davew@sai.co.za) Received: from dave.sai.co.za ([196.33.40.17] helo=dave) by mail.sai.co.za with smtp (Exim 3.22 #1) id 14zKRP-0002X8-00; Mon, 14 May 2001 17:39:23 +0200 From: "David Wilson" To: Cc: "isp linux" Subject: Telnet + command scripting run from crond Date: Mon, 14 May 2001 17:38:52 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_020C_01C0DC9C.BDF87700" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_020C_01C0DC9C.BDF87700 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi all, howzit going ? I'm not to good at scripting so I really need help on this: I have a USR NAS device that I need to telnet every 24 hrs and issue a command to it, how could I write a script that I could run as a cron job that would automatically login and issue the commands and then log out again ? Thanks. Any help would be greatly appreciated. Regards David Wilson Technical Support Centre The S.A Internet 0860 100 869 http://www.sai.co.za ------=_NextPart_000_020C_01C0DC9C.BDF87700 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi = all, howzit=20 going ?
 
I'm = not to good at=20 scripting so I really need help on this:
I = have a USR NAS=20 device that I need to telnet every 24 hrs and issue a command to it, how = could I=20 write a script that I could run as a cron job that would automatically = login and=20 issue the commands and then log out again ?
Thanks.
Any = help would be=20 greatly appreciated.
 

Regards

David Wilson

Technical Support Centre

The S.A Internet

0860 100 869

http://www.sai.co.za

 
------=_NextPart_000_020C_01C0DC9C.BDF87700-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 8:40:59 2001 Delivered-To: freebsd-isp@freebsd.org Received: from anaconda.acceleratedweb.net (anaconda.acceleratedweb.net [209.51.164.130]) by hub.freebsd.org (Postfix) with SMTP id 630E737B423 for ; Mon, 14 May 2001 08:40:55 -0700 (PDT) (envelope-from simon@optinet.com) Received: (qmail 39234 invoked by uid 106); 14 May 2001 15:40:56 -0000 Received: from 66-65-36-21.nyc.rr.com (HELO sharky) (66.65.36.21) by anaconda.acceleratedweb.net with SMTP; 14 May 2001 15:40:56 -0000 From: "Simon" To: "David Wilson" , "freebsd-isp@freebsd.org" Date: Mon, 14 May 2001 11:45:18 -0400 Reply-To: "Simon" X-Mailer: PMMail 2000 Professional (2.10.2010) For Windows 2000 (5.0.2195) In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="_=_=_=IMA.BOUNDARY.HTML_4963808=_=_=_" Subject: Re: Telnet + command scripting run from crond Message-Id: <20010514154055.630E737B423@hub.freebsd.org> Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --_=_=_=IMA.BOUNDARY.HTML_4963808=_=_=_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit There are many ways, here is one right out of Net::Telnet manual: use Net::Telnet (); $t = new Net::Telnet (Timeout => 10, Prompt => '/bash\$ $/'); $t->open("sparky"); $t->login($username, $passwd); @lines = $t->cmd("/usr/bin/who"); print @lines; perldoc Net::Telnet for more info, if you don't have it installed, install it. -Simon --Original Message Text--- From: David Wilson Date: Mon, 14 May 2001 17:38:52 +0200 Hi all, howzit going ? I'm not to good at scripting so I really need help on this: I have a USR NAS device that I need to telnet every 24 hrs and issue a command to it, how could I write a script that I could run as a cron job that would automatically login and issue the commands and then log out again ? Thanks. Any help would be greatly appreciated. Regards David Wilson Technical Support Centre The S.A Internet 0860 100 869 http://www.sai.co.za --_=_=_=IMA.BOUNDARY.HTML_4963808=_=_=_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit There are many ways, here is one right out of Net::Telnet manual:

use Net::Telnet ();
$t = new Net::Telnet (Timeout => 10,
Prompt => '/bash\$ $/');
$t->open("sparky");
$t->login($username, $passwd);
@lines = $t->cmd("/usr/bin/who");
print @lines;

perldoc Net::Telnet for more info, if you don't have it installed, install it.

-Simon

--Original Message Text---
From: David Wilson
Date: Mon, 14 May 2001 17:38:52 +0200

Hi all, howzit going ?

I'm not to good at scripting so I really need help on this:
I have a USR NAS device that I need to telnet every 24 hrs and issue a command to it, how could I write a script that I could run as a cron job that would automatically login and issue the commands and then log out again ?
Thanks.
Any help would be greatly appreciated.



Regards

David Wilson

Technical Support Centre

The S.A Internet

0860 100 869

http://www.sai.co.za


--_=_=_=IMA.BOUNDARY.HTML_4963808=_=_=_-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 8:41:15 2001 Delivered-To: freebsd-isp@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 3E63037B423 for ; Mon, 14 May 2001 08:41:13 -0700 (PDT) (envelope-from nick@rogness.net) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f4EGsB928428; Mon, 14 May 2001 11:54:12 -0500 (CDT) (envelope-from nick@rogness.net) Date: Mon, 14 May 2001 11:54:11 -0500 (CDT) From: Nick Rogness X-Sender: nick@cody.jharris.com To: David Wilson Cc: freebsd-isp@FreeBSD.ORG, isp linux Subject: Re: Telnet + command scripting run from crond In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 14 May 2001, David Wilson wrote: > I'm not to good at scripting so I really need help on this: I have a > USR NAS device that I need to telnet every 24 hrs and issue a command > to it, how could I write a script that I could run as a cron job that > would automatically login and issue the commands and then log out > again Check out `expect' in the ports. (/usr/ports/lang/expect). It's a scripting language that may be of use to you. Nick Rogness - Keep on Routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 8:49:55 2001 Delivered-To: freebsd-isp@freebsd.org Received: from mail.sai.co.za (mail.sai.co.za [196.33.40.8]) by hub.freebsd.org (Postfix) with ESMTP id 3050B37B423 for ; Mon, 14 May 2001 08:49:53 -0700 (PDT) (envelope-from davew@sai.co.za) Received: from dave.sai.co.za ([196.33.40.17] helo=dave) by mail.sai.co.za with smtp (Exim 3.22 #1) id 14zKdl-0002h2-00; Mon, 14 May 2001 17:52:09 +0200 From: "David Wilson" To: "FreeBSD Mailing List" Cc: "isp linux" Subject: Telnet + command scripting run from crond Date: Mon, 14 May 2001 17:51:38 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi all, howzit going ? I'm not to good at scripting so I really need help on this: I have a USR NAS device that I need to telnet every 24 hrs and issue a command to it, how could I write a script that I could run as a cron job that would automatically login and issue the commands and then log out again ? Thanks. Any help would be greatly appreciated. Regards David Wilson Technical Support Centre The S.A Internet 0860 100 869 http://www.sai.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 9: 5:54 2001 Delivered-To: freebsd-isp@freebsd.org Received: from ns1.officeonweb.net (ns1.officeonweb.net [209.61.157.241]) by hub.freebsd.org (Postfix) with ESMTP id 4E6B337B424 for ; Mon, 14 May 2001 09:05:51 -0700 (PDT) (envelope-from mdickerson@officeonweb.net) Received: from sami002 (sdsl-66-80-53-23.dsl.lax.megapath.net [66.80.53.23]) by ns1.officeonweb.net (8.9.3/8.9.3) with SMTP id KAA82269 for ; Mon, 14 May 2001 10:09:35 -0600 (MDT) (envelope-from mdickerson@officeonweb.net) Message-Id: <3.0.6.32.20010514100615.00b002e0@officeonweb.net> X-Sender: succes03@officeonweb.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 14 May 2001 10:06:15 -0600 To: freebsd-isp@freebsd.org From: mdickerson@officeonweb.net Subject: mysql make error Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Howdy hi, sorry for the slightly OT, I put this on -questions but received no answers. I figured I'd try here. I'm trying to install mysql from ports(mysql-server-3.23.38) on a 3.5S machine and get the following error: cd: can't cd to yes/lib libtool: link: warning: cannot determine absolute directory name of `yes/lib' libtool: link: passing it literally to the linker, although it might fail c++ -DDBUG_OFF -O -pipe -felide-constructors -fno-rtti -fno-implicit-templates -DMYSQLD_NET_RETRY_COUNT=1000000 -o mysqld sql_lex.o item.o item_sum.o item_buff.o item_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o thr_malloc.o item_create.o field.o key.o sql_class.o sql_list.o net_serv.o violite.o net_pkg.o lock.o my_lock.o sql_string.o sql_manager.o sql_map.o mysqld.o password.o hash_filo.o hostname.o convert.o sql_parse.o sql_yacc.o sql_base.o table.o sql_select.o sql_insert.o sql_update.o sql_delete.o procedure.o item_uniq.o sql_test.o log.o init.o derror.o sql_acl.o unireg.o time.o opt_range.o opt_sum.o opt_ft.o records.o filesort.o handler.o ha_isam.o ha_isammrg.o ha_heap.o ha_myisam.o ha_myisammrg.o ha_berkeley.o ha_innobase.o ha_gemini.o sql_db.o sql_table.o sql_rename.o sql_crypt.o sql_load.o mf_iocache.o field_conv.o sql_show.o sql_udf.o sql_analyse.o sql_cache.o slave.o sql_repl.o md5.o log_event.o mini_client.o mini_client_errors.o -L../bdb/build_unix -ldb ../isam/libnisam.a ../merge/libmerge.a ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -Lyes/lib -lwrap -lz -lcrypt -lm -pthread hostname.o: In function `ip_to_hostname(in_addr *, unsigned int *)': hostname.o(.text+0x52b): undefined reference to `my_gethostbyname_r' *** Error code 1 Stop. *** Error code 1 Any suggestions appreciated, mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 12:37:10 2001 Delivered-To: freebsd-isp@freebsd.org Received: from mail.tgd.net (rand.tgd.net [64.81.67.117]) by hub.freebsd.org (Postfix) with SMTP id 6963737B424 for ; Mon, 14 May 2001 12:37:04 -0700 (PDT) (envelope-from sean@mailhost.tgd.net) Received: (qmail 14439 invoked by uid 1001); 14 May 2001 19:37:01 -0000 Date: Mon, 14 May 2001 12:37:01 -0700 From: Sean Chittenden To: mdickerson@officeonweb.net Cc: freebsd-isp@freebsd.org Subject: Re: mysql make error Message-ID: <20010514123700.N10440@rand.tgd.net> References: <3.0.6.32.20010514100615.00b002e0@officeonweb.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2qwbT0JTInWqknst" Content-Disposition: inline In-Reply-To: <3.0.6.32.20010514100615.00b002e0@officeonweb.net>; from "mdickerson@officeonweb.net" on Mon, May 14, 2001 at = 10:06:15AM X-PGP-Key: 0x1EDDFAAD X-PGP-Fingerprint: C665 A17F 9A56 286C 5CFB 1DEA 9F4F 5CEF 1EDD FAAD X-Web-Homepage: http://sean.chittenden.org/ X-All-your-base: are belong to us. Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --2qwbT0JTInWqknst Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Upgrade to 4.3-STABLE? I built mysql from the ports tree on 8 boxes this last week... is your ports tree up to date? -sc On Mon, May 14, 2001 at 10:06:15AM -0600, mdickerson@officeonweb.net wrote: > Delivered-To: sean-freebsd-isp@chittenden.org > Delivered-To: freebsd-isp@freebsd.org > X-Sender: succes03@officeonweb.net > X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) > Date: Mon, 14 May 2001 10:06:15 -0600 > To: freebsd-isp@freebsd.org > From: mdickerson@officeonweb.net > Subject: mysql make error > X-Loop: FreeBSD.org > Precedence: bulk >=20 > Howdy hi, >=20 > sorry for the slightly OT, I put this on -questions but received no answe= rs. >=20 > I figured I'd try here. >=20 > I'm trying to install mysql from ports(mysql-server-3.23.38) on a 3.5S > machine and get the following error: >=20 > cd: can't cd to yes/lib > libtool: link: warning: cannot determine absolute directory name of `yes/= lib' > libtool: link: passing it literally to the linker, although it might fail > c++ -DDBUG_OFF -O -pipe -felide-constructors -fno-rtti > -fno-implicit-templates -DMYSQLD_NET_RETRY_COUNT=3D1000000 -o mysqld > sql_lex.o item.o item_sum.o item_buff.o item_func.o item_cmpfunc.o > item_strfunc.o item_timefunc.o thr_malloc.o item_create.o field.o key.o > sql_class.o sql_list.o net_serv.o violite.o net_pkg.o lock.o my_lock.o > sql_string.o sql_manager.o sql_map.o mysqld.o password.o hash_filo.o > hostname.o convert.o sql_parse.o sql_yacc.o sql_base.o table.o sql_select= .o > sql_insert.o sql_update.o sql_delete.o procedure.o item_uniq.o sql_test.o > log.o init.o derror.o sql_acl.o unireg.o time.o opt_range.o opt_sum.o > opt_ft.o records.o filesort.o handler.o ha_isam.o ha_isammrg.o ha_heap.o > ha_myisam.o ha_myisammrg.o ha_berkeley.o ha_innobase.o ha_gemini.o sql_db= .o > sql_table.o sql_rename.o sql_crypt.o sql_load.o mf_iocache.o field_conv.o > sql_show.o sql_udf.o sql_analyse.o sql_cache.o slave.o sql_repl.o md5.o > log_event.o mini_client.o mini_client_errors.o -L../bdb/build_unix -ldb > ../isam/libnisam.a ../merge/libmerge.a ../myisam/libmyisam.a > ../myisammrg/libmyisammrg.a ../heap/libheap.a ../mysys/libmysys.a > ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -Lyes/lib > -lwrap -lz -lcrypt -lm -pthread > hostname.o: In function `ip_to_hostname(in_addr *, unsigned int *)': > hostname.o(.text+0x52b): undefined reference to `my_gethostbyname_r' > *** Error code 1 >=20 > Stop. > *** Error code 1 >=20 >=20 > Any suggestions appreciated, >=20 > mike >=20 >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message --=20 Sean Chittenden --2qwbT0JTInWqknst Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Comment: Sean Chittenden iEYEARECAAYFAjsAM9wACgkQn09c7x7d+q2CCwCfYjj1AuLfZ+PRFKe+osBGkfNz GhMAn3YlaeVL538V+SsH3aUOSkBcJDib =Iado -----END PGP SIGNATURE----- --2qwbT0JTInWqknst-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 12:42:21 2001 Delivered-To: freebsd-isp@freebsd.org Received: from ns1.officeonweb.net (ns1.officeonweb.net [209.61.157.241]) by hub.freebsd.org (Postfix) with ESMTP id 7766D37B424 for ; Mon, 14 May 2001 12:42:17 -0700 (PDT) (envelope-from mdickerson@officeonweb.net) Received: from sami002 (sdsl-66-80-53-23.dsl.lax.megapath.net [66.80.53.23]) by ns1.officeonweb.net (8.9.3/8.9.3) with SMTP id NAA85294; Mon, 14 May 2001 13:46:01 -0600 (MDT) (envelope-from mdickerson@officeonweb.net) Message-Id: <3.0.6.32.20010514134239.00b06bd0@officeonweb.net> X-Sender: succes03@officeonweb.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 14 May 2001 13:42:39 -0600 To: Sean Chittenden From: mdickerson@officeonweb.net Subject: Re: mysql make error Cc: freebsd-isp@FreeBSD.ORG In-Reply-To: <20010514123700.N10440@rand.tgd.net> References: <3.0.6.32.20010514100615.00b002e0@officeonweb.net> <3.0.6.32.20010514100615.00b002e0@officeonweb.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Yes, if upgrading the box in question was a viable option at this time, I would certainly do that. thanks, mike At 12:37 PM 5/14/01 -0700, Sean Chittenden wrote: > Upgrade to 4.3-STABLE? I built mysql from the ports tree on 8 >boxes this last week... is your ports tree up to date? -sc > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 12:45:32 2001 Delivered-To: freebsd-isp@freebsd.org Received: from beta.root-servers.ch (gamma.root-servers.ch [195.49.62.126]) by hub.freebsd.org (Postfix) with SMTP id 35F3537B42C for ; Mon, 14 May 2001 12:45:24 -0700 (PDT) (envelope-from gabriel_ambuehl@buz.ch) Received: (qmail 28861 invoked from network); 14 May 2001 19:45:17 -0000 Received: from unknown (HELO work.root.li) (62.2.99.33) by beta.root-servers.ch with SMTP; 14 May 2001 19:45:17 -0000 Date: Mon, 14 May 2001 21:45:03 +0200 From: Gabriel Ambuehl X-Mailer: The Bat! (v1.51) Educational Organization: BUZ Internet Services X-Priority: 3 (Normal) Message-ID: <951575456496.20010514214503@buz.ch> To: mdickerson@officeonweb.net Cc: Sean Chittenden , freebsd-isp@FreeBSD.ORG Subject: Re[2]: mysql make error In-Reply-To: <3.0.6.32.20010514134239.00b06bd0@officeonweb.net> References: <3.0.6.32.20010514100615.00b002e0@officeonweb.net> <3.0.6.32.20010514100615.00b002e0@officeonweb.net> <3.0.6.32.20010514134239.00b06bd0@officeonweb.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello mdickerson, Monday, May 14, 2001, 9:42:39 PM, you wrote: > Yes, if upgrading the box in question was a viable option at this time, I > would certainly do that. Well if upgrading isn't an option, what about upgrading a dev box (which you NEED to have if you have production machines) or just pkg_add -r mysql323-server or pkg_add -r mysql323-client Best regards, Gabriel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 12:46:30 2001 Delivered-To: freebsd-isp@freebsd.org Received: from ns1.officeonweb.net (ns1.officeonweb.net [209.61.157.241]) by hub.freebsd.org (Postfix) with ESMTP id 4112037B423 for ; Mon, 14 May 2001 12:46:28 -0700 (PDT) (envelope-from mdickerson@officeonweb.net) Received: from sami002 (sdsl-66-80-53-23.dsl.lax.megapath.net [66.80.53.23]) by ns1.officeonweb.net (8.9.3/8.9.3) with SMTP id NAA85496; Mon, 14 May 2001 13:50:12 -0600 (MDT) (envelope-from mdickerson@officeonweb.net) Message-Id: <3.0.6.32.20010514134650.00b088b0@officeonweb.net> X-Sender: succes03@officeonweb.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 14 May 2001 13:46:50 -0600 To: Sean Chittenden From: mdickerson@officeonweb.net Subject: Re: mysql make error Cc: freebsd-isp@FreeBSD.ORG In-Reply-To: <20010514123700.N10440@rand.tgd.net> References: <3.0.6.32.20010514100615.00b002e0@officeonweb.net> <3.0.6.32.20010514100615.00b002e0@officeonweb.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm sorry . . . and yes, my ports tree is up to date. I was installing mysql 3.23.38 (although I had the same problem with 3.23.37). and yes, it installed just fine on a 4.3S machine. thanks, mike At 12:37 PM 5/14/01 -0700, Sean Chittenden wrote: > Upgrade to 4.3-STABLE? I built mysql from the ports tree on 8 >boxes this last week... is your ports tree up to date? -sc > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 12:46:47 2001 Delivered-To: freebsd-isp@freebsd.org Received: from mail.tgd.net (rand.tgd.net [64.81.67.117]) by hub.freebsd.org (Postfix) with SMTP id 3127637B424 for ; Mon, 14 May 2001 12:46:44 -0700 (PDT) (envelope-from sean@mailhost.tgd.net) Received: (qmail 14536 invoked by uid 1001); 14 May 2001 19:46:41 -0000 Date: Mon, 14 May 2001 12:46:41 -0700 From: Sean Chittenden To: mdickerson@officeonweb.net Cc: freebsd-isp@FreeBSD.ORG Subject: Re: mysql make error Message-ID: <20010514124640.P10440@rand.tgd.net> References: <3.0.6.32.20010514100615.00b002e0@officeonweb.net> <3.0.6.32.20010514100615.00b002e0@officeonweb.net> <20010514123700.N10440@rand.tgd.net> <3.0.6.32.20010514134239.00b06bd0@officeonweb.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X9hp/qFlD/MyfJCu" Content-Disposition: inline In-Reply-To: <3.0.6.32.20010514134239.00b06bd0@officeonweb.net>; from "mdickerson@officeonweb.net" on Mon, May 14, 2001 at = 01:42:39PM X-PGP-Key: 0x1EDDFAAD X-PGP-Fingerprint: C665 A17F 9A56 286C 5CFB 1DEA 9F4F 5CEF 1EDD FAAD X-Web-Homepage: http://sean.chittenden.org/ X-All-your-base: are belong to us. Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --X9hp/qFlD/MyfJCu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Drat... maybe I've missed this in the two or three years that I've used mysql, but I've never heard of the 'yes' directory, let alone yes/lib. Is there a type-o in one of your env variables? Have you tried a make distclean? cd: can't cd to yes/lib ^^^ libtool: link: warning: cannot determine absolute directory name of `yes/lib' libtool: link: passing it literally to the linker, although it might fail --X9hp/qFlD/MyfJCu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Comment: Sean Chittenden iEYEARECAAYFAjsANiAACgkQn09c7x7d+q1zYwCeOFKlHAkzOgVpMxIHKMaiSsfz rzoAn3GwdTzTHKtKDNVWNaVy/GOHx2Ma =GKEo -----END PGP SIGNATURE----- --X9hp/qFlD/MyfJCu-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 13: 7:42 2001 Delivered-To: freebsd-isp@freebsd.org Received: from ns1.officeonweb.net (ns1.officeonweb.net [209.61.157.241]) by hub.freebsd.org (Postfix) with ESMTP id 2457B37B42C for ; Mon, 14 May 2001 13:07:39 -0700 (PDT) (envelope-from mdickerson@officeonweb.net) Received: from sami002 (sdsl-66-80-53-23.dsl.lax.megapath.net [66.80.53.23]) by ns1.officeonweb.net (8.9.3/8.9.3) with SMTP id OAA86111; Mon, 14 May 2001 14:11:23 -0600 (MDT) (envelope-from mdickerson@officeonweb.net) Message-Id: <3.0.6.32.20010514140801.00b0c410@officeonweb.net> X-Sender: succes03@officeonweb.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 14 May 2001 14:08:01 -0600 To: Sean Chittenden From: mdickerson@officeonweb.net Subject: Re: mysql make error Cc: freebsd-isp@FreeBSD.ORG In-Reply-To: <20010514124640.P10440@rand.tgd.net> References: <3.0.6.32.20010514134239.00b06bd0@officeonweb.net> <3.0.6.32.20010514100615.00b002e0@officeonweb.net> <3.0.6.32.20010514100615.00b002e0@officeonweb.net> <20010514123700.N10440@rand.tgd.net> <3.0.6.32.20010514134239.00b06bd0@officeonweb.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Sean, At 12:46 PM 5/14/01 -0700, Sean Chittenden wrote: > Drat... maybe I've missed this in the two or three years that >I've used mysql, but I've never heard of the 'yes' directory, let >alone yes/lib. Is there a type-o in one of your env variables? Have >you tried a make distclean? Yes (and the joys of a very busy sourceforge server ;). mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 13:13:14 2001 Delivered-To: freebsd-isp@freebsd.org Received: from ns1.officeonweb.net (ns1.officeonweb.net [209.61.157.241]) by hub.freebsd.org (Postfix) with ESMTP id 8B59E37B42C for ; Mon, 14 May 2001 13:13:11 -0700 (PDT) (envelope-from mdickerson@officeonweb.net) Received: from sami002 (sdsl-66-80-53-23.dsl.lax.megapath.net [66.80.53.23]) by ns1.officeonweb.net (8.9.3/8.9.3) with SMTP id OAA86199; Mon, 14 May 2001 14:16:51 -0600 (MDT) (envelope-from mdickerson@officeonweb.net) Message-Id: <3.0.6.32.20010514141329.00b0d760@officeonweb.net> X-Sender: succes03@officeonweb.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 14 May 2001 14:13:29 -0600 To: Gabriel Ambuehl From: mdickerson@officeonweb.net Subject: Re: Re[2]: mysql make error Cc: Sean Chittenden , freebsd-isp@FreeBSD.ORG In-Reply-To: <951575456496.20010514214503@buz.ch> References: <3.0.6.32.20010514134239.00b06bd0@officeonweb.net> <3.0.6.32.20010514100615.00b002e0@officeonweb.net> <3.0.6.32.20010514100615.00b002e0@officeonweb.net> <3.0.6.32.20010514134239.00b06bd0@officeonweb.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Gabriel, >Well if upgrading isn't an option, what about upgrading a dev box >(which you NEED to have if you have production machines) I'm thinking copying binaries about will be a last resort. >pkg_add -r mysql323-server produces: #pkg_add -r mysql323-server Error: FTP Unable to get ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-3-stable/Latest/mysql3 23-server.tgz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch `ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-3-stable/Latest/mysql 323-server.tgz' by URL thanks, mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 13:29:16 2001 Delivered-To: freebsd-isp@freebsd.org Received: from beta.root-servers.ch (gamma.root-servers.ch [195.49.62.126]) by hub.freebsd.org (Postfix) with SMTP id C0D2B37B423 for ; Mon, 14 May 2001 13:29:09 -0700 (PDT) (envelope-from gabriel_ambuehl@buz.ch) Received: (qmail 30860 invoked from network); 14 May 2001 20:29:08 -0000 Received: from unknown (HELO work.root.li) (62.2.99.33) by beta.root-servers.ch with SMTP; 14 May 2001 20:29:08 -0000 Date: Mon, 14 May 2001 22:28:54 +0200 From: Gabriel Ambuehl X-Mailer: The Bat! (v1.51) Educational Organization: BUZ Internet Services X-Priority: 3 (Normal) Message-ID: <841578088120.20010514222854@buz.ch> To: mdickerson@officeonweb.net Cc: Sean Chittenden , freebsd-isp@FreeBSD.ORG Subject: Re[4]: mysql make error In-Reply-To: <3.0.6.32.20010514141329.00b0d760@officeonweb.net> References: <3.0.6.32.20010514134239.00b06bd0@officeonweb.net> <3.0.6.32.20010514100615.00b002e0@officeonweb.net> <3.0.6.32.20010514100615.00b002e0@officeonweb.net> <3.0.6.32.20010514134239.00b06bd0@officeonweb.net> <3.0.6.32.20010514141329.00b0d760@officeonweb.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org -----BEGIN PGP SIGNED MESSAGE----- Hello mdickerson, Monday, May 14, 2001, 10:13:29 PM, you wrote: >>Well if upgrading isn't an option, what about upgrading a dev box >>(which you NEED to have if you have production machines) > I'm thinking copying binaries about will be a last resort. Easy enough. I do this all the time since I don't want to put the burden of building complex stuff like mysql on production servers... >>pkg_add -r mysql323-server > produces: > #pkg_add -r mysql323-server > Error: FTP Unable to get > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-3-stable/Latest/m ysql3 > 23-server.tgz: File unavailable (e.g., file not found, no access) Any idea why it is trying to fetch packages for 3 stable? Isn't this a 4.3S machine? Best regards, Gabriel -----BEGIN PGP SIGNATURE----- Version: PGP 6.0.2i iQEVAwUBOwAx98Za2WpymlDxAQH4YQgAi7590Z85FwgvHyMUP7tfyWFDntOYR4/E TdZAiG1pXcxZ+n5WDTzHxLJm2lt+krb4pn+QZ1OExpKK+T1vpfE22LniKLGwW4iM 6vOTP+XzYD0KhHD4+KaCyf9sfWOyhxmHDQrMUEkDNWxkp1dnIYaYm2CH6+tGbMGS ZnPTYbf/p3OU6z9y87J8Zua/Ee77GINprjfM3P/I3luHkqGoOcGTS8YcFISPw6Qp c/DFmvVTWpgMJyyUQTeRWjH/Bf2q+e/ocO+JplGZ5+eWdh1b8rNwsWfiYdXqTUdn w3LzShhXV+JAu7tNGbmYhWP3ogxUOeqreh5CFmMUxq6xaFnJ2iJJJA== =OsSK -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 13:52:15 2001 Delivered-To: freebsd-isp@freebsd.org Received: from ns1.officeonweb.net (ns1.officeonweb.net [209.61.157.241]) by hub.freebsd.org (Postfix) with ESMTP id B591137B423 for ; Mon, 14 May 2001 13:52:12 -0700 (PDT) (envelope-from mdickerson@officeonweb.net) Received: from sami002 (sdsl-66-80-53-23.dsl.lax.megapath.net [66.80.53.23]) by ns1.officeonweb.net (8.9.3/8.9.3) with SMTP id OAA19483; Mon, 14 May 2001 14:55:51 -0600 (MDT) (envelope-from mdickerson@officeonweb.net) Message-Id: <3.0.6.32.20010514145228.00ac2700@officeonweb.net> X-Sender: succes03@officeonweb.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 14 May 2001 14:52:28 -0600 To: Gabriel Ambuehl From: mdickerson@officeonweb.net Subject: Re: Re[4]: mysql make error Cc: Sean Chittenden , freebsd-isp@FreeBSD.ORG In-Reply-To: <841578088120.20010514222854@buz.ch> References: <3.0.6.32.20010514141329.00b0d760@officeonweb.net> <3.0.6.32.20010514134239.00b06bd0@officeonweb.net> <3.0.6.32.20010514100615.00b002e0@officeonweb.net> <3.0.6.32.20010514100615.00b002e0@officeonweb.net> <3.0.6.32.20010514134239.00b06bd0@officeonweb.net> <3.0.6.32.20010514141329.00b0d760@officeonweb.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Gabriel, >Any idea why it is trying to fetch packages for 3 stable? Because it's a 3.5S machine ;). thanks, mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Mon May 14 14:21:22 2001 Delivered-To: freebsd-isp@freebsd.org Received: from ns1.officeonweb.net (ns1.officeonweb.net [209.61.157.241]) by hub.freebsd.org (Postfix) with ESMTP id EA9E037B424 for ; Mon, 14 May 2001 14:21:18 -0700 (PDT) (envelope-from mdickerson@officeonweb.net) Received: from sami002 (sdsl-66-80-53-23.dsl.lax.megapath.net [66.80.53.23]) by ns1.officeonweb.net (8.9.3/8.9.3) with SMTP id PAA35723; Mon, 14 May 2001 15:25:02 -0600 (MDT) (envelope-from mdickerson@officeonweb.net) Message-Id: <3.0.6.32.20010514152139.00abd720@officeonweb.net> X-Sender: succes03@officeonweb.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 14 May 2001 15:21:39 -0600 To: Ben Loyall From: mdickerson@officeonweb.net Subject: Re: mysql make error Cc: freebsd-isp@freebsd.org In-Reply-To: <5.1.0.14.0.20010514153519.009ee810@mail.loyall.org> References: <3.0.6.32.20010514100615.00b002e0@officeonweb.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Well, Don't know if this helps, but someone that knows how mysql builds . . . In the work/mysql-3.23.38/Makefile, there is "WRAPLIBS = -Lyes/lib -lwrap". But of course, if you remove "--with-libwrap \" from the /usr/ports/mysql323-server/Makefile, you'll get the same error, without the "cant' cd to yes/lib" issue. That error produced (once again) is: hostname.o: In function `ip_to_hostname(in_addr *, unsigned int *)': hostname.o(.text+0x52b): undefined reference to `my_gethostbyname_r' *** Error code 1 Stop. I'm guessing there have been some changes to some libraries from 3.5 to 4.x (fixes)? mike At 03:36 PM 5/14/01 -0400, you wrote: > >Mike, > >If you get a fix for this, please pass it along... I see the same problem >on 3.5-STABLE and got no response for the address listed as port maintainer >(dirk@freebsd.org). I know it works as advertised on 4.3-STABLE :( > >thanks, > >ben To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Tue May 15 0: 6:37 2001 Delivered-To: freebsd-isp@freebsd.org Received: from krijt.livens.net (213-193-182-127.adsl.easynet.be [213.193.182.127]) by hub.freebsd.org (Postfix) with ESMTP id CB6FA37B423 for ; Tue, 15 May 2001 00:06:33 -0700 (PDT) (envelope-from wim@krijt.livens.net) Received: (from wim@localhost) by krijt.livens.net (8.11.3/8.11.3) id f4F76jI26669; Tue, 15 May 2001 09:06:45 +0200 (CEST) (envelope-from wim) Date: Tue, 15 May 2001 09:05:25 +0200 From: Wim Livens To: freebsd-isp@freebsd.org Cc: davew@sai.co.za Subject: RE: Telnet + command scripting run from crond Message-ID: <20010515090524.A26629@krijt.livens.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Something like this works for me. Customize it to your device. Do it by hand once to see what exact prompts you need to expect. #!/usr/local/bin/expect spawn telnet your_nas expect Username: send "foo\n" expect Password: send "bar\n" expect # send "some command\n" expect # send "exit\n" interact -- Wim Livens. IP Network Engineering. C o l t B e l g i u m -----Original Message----- From: David Wilson [mailto:davew@sai.co.za] Sent: Monday, May 14, 2001 5:39 PM To: freebsd-isp@freebsd.org Cc: isp linux Subject: Telnet + command scripting run from crond Hi all, howzit going ? I'm not to good at scripting so I really need help on this: I have a USR NAS device that I need to telnet every 24 hrs and issue a command to it, how could I write a script that I could run as a cron job that would automatically login and issue the commands and then log out again ? Thanks. Any help would be greatly appreciated. Regards David Wilson Technical Support Centre The S.A Internet 0860 100 869 http://www.sai.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Tue May 15 6:11:36 2001 Delivered-To: freebsd-isp@freebsd.org Received: from ns1.officeonweb.net (ns1.officeonweb.net [209.61.157.241]) by hub.freebsd.org (Postfix) with ESMTP id CB86B37B42C for ; Tue, 15 May 2001 06:11:31 -0700 (PDT) (envelope-from mdickerson@officeonweb.net) Received: from sami002 (sdsl-66-80-53-23.dsl.lax.megapath.net [66.80.53.23]) by ns1.officeonweb.net (8.9.3/8.9.3) with SMTP id HAA40618 for ; Tue, 15 May 2001 07:15:19 -0600 (MDT) (envelope-from mdickerson@officeonweb.net) Message-Id: <3.0.6.32.20010515071151.009afab0@officeonweb.net> X-Sender: succes03@officeonweb.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Tue, 15 May 2001 07:11:51 -0600 To: freebsd-isp@freebsd.org From: mdickerson@officeonweb.net Subject: Re: mysql make error In-Reply-To: References: <3.0.6.32.20010514152139.00abd720@officeonweb.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Everyone, Thanks for the help. Not sure which hack to use yet, but have some options to work with. Copying the binaries from another 3.5S has gotten much more attractive ;). thanks, mike At 03:28 PM 5/15/01 +1000, Sean wrote: >On Mon, 14 May 2001 mdickerson@officeonweb.net wrote: > >> Well, >> >> Don't know if this helps, but someone that knows how mysql builds . . . >> >> In the work/mysql-3.23.38/Makefile, there is "WRAPLIBS = -Lyes/lib -lwrap". >> But of course, if you remove >> "--with-libwrap \" from the /usr/ports/mysql323-server/Makefile, you'll get >> the same error, without the "cant' cd to yes/lib" issue. >> >> That error produced (once again) is: >> hostname.o: In function `ip_to_hostname(in_addr *, unsigned int *)': >> hostname.o(.text+0x52b): undefined reference to `my_gethostbyname_r' >> *** Error code 1 >> I'm guessing there have been some changes to some libraries from 3.5 to 4.x >> (fixes)? >A significant amount of libc_r improvements in 4.x; the mysql port doesn't >build on 3.x, as is. > >(you can hack at it; USE_GMAKE=yes and --with-mit-pthreads appears to make >it all happen - or did, at 3.23.36 - but then you have to change the patches >in the files/ directory to be gmake instead of BSD make....) > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Wed May 16 0:24:43 2001 Delivered-To: freebsd-isp@freebsd.org Received: from mail1.rdc2.bc.home.com (mail1.rdc2.bc.home.com [24.2.10.84]) by hub.freebsd.org (Postfix) with ESMTP id 0F07B37B422 for ; Wed, 16 May 2001 00:24:40 -0700 (PDT) (envelope-from brent@justbrent.net) Received: from cr565151-a.vc.shawcable.net ([24.76.109.116]) by mail1.rdc2.bc.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010516072439.LDMD24212.mail1.rdc2.bc.home.com@cr565151-a.vc.shawcable.net> for ; Wed, 16 May 2001 00:24:39 -0700 From: Brent Rector Date: Wed, 16 May 2001 07:28:02 GMT Message-ID: <20010516.7280269@cr565151-a.vc.shawcable.net> Subject: Routing, IPFW, and/or Bridging??? To: freebsd-isp@freebsd.org X-Mailer: Mozilla/3.0 (compatible; StarOffice/5.2;Win32) X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Good Day Everyone! I have been reading and reading, and still am a little confused on what = path I should take. I am the admin for a couple of smallish ISP's. We are currently running = approximately 7 servers of various FreeBSD releases. We have 2 different= =20 blocks of 32 IP's on two different subnets 209.17.xxx.xxx and=20 216.18.10.xxx. Through one upstream provider... What I would like to do is setup another box running BSD to act as a=20= router/firewall kind of setup, and put all the machines on the protected= =20 side. 1. Can I somehow route both blocks of IP's through one machine? (2=20 different NIC cards installed). And still be able to use the public IPS = on the inside... Web, Mail, DNS, SSL etc.... 2. Can we still use the (public) IP's we have already setup on the=20 servers we are presently using? Or do I need to do some translation? 3. What setup would you recommend? Ipfw/natd? Bridge/ipfw? Or perhaps=20= some other combination.... Any help would be appreciated.... Brent Rector To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Wed May 16 1:58: 3 2001 Delivered-To: freebsd-isp@freebsd.org Received: from mail.nsvis.dk (mail.nsvis.dk [194.239.250.155]) by hub.freebsd.org (Postfix) with SMTP id 48DFF37B423 for ; Wed, 16 May 2001 01:57:59 -0700 (PDT) (envelope-from marius@sorteberg.no) Received: from goppus.overalt.no [62.179.189.29] by mail.nsvis.dk (SMTPD32-4.07) id A2533D2014A; Wed, 16 May 2001 11:03:15 +0000 Content-Type: text/plain; charset="iso-8859-1" From: Marius Sorteberg To: Brent Rector , freebsd-isp@freebsd.org Subject: Re: Routing, IPFW, and/or Bridging??? Date: Wed, 16 May 2001 10:57:33 +0200 X-Mailer: KMail [version 1.2] References: <20010516.7280269@cr565151-a.vc.shawcable.net> In-Reply-To: <20010516.7280269@cr565151-a.vc.shawcable.net> MIME-Version: 1.0 Message-Id: <01051610573300.00325@goppus.overalt.no> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Take a look at this FAQ. http://www.schlacter.dyndns.org/public/FreeBSD-STABLE_and_IPFILTER.html It will get you started on a FreeBSD/IPfilter setup. Then read the IPfilter FAQ "http://www.obfuscation.org/ipf/ipf-howto.txt "to learn how to use redirection and IPNAT. You should also take a look at the IPfilter homepage, and the mailling list archive "http://coombs.anu.edu.au/~avalon/ip-filter.htm" I'm a newbee to IPfilter, but by using the above links, managed to set up a network with two "outside" NIC's, to different ISP's, and a DMZ on the inside of the firewall. Marius On Wednesday 16 May 2001 09:28, Brent Rector wrote: > Good Day Everyone! > > I have been reading and reading, and still am a little confused on what > path I should take. > > I am the admin for a couple of smallish ISP's. We are currently running > approximately 7 servers of various FreeBSD releases. We have 2 different > blocks of 32 IP's on two different subnets 209.17.xxx.xxx and > 216.18.10.xxx. Through one upstream provider... > > What I would like to do is setup another box running BSD to act as a > router/firewall kind of setup, and put all the machines on the protected > side. > > 1. Can I somehow route both blocks of IP's through one machine? (2 > different NIC cards installed). And still be able to use the public IPS > on the inside... Web, Mail, DNS, SSL etc.... > > 2. Can we still use the (public) IP's we have already setup on the > servers we are presently using? Or do I need to do some translation? > > 3. What setup would you recommend? Ipfw/natd? Bridge/ipfw? Or perhaps > some other combination.... > > Any help would be appreciated.... > > Brent Rector > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Thu May 17 12:22: 0 2001 Delivered-To: freebsd-isp@freebsd.org Received: from aspenworks.com (aspenworks.com [192.94.236.1]) by hub.freebsd.org (Postfix) with ESMTP id C5D8A37B422 for ; Thu, 17 May 2001 12:21:58 -0700 (PDT) (envelope-from alex@aspenworks.com) Received: from d7k (matrix.aspenworks.com [216.38.199.82]) by aspenworks.com (8.9.3/8.9.3) with SMTP id NAA18551 for ; Thu, 17 May 2001 13:21:57 -0600 (MDT) (envelope-from alex@aspenworks.com) Message-ID: <007a01c0df06$a0dd2820$6900a8c0@d7k> From: "Alex Huppenthal" To: Subject: ISP Billing software - recent post? Date: Thu, 17 May 2001 13:21:51 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Checking the archives I didn't see a post of an Open Source ISP billing package, but seems to me that there was one posted recently. Anyone remember the FreeBSD or Open Source ISP Billing package announcement recently? -Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Thu May 17 12:33:19 2001 Delivered-To: freebsd-isp@freebsd.org Received: from aspenworks.com (aspenworks.com [192.94.236.1]) by hub.freebsd.org (Postfix) with ESMTP id 4C68837B43C for ; Thu, 17 May 2001 12:32:53 -0700 (PDT) (envelope-from alex@aspenworks.com) Received: from d7k (matrix.aspenworks.com [216.38.199.82]) by aspenworks.com (8.9.3/8.9.3) with SMTP id NAA18625; Thu, 17 May 2001 13:32:52 -0600 (MDT) (envelope-from alex@aspenworks.com) Message-ID: <008201c0df08$2724f600$6900a8c0@d7k> From: "Alex Huppenthal" To: "Alex Huppenthal" , References: <007a01c0df06$a0dd2820$6900a8c0@d7k> Subject: Re: ISP Billing software - It was FreeSide - thanks! Date: Thu, 17 May 2001 13:32:46 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org ----- Original Message ----- From: "Alex Huppenthal" To: Sent: Thursday, May 17, 2001 1:21 PM Subject: ISP Billing software - recent post? > Checking the archives I didn't see a post of an Open Source ISP billing > package, but seems to me that there was one posted recently. > > Anyone remember the FreeBSD or Open Source ISP Billing package announcement > recently? > > -Alex > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Thu May 17 14:20:19 2001 Delivered-To: freebsd-isp@freebsd.org Received: from hex.databits.net (hex.databits.net [207.29.192.16]) by hub.freebsd.org (Postfix) with SMTP id E5E6A37B424 for ; Thu, 17 May 2001 14:20:12 -0700 (PDT) (envelope-from petef@hex.databits.net) Received: (qmail 24483 invoked by uid 1001); 17 May 2001 21:20:07 -0000 Date: Thu, 17 May 2001 17:20:07 -0400 From: Pete Fritchman To: Alex Huppenthal Cc: freebsd-isp@FreeBSD.ORG Subject: Re: ISP Billing software - recent post? Message-ID: <20010517172007.B24043@databits.net> References: <007a01c0df06$a0dd2820$6900a8c0@d7k> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <007a01c0df06$a0dd2820$6900a8c0@d7k>; from alex@aspenworks.com on Thu, May 17, 2001 at 01:21:51PM -0600 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: X-Loop: FreeBSD.org Maybe you're thinking of Freeside? http://www.sisd.com/freeside -pete ++ 17/05/01 13:21 -0600 - Alex Huppenthal: | Checking the archives I didn't see a post of an Open Source ISP billing | package, but seems to me that there was one posted recently. | | Anyone remember the FreeBSD or Open Source ISP Billing package announcement | recently? | | -Alex | | | | To Unsubscribe: send mail to majordomo@FreeBSD.org | with "unsubscribe freebsd-isp" in the body of the message -- Pete Fritchman Databits Network Services, Inc. finger petef@databits.net for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Fri May 18 1:56:50 2001 Delivered-To: freebsd-isp@freebsd.org Received: from ns.morning.ru (ns.morning.ru [195.161.98.5]) by hub.freebsd.org (Postfix) with ESMTP id B315E37B423 for ; Fri, 18 May 2001 01:56:45 -0700 (PDT) (envelope-from poige@morning.ru) Received: from NIC1 ([195.161.98.236]) by ns.morning.ru (8.9.3/8.9.3) with ESMTP id QAA86084 for ; Fri, 18 May 2001 16:56:43 +0800 (KRAST) (envelope-from poige@morning.ru) Date: Fri, 18 May 2001 16:59:34 +0700 From: Igor Podlesny X-Mailer: The Bat! (v1.52 Beta/7) UNREG / CD5BF9353B3B7091 Organization: Morning Network X-Priority: 3 (Normal) Message-ID: <5323843094.20010518165934@morning.ru> To: freebsd-isp@FreeBSD.ORG Subject: net.link.ether.inet.max_age is too big? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: X-Loop: FreeBSD.org Hello everybody, what do you think of default value in 1200 for net.link.ether.inet.max_age? Whether does ARP take too much efforts to have this value so big? I noticed, that it could be better to have it significantly reduced when changing, replacing key-role network computers keeping the same IP by the same time. I'm going to use something near 60-100 in common practice for networks with 5-10 boxes communicating and your advices/opinions are appreciated, thanx in advance. -- Best regards, Igor mailto:poige@morning.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message