HOW TO have many HOST files directed to ONE host file?

Hello:
I was wondering if it is possible to do the following:
If we have in our HOST file many elements, lets say: my host name, TOR configuration, block pages, etc, and I would like to create several files to fragment this information on those files and, in some way, creating a HOST file that gather all this other files? Let's see:
                                                  HOST
                                                      |
                                   |                  |                   |   
                            HOST TOR  HOST PAGES   HOST X
                                                       |
                                             |                       |
                                   PAGES A             PAGES B         
With:
HOST: the actual host file, en /etc/
HOST TOR: the host config for TOR.
HOST PAGES: a list of some pages we would like to block, control. The PAGES A are for something, the PAGES B, for other things.
HOST X: etc.
So, all the host are different files, and I would like to connect them to HOST -the root-
With this, I could get a more ordered HOST file.
Is this possible?
Thank you.
EDIT: maybe with cat? I'm not sure, and don't want to screw my host file!
Last edited by gromlok (2010-11-05 23:04:05)

Thank you very much. I tried and it worked!
But I'm doing the backups of the old HOST files, trying to add the date and time, but I can't, could you help me please?
#Move old HOSTs to the backups folder
mv /etc/host ~/myhost/backups/
#Rename it with the actual date and time
dateTime = $(date +"%m-%d-%y | %T")
how to paste it the the host file??? I tried with mv, rename, and I can't
I would like something of the form:
host | m-d-y | T
Ex:
host | 12-12-10 | 19:55:03
host | 12-13-10 | 23:05:56
Any suggestion?
Thank you.
Last edited by gromlok (2010-11-06 01:29:20)

