shell script problem

2012-12-23 Thread Jack Mc Lauren
Hi all Please take a look at the script below wich I've wrote : 1- cat /foo/bar.txt | while read $LINE12- do3-    cat /foo/bar/foo/bar.txt | while read $LINE24-    do 5-         if [ $LINE1 = $LINE2 ]; then6-               sw=17-               echo Current value of sw is : $sw8-              

Re: shell script problem

2012-12-23 Thread Polytropon
On Sun, 23 Dec 2012 01:05:35 -0800 (PST), Jack Mc Lauren wrote: Hi all Please take a look at the script below wich I've wrote : 1- cat /foo/bar.txt | while read $LINE12- do3-    cat /foo/bar/foo/bar.txt | while read $LINE24-    do 5-         if [ $LINE1 = $LINE2 ]; then6-              

Re: shell script problem

2012-12-23 Thread Polytropon
On Sun, 23 Dec 2012 10:34:34 +0100, Polytropon wrote: First, the lines with read have to be: cat /foo/bar.txt | while read $LINE1 cat /foo/bar/foo/bar.txt | while read $LINE2 Reason: $LINE1 and $LINE2 will be evaluated here, they are empty string, causing read to throw an error.

Re: shell script problem

2012-12-23 Thread Matthew Seaman
On 23/12/2012 09:43, Polytropon wrote: On Sun, 23 Dec 2012 10:34:34 +0100, Polytropon wrote: First, the lines with read have to be: cat /foo/bar.txt | while read $LINE1 cat /foo/bar/foo/bar.txt | while read $LINE2 Reason: $LINE1 and $LINE2 will be evaluated here, they are empty

bind 192.168.1.1 to all interfaces

2012-12-23 Thread Eugen Konkov
Hi, FreeBSD. I have many vlans on server. IPs on those vlans are like 10.X.X.X/Y I have run DHCP. But some times users on vlan can ON their soho router like DIR-300 or so and connect their internet cable to LAN port of that router. So in my vlan I have two DHCP servers. One is mine and second is

Re: shell script problem

2012-12-23 Thread Steve O'Hara-Smith
On Sun, 23 Dec 2012 09:57:02 + Matthew Seaman matt...@freebsd.org wrote: Hmmm I'd just like to draw your attention to the comm(1) program, which lets you find lines common to two files, or only in one or other of a pair of inputs, very easily. The only slight gotcha is that the input

Re: how to configure host login account to use jail?

2012-12-23 Thread Fbsd8
Damien Fleuriot wrote: On 23 Dec 2012, at 03:43, Fbsd8 fb...@a1poweruser.com wrote: Have jails up and running on host with ip address of 10.0.10.10 10.0.10.11 10.0.10.12 10.0.10.13 10.0.10.14 The host rc.conf has ifconfig_xl0=DHCP # nix connected to isp ifconfig_rl0=inet 10.0.10.2 #lan nic

Re: bind 192.168.1.1 to all interfaces

2012-12-23 Thread Patrick Lamaiziere
Le Sun, 23 Dec 2012 14:17:47 +0200, Eugen Konkov kes-...@yandex.ru a écrit : Hello, Or s there any other method to prevent such ilegal DHCP servers on LAN? At work we use dhcp_probe http://www.net.princeton.edu/software/dhcp_probe/ It works quite fine, when someone plug a dhcp server it is

Re: how to configure host login account to use jail?

2012-12-23 Thread Matthew Seaman
On 23/12/2012 13:11, Fbsd8 wrote: Ok but as my question asks, how do you configure things to get that to work? I am after the details. You need to run an instance of sshd in each jail. Because sshd defaults to binding to INADDR_ANY, you need to modify the sshd configuration in the host system,

Re: how to configure host login account to use jail?

2012-12-23 Thread Fbsd8
Matthew Seaman wrote: On 23/12/2012 13:11, Fbsd8 wrote: Ok but as my question asks, how do you configure things to get that to work? I am after the details. You need to run an instance of sshd in each jail. Because sshd defaults to binding to INADDR_ANY, you need to modify the sshd

Re: shell script problem

