Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by millap

  1. millap

    combining files

    Thanks yet again Feherke!
  2. millap

    combining files

    Hey guys, Is there a script to combine two files but do it line by line? EG: file 1 = 1 2 3 4 file 2 = a b c d so that the output would be 1 a 2 b 3 c 4 d Any help greatly appreciated. millap
  3. millap

    Changing a value and incrementing number

    Hi Feherke, The purpose is to generate profiles for a dslam. new connection cpe-1 set encapsulation-protocol = atm set ip-options ip-routing = no set bridging-options bridge = yes set bridging-options bridging-group = 451 set bridging-options bridge-type = transparent-bridging set...
  4. millap

    Changing a value and incrementing number

    Hi Feherke, Thanks for the swift response! Thats great, just what I was looking for. Is it also possible to use seq to as do the following in that case: new connection cpe-1 set nailed-group = 1 new connection cpe-2 set nailed-group = 2 new connection cpe-3 set nailed-group = 3 I should have...
  5. millap

    Changing a value and incrementing number

    Hi all, I'm trying to figure a way to script the generation of a config file, eg; new connection cpe-1 new connection cpe-2 new connection cpe-3 Is there a way I can do this with awk or sed? Thanks millap
  6. millap

    master.cf

    Hi, If you set relay_domains = xyz.com all that means is your postfix server will accept email for xyz.com and relay it to it's destination. If this is what you want to do (eg relay to another host) you need to edit /etc/postfix/transport and add an entry for xyz.com. For example: xyz.com...
  7. millap

    Relayhost changes when system reboots

    Hi, is there anything set in the main.cf.default that would point to the IP address you're talking about? cd to the directory where your postfix .cf files are located and do a 'grep -l ""<ip.address>" *". That might tell you where the IP address is being taken from.
  8. millap

    Reject mail TO a specific address

    If you are using local delivery then the main.cf entry alias_maps = maptype://path/to/file is what you need. If you are delivering to the network (eg your postfix install is a relay to an internal host like MS Exchange) then you should use relay_recipients = maptype://path/to/file For...
  9. millap

    Slow mail delivery

    Hi Nashcom, I've seen the error "timed out while sending MAIL FROM" a few times when there's an MTU issue on your MTA's NIC. Not because your MTA is the problem but that a node inbetween you and the recipient MTA is causing the problem. hotmail.com was an issue for my lcoal MTA until I...
  10. millap

    Using sed with a value from another command

    Sorry Ali(aau) should have said it's BSD 2.0 also... Thanks millap
  11. millap

    Using sed with a value from another command

    Yes aau, it's rc.conf Cheers millap
  12. millap

    Using sed with a value from another command

    Awesome, thanks PHV! Works like a dream :) Sed is complicated though :P Thanks to both of you for your replies millap
  13. millap

    Using sed with a value from another command

    Hi pcunix, Thanks for the reply. I understand that statement but how do I pass the contents of $MYCONFIG to sed? It will replace a known IP address (10.2.3.4 for example). I need to do a sed 's/10.2.3.4/<$MYCONFIG>/' is this possible? Thanks millap
  14. millap

    Using sed with a value from another command

    Hi all, I'm looking for a way to pass sed a variable to change an IP address after a user has been asked for information on what IP address they'd like as part of a machine setup script. I've already saved the relevant ip, subnet, route and gw information into seperate files which I'd like...

Part and Inventory Search

Back
Top