Similar Messages

  • My macbook is frozen but I can't turn it off because I have many unsaved files

    I was watching a movie then it froze so I tried to press escape but the I got the rainbow wheel. When I closed the lid the apple loga was still glowing, and the sound was still playing. I am a studdent and have many unsaved files on it please help!!!

    I have the EXACT SAME PROBLEM and have been researching the past 2 hours!!!! Aaargh!

  • I have many PDF files in iBooks for iPad 2. How can I get those files to sync with iPhone 5?

    I Have many categories of my work brochures stored in PDF format in iBooks. iPad 2 running iOS 6. I'd like to be able to view those same PDF files on my iPhone 5. Is this possible to do over the iCloud ?
    i Cannot do it via iTunes because my MacBook is 10.5.8 and apparently is not capable of getting iTunes 10.7

    When I don't have my computer available, I do this by emailing the PDF to myself then open it from whichever device I need (open in iBooks)

  • How to compuile many .java files in a labyrynth of directories?

    I dowloaded a source code that I can't still compile !!! I don't use Java in my life :) There are only empty directories following one after another at the end of each there is a single .java file. There are alot of directories and it is supposed that all compiled should work as a one product. How to compile? Any suggestions?

    Where did you download the app? Does it have an build file (e.g. build.xm)?

  • We have many design files and need more space

    We are sharing files which include many design files. When we upload, we can no longer access each other's work. Can we increase storage space so we don't have to break links by moving design files?

    Hi,
    What are the design files?
    Where are you uploading? SharePoint 2013 or other?
    Please give more information or a screenshot about this issue.
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to have original media files outside libray

    I have recently upgraded to 10.1.3 and use the new libraries functionality. I have created different libraries for my projects (by year) and consolidate the project, so, now, I have an event with video files and project inside.
    I have realize that I have the original video files inside the library file, so it means that now I have all my videos duplicated, one time on the original folder where I copied, and other inside the library.
    I would like to maintain videos outside of final cut library, and do not make sense to maintain also duplicated on the library (I also have a back up on a network drive).
    There is an easy way to “link” event files to original location outside of the library? Or I have to manually delete and fix one by one?
    Thanks in advance.

    Follow Tom's advice, which tells you how to move the media outside the library - but don't try to move them over the original ones.
    At this point, you'll still have two copies of the clips - in the original folder and one on the folder you now selected.
    As Tom pointed out, you'll now have symlinks in your library. Now comes the thrilling part.
    1) Erase the recently moved clips - all the clips will be offline, showing as red in FCP X.
    2) Use the Relink functionality to point them to the original folder. FCP X is clever enough that you need only select a superfolder containing the media, even if different clips lay there inside different subfolders.
    This should all run smoothly, BUT... As always, back things up first - namely, your library - before doing potentially dangerous thinks like deleting your precious files.

  • How to have multiple preference files for Mail on one computer

    I would like to have multiple preference files for Mail on one computer, one copy for each person in the organization. I want everybody to log in as the same user. Is this possible?
    Thanks,
    John Link
    Cube, 450 MHz, 640 MB   Mac OS X (10.3.9)  

    Since the Mail.app preference file (along with all other application preference files for a user account) is stored in that user's Home folder/directory, I don't believe this is possible.

  • How to merge many XML files into one?

    Hi: I got a small project to combine many XML files into one and convert the combined XML file in Excel using AppleScript. My XML files look like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <Metadataobject>
        <from>[email protected]</from>
        <jobname>B3_IM09MBDUF</jobname>
        <pages>2</pages>
        <priority>3</priority>
        <timezone>CEST</timezone>
        <year>2013</year>
        <month>7</month>
        <day>15</day>
        <hour>11</hour>
    </Metadataobject>
    and like this...
    <?xml version="1.0" encoding="UTF-8"?>
    <Metadataobject>
        <from>[email protected]</from>
        <jobname>P1_FR1330G006007_Kate_van der Vaart</jobname>
        <pages>2</pages>
        <priority>1</priority>
        <timezone>CEST</timezone>
        <year>2013</year>
        <month>7</month>
        <day>12</day>
        <hour>16</hour>
    </Metadataobject>
    I get many XML files like this. And I want them to be combined and shown like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <Metadataobject>
        <job id="1">
        <from>[email protected]</from>
        <jobname>B3_IM09MBDUF</jobname>
        <pages>2</pages>
        <priority>3</priority>
        <timezone>CEST</timezone>
        <year>2013</year>
        <month>7</month>
        <day>15</day>
        <hour>11</hour>
        </job>
        <job id="1">
        <from>[email protected]</from>
        <jobname>P1_FR1330G006007_Kate_van der Vaart</jobname>
        <pages>2</pages>
        <priority>1</priority>
        <timezone>CEST</timezone>
        <year>2013</year>
        <month>7</month>
        <day>12</day>
        <hour>16</hour>
        </job>
    </Metadataobject>
    And finally the combined XML file converts in Excel sheet with column headings "Job ID", "From", "Job Name" and so on...
    Or there is another best way to get the same result...
    Thanks

    That is just an intermediary state to get to the excel version. Actually I get many small XML files (as shown above) from client and I want them all combined in an excel sheet with common column headings... like this...
    from
    jobname
      pages
    priority
    timezone
    year
    month
    day
    hour
    id
    [email protected]
    B3_IM09MBDUF
       2
    3
    CEST
    2013
    7
    15
    11
    1
    [email protected]
    B3_IM09MBDUF
       2
    3
    CEST
    2013
    7
    15
    11
    2
    Thanks for your response.

  • How to add many hosts using jython interface to sps host database

    Hi,
    we want to create a huge number of virtual hosts into sps repository with jython interface.
    for exemple our variables are:
    hostname = sps1.internet.com
    ip = 192.168.1.1
    masterserver = masterserver
    hardware = v550
    and the script command looks like:
    app.execRaw ( 'hdb.h.add' , { 'name' : hostname , 'desc' : hardware , 'tID' : 'NM:com.vodafone.osmgt#vodRAvhostHT' , 'pID' : NM:masterserver , 'attr' : 'cliServer=cliServer;RA_HOSTNAME=hostname;RA_PROVISIONING_IP_ADDR=ip;RA_DESCRIPTION=Dynamic Infrastructure container;RA_OWNER=n1sps;RA_OWNER_DIR=/var/crash/home/n1sps;RA_OWNER_CREATE_SSH_CONN=true;RA_UID=2241;RA_GROUP=n1sps;RA_GID=2241;RA_INSTALLER_USER=root;RA_SUID=y;RA_INSTALLBASE=/opt/SUNWn1sps;RA_CTYPE=ssh;RA_CTYPE_PARAM=cprefix=/opt/SUNWn1sps/N1_Service_Provisioning_System/agent;RA_LEAVEFILES=n;RA_INSTALL_JRE=/opt/SUNWn1sps/N1_Service_Provisioning_System/common/jre;RA_PORT=1131;RA_CIPHER_TYPE=1;RA_INSTALLER_WORKDIR=/tmp;RA_PARENT_HOST=masterserver;RA_PARENT_OWNER=n1sps;RA_PARENT_OWNER_DIR=/opt/SUNWn1sps/home/n1sps;RA_PARENT_TYPE=MS;RA_PACKAGE_PATH=/var/tmp/spsra;RA_PACKAGE_NAME=cr_ra_solaris_sparc_5.2.sh;RA_REMOTE_PACKAGE_TMP_DIR=/tmp;RA_REMOTE_PRIV_CMD=/usr/local/bin/sudo;RA_REMOTE_PRIV_USER=admin;RA_REMOTE_PRIV_USER_HOME=/home/admin;RA_SRC_SSH_DIR=/opt/home/.ssh;RA_DST_SSH_DIR=/home/.ssh;RA_SSH_AUTH_KEY_FILE=authorized_keys' } )
    unfortunetly we are getting an error when we try to run the n1 sps hdb.h.add command.
    Are we using this command in the right manner ?
    Thanks in advance.
    Christian

    Dear Tarzanek,
    I am Alexis Susset a coleague of Christian.
    Thank you very much for your reply, we are now able to add hosts directly from a Jython script.
    Unfortunetly, we are now encourting a problem with the hdb.h.add command.
    It dies if our hostname (name) is already present in the database.
    We currently need to import a very high number of node and I would like to know how to simply get two outputs (1. added nodes, 2. non-added nodes ).
    Please let me know if you would like me to post the scripts I have.
    PS: I tried to use a hbd.h.lo command but it dies as well when I search for a host that doesn't exist.
    Many thanks and best regards,
    Alexis

  • How to use many external files?

    Hi,
    for a single onetime load of a .csv file ,I create a file module,then use the flatfile wizard to specify my file.
    Now If I have to automatically load all files which are in certain location on Windows Server,how do i achieve this ?
    All my .csv files have the same structure of 3 columns and the filenames are named as details_ddmmyyyy.csv
    everyday I will receive such files and want to automatically use them in my mapping which loads the data from flatfile to table.
    Please suggest.
    rgds
    s

    I think that cannot be done Purelly in OWB, But the way around is loop through all the file in the Directory using OWB (for or While loop)
    then Create dynamically the External tables ) and load them in OWB.
    Cheers
    Nawneet

  • How to: Save many PDF files containing images as jpeg

    I have a whole lot of PDF files that only contain images. I need them to be in jpeg format however.
    To convert them I'd need to open all theses pdf files in Preview and then "save as" jpeg. This does the job wonderfully.
    But it only does so for one pdf/image at a time. There's no way I can do this for all the files.
    I need to preserve the pdf files' names, too, so I can't combine the files and insert them into one pdf. This would result in having jpegs all right, but with names that do not represent the original file names.
    How can I batch process this with Preview?
    I tried the Automator but haven't found any way of doing it there.
    Does anyone have an idea how to accomplish that?

    Hi PPAC,
    What version of Windows are you running? I found another thread about this particular issue, with two possible solutions. One is to make sure that you're logged in as an administrator, and the other is to change the compatibility to earlier version of Windows. (Right-click the Acrobat application icon, choose Properties, and then choose compatibility.)
    I'm also curious what export settings you're choosing when you save as JPEG...
    Best,
    Sara

  • User sip folder have many .cache files with 4kb and the folder is becoming full and Lync Client stops working

    User sip folder have manu Mailitem&username&.cache files until folder is full and Lync client stops working.

    Hi,
    You can try to change the Lync Profile name. After you do it, Lync will create a new Profile. The Lync Profile path is following:
    %UserProfile%\AppData\Local\Microsoft\Office\15.0\Lync
    If the issue persists, please repair Office 2013 and then test again.
    Best Regards,
    Eason Huang  
    Eason Huang
    TechNet Community Support

  • How to select many raw files resize save as jpg and close ?

    Hi,
    I wish to simply see a whole load, say 300 , of raw files as thumbnails, select those I wish to resize, adjust exposure etc, indicate the new pixel dimensions then have that happen and close them saving to a new folder.
    This seems to have to be a two stage process, open into raw viewer using pshop CS4, adjust images that need it, try and remember those that I want that are not requiring adjustment, then select those I have adjusted and those I also want that are 'good to go' and select open.
    Then use actions to resize, adjust canvas, and close as jpg.
    Trouble with this is one cannot indicate to raw viewer as one makes ones way through the thumbnails, which pics are to be opened when all have been assessed. I hit delete on those I am not interested in, but this deletes them from the PC !  If there are lets say five subtle variations, and only when seen large can one decide which is best, if no changes are required, there is no way of teling which one is the chosen one when going back down the list using ctl to select those for opening.
    I end up doing perhaps 20 at a time, as to open 300 kills pshop.
    Whats the best way here ?
    I also use BreezeBrowser as its great for viewing a folder full of images as large thumbnails or thumbnails with a large view of the selected image, but it has no way of resizing when converting from raw to jpeg.
    Envirographics

    Envirographics wrote:
    This seems to have to be a two stage process, open into raw viewer using pshop CS4, adjust images that need it, try and remember those that I want that are not requiring adjustment, then select those I have adjusted and those I also want that are 'good to go' and select open.
    Then use actions to resize, adjust canvas, and close as jpg.
    If you're running through masses of images, perhaps you should consider Lightroom.  It's set up to do things along the lines of what you're doing.
    -Noel

  • How to have Adobe PDF files stored on SharePoint 2013 open in Adobe Reader?

    Hello,
    I am having troubles having Adobe PDF files open within Adobe.  The PDF files are opening within the browser, like Internet Explorer.
    In the document library, I have "Use the server default (Open in the client application)", sent but
    this has no affect. 
    Any help would be much appreciated. 
    Thanks,
    Paul
    Paul

    Can you try setting this value on the client?
    http://www.adobe.com/devnet-docs/acrobatetk/tools/PrefRef/Windows/FeatureLockdown.html?zoom_highlight=disable+sharepoint+integration#idkeyname_1_6720
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to Have Two Withholding Tax Code  in One invoice

    Hello,
    We are using Extended Withholding Tax, and we have defined 9 Withholding Tax type specials, this because is the same withholding type, but we different %, also we have defined more than one Withholding Tax Code, for each one. This kind of Withholding Tax in Venezuela it is called ISAE, and for one invoice I could have more than one ISAE Withholding Tax, in this with have configurated diferents withholdings tax types, but it is a issue because, the system generate one Certificate Numbering for Withholding Tax, but for us this needs to be the same,and only generates one Certificate Number and make the sum of the two amounts. Because is the same Withholding Tax, we need to report only one.
    E.g. I post an invoice 1000999, with two Withholding Tax type, 23 -with tax code 01 and 24 with tax code 02, when i Generate the report I get:
    Vendor Certificate Number Wh. t.t. Wtx Amount in RC wt amount
    10000 00000000001 23 01 90000 2000
    10000 00000000002 24 02 90000 1500
    We need:
    Vendor Certificate Number Wh. t.t. Wtx Amount in RC wt amount
    10000 00000000001 23 01 90000 3500
    We tried to defined only one Withholding Tax type with all the Withholding Tax Code, but the system doesn't allow to post in the vendor master data, more that one Withholding Tax type, we tried to leave it blank, but when we do the FB60, we can´t select multiple Tax Code.
    How we can post a document with more  tham one tax code? or what we have to do to solve the problem?
    I appreciate all the help you can provide me.

    Hello Mauri
    Thanks for your answer, but in this moment we have the configuration exactly like you suggest, but in the moment of we generate the certification number we get two or more numbers, and we only need that the systme generates only one. It is correct that the sistem generates two or more because in one invoice we need and we use two or more wt type ISAE, but for Legal Reasons we need that the system generates only one certificated number, because is the same wt type.  You know if we can do any validation? or we must do anything else to get only one certificated number? we never know or is not a rule to use a specific combination of Wt Type.
    tks Fati

Maybe you are looking for

  • Battery heating up

    Why is it that my battery when either charging or talking on it heats up so hot that I can not use it.  I took it to 3 Verizon stores and each one said it's a bad battery and i need to buy a new one.  After 3 batteries, it still heats up.  None of th

  • HT1338 Lack of Support for Leopard users

    Has Apple abandoned all Leopard users? I cannot get updated plug-ins for Safari and Firefox, therefore cannot access some internet sites. Seems Apple wants us to purchase Intel-based computers or be relegated to the trash can. I'd rather shift to PCs

  • CUSTOM ROW FETCH USING PLSQL BLOCK DOESN'T WORK

    Hello, I'm using Apex 3.0, and I'm trying to use a anonymous block to populate page items instead of automatic row fetch. Apparently the block works fine but the page doesn't display the items with the values that I fetched. I'm using something like:

  • Editing CF8.0.1 Sandbox Settings Slows Down IIS7

    Hello, I'm running CF8.0.1 on Windows Server 2008 Standard (all 32-bit) and our web site content is located on a UNC share. When I log into ColdFusion Administrator and perform any task under Sandbox Security (i.e. adding a sandbox, editing propertie

  • Converting 3.5 Workbooks to 7.x

    Hi, I have the 7.x Migration Book from SAP Press and nowhere in the book does it mention anything about converting BEx Workbooks to 7.x.   Do we or should we convert the Workbooks as well to 7.x? What is the Benefit of converting Workbooks to 7.x? Th