WYAE - FWTOOLS Mailing List Archive
| Re: [fwtools] problem piping data into python scripts
|
| From: | Ken Welsh |
| Date: | Fri, 28 May 2010 07:38:45 +1000
|
Kev,
If you set up your command prompt to have a scroll lines lenght of maybe
3000, run your script and then press the 'pause' key. When you scroll
back up to the start of your command, I think you will find that there is
an error which may have something to do with a missing or incorrect 'key'.
I had this happen on fw-1 configs that did not have any NATing so I ended
up modifying the inital fwdoc script to check if there is NATing involved
and if not then put a dummy entry into the .fwdoc file. (I am not a
programmer so this was the only way I figure out quickly how to get around
this)
I hope this helps you.
Regards,
Ken...
wrote on 27/05/2010 20:13:21:
> Hi,
>
> I am having problems trying to pipe the output from fw1r70_to_fwdoc
> into the python scripts to process the data further.
>
> I have tried both under windows an umbutu linux.
>
> When I pipe the file produced by fw1r70_to_fwdoc into a python
> script, the source file is echoed to the screen but no output is
> produced by the python script
>
> For example,
>
> Cat file.fwdoc | fwdoc_verity.py > verify.txt
>
> Just causes file.fwdoc to be echoed to the screen and an empty file
> verify.txt to be produced
>
> Thanks in advance for any help
> Regards
>
> kev
>
> Keven Lincoln | Enterprise Solutions Designer | BT Innovate & Design
> | Mob:+44 (0)780 1039 957
> E: keven.lincoln@bt.com [attachment "smime.p7s" deleted by Ken
> Welsh/CORPAU/WBCAU/WBG]
> ----------------------------------------------------------
> FireWallTOOLS-Mailinglist fwtools@wyae.de
> ----------------------------------------------------------
> to unsubscribe send a mail to: minimalist@wyae.de with the
> subject: unsubscribe fwtools
Please consider our environment before printing this email.
WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac, please contact us immediately.
It is also important to check for viruses and defects before opening or using attachments. Westpac's liability is limited to resupplying any affected attachments.
This email and its attachments are not intended to constitute any form of financial advice or recommendation of, or an offer to buy or offer to sell, any security or other financial product. We recommend that you seek your own independent legal or financial advice before proceeding with any investment decision.
Westpac Institutional Bank is a division of Westpac Banking Corporation, a company registered in New South Wales in Australia under the Corporations Act 2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the Financial Services Authority and is registered at Cardiff in the United Kingdom as Branch No. BR 106. Westpac operates in the United States of America as a federally chartered branch, regulated by the Office of the Comptroller of the Currency.
Westpac Banking Corporation ABN 33 007 457 141.