2012-12-23 Thread  Dhénin Jean-Jacques
2012/12/23 Polytropon free...@edvax.de On Sun, 23 Dec 2012 10:34:34 +0100, Polytropon wrote: First, the lines with read have to be: cat /foo/bar.txt | while read $LINE1 cat /foo/bar/foo/bar.txt | while read $LINE2 Reason: $LINE1 and $LINE2 will be evaluated here, they are

Upgrade icu failed

2012-12-23 Thread Matthias Fechner
Dear list, I checked the file /usr/ports/UPDATING and there is noted 20121218 for icu to execute the command: portmaster -w -r icu (my system is already on pkgng as described a in the UPDATING file, 20121015). If I execute now portmaster i get the following error message:

Re: Upgrade icu failed

2012-12-23 Thread Walter Hurry
On Sun, 23 Dec 2012 17:16:02 +0100, Matthias Fechner wrote: Dear list, I checked the file /usr/ports/UPDATING and there is noted 20121218 for icu to execute the command: portmaster -w -r icu (my system is already on pkgng as described a in the UPDATING file, 20121015). If I execute now

Re: Upgrade icu failed

2012-12-23 Thread Matthias Fechner
Am 23.12.12 17:29, schrieb Walter Hurry: What's the output from pkg_info? pkg info gives me a full list of all installed ports, pkg_info complains about a lot of corrupted package infos, but i think this is related to, pkg is new and pkg_info is the old tool. Have you done any other upgrades

Re: Upgrade icu failed

2012-12-23 Thread Walter Hurry
On Sun, 23 Dec 2012 17:44:26 +0100, Matthias Fechner wrote: Am 23.12.12 17:29, schrieb Walter Hurry: What's the output from pkg_info? pkg info gives me a full list of all installed ports, pkg_info complains about a lot of corrupted package infos, but i think this is related to, pkg is new

Re[2]: bind 192.168.1.1 to all interfaces

2012-12-23 Thread Eugen Konkov
Здравствуйте, Patrick. Вы писали 23 декабря 2012 г., 15:17:43: PL Le Sun, 23 Dec 2012 14:17:47 +0200, PL Eugen Konkov kes-...@yandex.ru a écrit : PL Hello, Or s there any other method to prevent such ilegal DHCP servers on LAN? PL At work we use dhcp_probe PL

Re: shell script problem

2012-12-23 Thread  Dhénin Jean-Jacques
2012/12/23 Polytropon free...@edvax.de #!/bin/sh cat foo.txt | while read LINE1 do cat bar.txt | while read LINE2 do if [ $LINE1 = $LINE2 ]; then sw=1 echo Current value of sw is : $sw

Re: bind 192.168.1.1 to all interfaces

2012-12-23 Thread jb
Eugen Konkov kes-kes at yandex.ru writes: ... So in my vlan I have two DHCP servers. One is mine and second is on that router. Some users get wrong IPs from that router. ... Or s there any other method to prevent such ilegal DHCP servers on LAN?

Changes to kern.geom.debugflags?

2012-12-23 Thread Chris Ross
I had brought up a machine months ago with freebsd-9-stable. I configured it to boot off of a single disk, with ZFS, expecting I would likely later attach the other disk to the zpool. I tried to do that today, but find that I can't write the bootloader to either disk. Google searching

Re: how to configure host login account to use jail?

2012-12-23 Thread Fbsd8
Fbsd8 wrote: Matthew Seaman wrote: On 23/12/2012 13:11, Fbsd8 wrote: Ok but as my question asks, how do you configure things to get that to work? I am after the details. You need to run an instance of sshd in each jail. Because sshd defaults to binding to INADDR_ANY, you need to modify the

Re: Upgrading FreeBSD 8.3 amd64

2012-12-23 Thread Ralf Mardorf
Hi, I've done the upgrade yesterday. It was a clean 8.3 install, I only set up PPPoE and then run the following commands. # cd /usr/ports/misc/mc make install clean # uname -r 8.3-RELEASE # freebsd-update -r 9.1-RELEASE upgrade # freebsd-update install # shutdown -r now # freebsd-update

Merry Christmas everyon1

2012-12-23 Thread Foo JH
___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org