Results 1 to 6 of 6

Thread: Need help with a simple bash script

  1. #1
    Join Date
    Nov 2009
    Beans
    110

    Need help with a simple bash script

    Hi all. Some time ago a purchased a bash script for rotating IPs with postfix. Its a simple script that changes the inet_interfaces setting in the postfix config file and then restarts it. The person who sold me the script said it's limited to 10 IPs but from what I see in the script there is no such limitation, so Im not sure if he meant that the script is limited to rotating up to 10 IPs or the service he was providing is for setting up 10 IPs only. I lost the contact info of that person so I can't ask him. So if anyone here is willing to help me - please post in this thread and I will PM you the script (I can't post it in public) so you can take a look and tell me if it can work with more than 10 IPs. As I said the script is pretty simple (about 50 lines) and if you know bash it will take you 2-3 minutes to figure it out. Thanks!

  2. #2

    Re: Need help with a simple bash script

    echo "$PMs"
    Windows assumes the user is an idiot.
    Linux demands proof.

  3. #3
    hakermania's Avatar
    hakermania is offline Τώρα ξέρεις τι γράφω εδώ!
    Join Date
    Aug 2009
    Location
    Greece
    Beans
    1,705
    Distro
    Ubuntu Development Release

    Re: Need help with a simple bash script

    You shouldn't purchase such things We are all here willing to help

  4. #4
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,499
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Need help with a simple bash script

    You shouldn't purchase such things
    why not? it all depends on how much one values one's time. If you need to invest hours upon hours to get some understanding of scripting only to attempt handmade solution it may be well worth it to drop in 50 bucks and just get it done. People go to mechanic to perform trivial maintenance of their cars, people go to restaurants despite having a kitchen at home. Yes, there is a drawback of being dependent on 3rd parties but that's how the world works and that's where the jobs for specialists come from.

  5. #5
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Need help with a simple bash script

    If you can't post the script, how about posting the description of what it should do?

  6. #6

    Re: Need help with a simple bash script

    It's a unrestricted .sh script that
    sed -i "new_ip_string" > {proc,send}mail.conf?
    service restart
    sleeps 520
    Windows assumes the user is an idiot.
    Linux demands proof.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •