Re: reverse grep
On 11/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > How is it possible to select lines that do NOT match a specific pattern? > > For example, I'm connecting to 192.168.123.254 via telnet (port 23), and > do tcpdump -nli rl0. This cyclic traffic, becuase when tcpdump outputs > something, the system sends me some packets, which generates output in > tcpdump, and vice versa. I want to filter out packets of telnet access > to the FreeBSD machine, that is, something like: > > tcpdump -nli rl0 | grep --non-matching-lines 192.168.123.254.23 grep -v man grep ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > [EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FTP Automate Shell Script
A .netrc file (read the ftp man page) may work for you. Cheers Gavin On 1/30/06, Angelo Christou <[EMAIL PROTECTED]> wrote: > > Hello. I am using FreeBSD 6.0 and Bash as my shell. I > am following a tutorial to create a shell script to > copy some files. It works perectly exept for 2 points. > > Here is the article - > > http://www.quepublishing.com/articles/printerfriendly.asp?p=170517 > > Here is the script - > > #!/bin/sh > > temp="/tmp/$(basename $0).$$" ; trap "/bin/rm -f > $temp" 0 > targetdir="remote-dir" > remote="laptop.intuitive.com" > > echo "taylor" > $temp > echo "cd $targetdir" >> $temp > > for file in * > do > if [ -f $file ] ; then > echo "put $file $file" >> $temp > else > echo "skipping $file: not a file." >&2 > fi > done > > echo "quit" >> $temp > > ftp $remote < $temp > > exit 0 > > One problem is that the password must be entered > manually, I have spent a good part of the day > experimenting but can't seem to automate this. Can the > password be entered using the script? > > The other problem is that it copies the actual file. > What command would I look at to copy only images > (.jpg) for example? > > Thanks in advance. > Ang. > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > [EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: asterisk
Add the following to /etc/make.conf WITHOUT_H323=yes # asterisk WITHOUT_ZAPTEL=yes WITHOUT_ODBC=yes WITHOUT_FAX=yes and try again... I hit this very issue last night. Gavin On 1/25/06, Playnet <[EMAIL PROTECTED]> wrote: > > Hello freebsd-questions, > > sstand# make clean;make > asterisk-1.4: "/usr/ports/devel/pwlib:build" non-existent -- dependency > list incomplete > asterisk-1.4: "/usr/ports/net/openh323:build" non-existent -- dependency > list incomplete > > > ===> asterisk-1.4 depends on file: /nonexistent - not found > ===>Verifying build for /nonexistent in /usr/ports/devel/pwlib > > bug! > > And build pwlib > ../../ptclib/pssl.cxx: In constructor > `PSSLPrivateKey::PSSLPrivateKey(const BYTE*, PINDEX)': > ../../ptclib/pssl.cxx:288: error: invalid conversion from `BYTE**' to > `const unsigned char**' > ../../ptclib/pssl.cxx:288: error: initializing argument 2 of `EVP_PKEY* > d2i_AutoPrivateKey(EVP_PKEY**, const unsigned char**, long int)' > ... > ../../ptclib/pssl.cxx:480: error: initializing argument 2 of `X509* > d2i_X509(X509**, const unsigned char**, long int)' > gmake[2]: *** > [/usr/ports/devel/pwlib/work/pwlib/lib/obj_FreeBSD_x86_r/pssl.o] Ошибка 1 > gmake[2]: Leaving directory > `/usr/ports/devel/pwlib/work/pwlib/src/ptlib/unix' > gmake[1]: *** [opt] Ошибка 2 > gmake[1]: Leaving directory `/usr/ports/devel/pwlib/work/pwlib' > gmake: *** [optnoshared] Ошибка 2 > *** Error code 2 > > Stop in /usr/ports/devel/pwlib. > *** Error code 1 > > > -- > Best regards, > Playnet mailto:[EMAIL PROTECTED] > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > [EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help with Difficult Startup Script
sudo Cheers Gavin On 1/2/06, Mike Esquardez <[EMAIL PROTECTED]> wrote: > > Hello, I am trying to make a script that runs the following commands. This > is difficult for me because I dont know how to switch users. Currently > these > are the commands that I am trying to script. > > # fetchmail –d 1000 & (this needs to be run as username mik) > # su -l root > # /home/mik/myfilter & (this needs to be run as root) > > I know I have to make the files executable and .sh extension then put them > in /usr/local/etc/rc.d to get them to run at startup but I am not sure how > to make these commands run as different users. > > Is there a way to have something like this? (i know runas isnt a real > shell > command) > > #/bin/sh > runas "mik" fetchmail & > runas "root" /home/mik/myfilter & > > Any help would be very much helpful. mik > > _ > Express yourself instantly with MSN Messenger! Download today it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > [EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Obtaining release 4.1
http://mirrorlist.freebsd.org/ Both of the listed sites are currently working. Gavin On 11/12/05, Dinh C. Nguyen <[EMAIL PROTECTED]> wrote: > > Hi, > I am trying to download release 4.1 from the website and I am unable to > connect to either of the ftp sites from FreeBSD.org. I was wondering if > the > server is down because I would like to get a copy of release 4.1. Thank > you. > Dinh Nguyen > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > [EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: php5-extensions & php5-cli
Thanks... I'll try the plain on php5 port rather than php5-cli or mod_php5. Ta Gavin On 4/30/05, Odhiambo Washington <[EMAIL PROTECTED]> wrote: > * Gavin Cameron <[EMAIL PROTECTED]> [20050429 17:22]: wrote: > > Hi all, > > > > Is there anyway using the ports to install php5-extensions & php5-cli? > > > > I've got php5-cli installed and when I try to install php5-extensions > > I get the error: > > > > This port requires the Apache Module for PHP, but you have already > > installed a conflicting PHP port without the Apache Module. > > *** Error code 1 > > > > Now, installing php5-cli does appears to install the Apache module cause I > > have > > a new libphp5.so in /usr/local/libexec/apache2 which correspond to the > > install > > I just did of php5-cli and apache is quite happily serving out .php > > files correctly. > > > > Am I doing something wrong? > > > > What is the easiest way to get php module, php CLI plus extensions installed > > on one machine? > > With php4 (and I assume this is the same with php5): > > cd /usr/ports/lang/php5 && make WITH_APACHE2=yes install clean > cd /usr/ports/lang/php5-extensions && make config && make install clean > > That has always worked for me with php4. > > -Wash > > http://www.netmeister.org/news/learn2quote.html > > -- > +==+ > |\ _,,,---,,_ | Odhiambo Washington<[EMAIL PROTECTED]> > Zzz /,`.-'`'-. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com >|,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 > '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 > +==+ > Even if you do learn to speak correct English, whom are you going to > speak it to? > -- Clarence Darrow > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: make installworld problem
>From /usr/src/UPDATING on my 5.3-STABLE machine... 20040308: The packet filter (pf) is now installed with the base system. Make sure to run mergemaster -p before installworld to create required user account ("proxy"). If you do not want to build pf with your system you can use the NO_PF knob in make.conf. Also note that pf requires "options PFIL_HOOKS" in the kernel. The pf system consists of the following three devices: device pf # required device pflog # optional device pfsync # optional On 4/30/05, Brett Wiggins <[EMAIL PROTECTED]> wrote: > Hello, > I am having some problems with CVSup, I am following the > instructions in "Absolute BSD" - Michael Lucas Chapter 6. I follow the > instructions in the book and everything works up untill "make > installworld". The steps I took are as follows; > > - Installed CVSup > # cd /usr/ports/net/cvsup > # make all install clean > > - selected supfile > # cp /usr/share/examples/cvsup/stable-supfile /usr/src > -edited the supfile to update to the latest STABLE version, > -upgrade all ports and doc's > > - executed cvsup > I was not using X and the supfile said to use the > following command and not "cvsp-supfile" > # cvsup -g -L 2 stable-supfile > The upgrade of the system source code completed without > any errors. > > - Building the new FreeBSD > # cd /usr/src > # make buildworld > This command completed without any errors > > - Updating the kernel > # make buildkernel KERNCONF=GENERIC > no errors > > - installing the system > # make installkernel > no errors > > I then rebooted the system, everything seemed to work fine. > Once the system rebooted I logged in as root. The book I am reading that > in order to install the rest of the system, I need to drop down to > single-user mode. I ran the following; > > # shutdown now > > I then went to install the userland programs with the following; > > # cd /usr/src > # make installworld > > This is where I hit a brick wall. I get the following ouput > - required proxy user is missing > - error code 1 > - see /usr/src/UPDATING > I open the said file but am not sure what I am looking for. I went all > the way down to 2002 but found no mention of proxy or user. > I have tried to do the CVSup again and not run > # shutdown now > but I still get the same result. What have I done wrong? Have I left > anything out? I hope that I have provided you with enough information. > > Thanks, > > Brett > > === > You take the blue pill and the story > ends. You wake in your bed and you > believe whatever you want to believe. > You take the red pill and you stay in > wonderland, and I show you how deep > the rabbit hole goes > == > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
php5-extensions & php5-cli
Hi all, Is there anyway using the ports to install php5-extensions & php5-cli? I've got php5-cli installed and when I try to install php5-extensions I get the error: This port requires the Apache Module for PHP, but you have already installed a conflicting PHP port without the Apache Module. *** Error code 1 Now, installing php5-cli does appears to install the Apache module cause I have a new libphp5.so in /usr/local/libexec/apache2 which correspond to the install I just did of php5-cli and apache is quite happily serving out .php files correctly. Am I doing something wrong? What is the easiest way to get php module, php CLI plus extensions installed on one machine? Ta Gavin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How can I limit some port according to ethernet card MAC?
IPFW allows you to filter based on MAC addresses. man ipfw Cheers Gavin On Sat, 8 Jan 2005 12:17:25 +0800, heath, Chia Hui Chen <[EMAIL PROTECTED]> wrote: > Hello, > I use FreeBSD 5.2.1 as NAT. > How can I limit some port (packet in and out) according to ethernet card MAC > ? > Because we use dhcpd, and the IP is dynamic, so I wanna limit it by MAC. > What can I do? Thanks for your response! > > Best Regards, > - heath > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
cups-pstoraster port broken?
Hi all, I'm trying to upgrade my samba using portupgrade and my cups-pstoraster port needs to be upgraded in the process. However, when I try to make cups-pstoraster (version 7.05.5) I get the following error cc -DHAVE_MKSTEMP -O -pipe -Wall -Wstrict-prototypes -Wmissing-declaration s -Wmissing-prototypes -Wcast-qual -Wwrite-strings -fno-builtin -fno-common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE _STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DH AVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -D HAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DH AVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_ME MORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_I OCTL_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_U NISTD_H=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_ST_BLOCKS=1 -DTIME_WITH_SYS_ TIME=1 -DHAVE_LIBM=1 -DHAVE_PNG_H=1 -DHAVE_LIBPNG_PNG_H=1 -DHAVE_MKSTEMP=1 - DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_ WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DRETSIGTYPE=void -DHAVE_VP RINTF=1 -DHAVE_BZERO=1 -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETTIMEOFDAY=1 -D HAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MKFIFO= 1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_PUTENV=1 -DHAVE_RINT=1 -DHAVE_SETENV=1 - DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSP N=1 -DHAVE_STRSTR=1 -I./obj -I./src -o ./obj/sdctc.o -c ./src/sdctc.c In file included from ./src/sdctc.c:20: obj/jpeglib_.h:1: jpeglib.h: No such file or directory In file included from ./src/sdctc.c:24: src/sdct.h:61: field `err' has incomplete type src/sdct.h:73: field `err' has incomplete type src/sdct.h:75: field `cinfo' has incomplete type src/sdct.h:76: field `destination' has incomplete type src/sdct.h:87: field `err' has incomplete type src/sdct.h:90: field `dinfo' has incomplete type src/sdct.h:91: field `source' has incomplete type gmake: *** [obj/sdctc.o] Error 1 *** Error code 2 I do have jpeg-6b-1 installed and jpeglib.h and jpegint.h are in /usr/local/include. I'm running a fairly recent -STABLE. Any ideas? Ta Gavin To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message