11,660 reputation
21839
bio website weblogs.asp.net/owscott
location North Carolina
age 38
visits member for 5 years, 4 months
seen Dec 18 at 0:25

Co-founder and Chief Systems Architect of Vaasnet (www.vaasnet.com). Microsoft MVP for ASP.NET. ASPInsider. Strengths are IIS, URL Rewrite, ASP.NET, DNS, Hyper-V, Windows Server and SQL Server.


Nov
29
awarded  Caucus
Oct
7
awarded  Enlightened
Oct
7
awarded  Nice Answer
Sep
30
awarded  Explainer
Sep
26
awarded  iis7
Aug
20
awarded  Good Answer
Aug
18
awarded  Yearling
Aug
8
awarded  Popular Question
Jul
18
comment Where is ASP.NET Server Log File is Located?
@Zafar. Error status codes are logged (e.g. 500) but that only tells you that an error occured. It doesn't provide further info. Details would need to be found in Event Viewer. Consider an error logging framework like ELHAM or Log2Net for the best error logging and notifications.
Jul
14
awarded  Enlightened
Jul
14
awarded  Nice Answer
Jul
2
awarded  Curious
Jun
28
awarded  Nice Answer
Apr
5
awarded  Popular Question
Mar
2
awarded  Enlightened
Mar
2
awarded  Nice Answer
Jan
31
accepted Dynamically remove iptables policy by IP address
Jan
31
comment Dynamically remove iptables policy by IP address
That is it exactly! I also had to add IFS=$'\n'; to the beginning, I assume because my command shell default splits by spaces instead of line breaks. I do have the risk of race conditions so that and being fast make this the perfect solution.
Jan
31
comment Dynamically remove iptables policy by IP address
Thanks so much @ricksebak.
Jan
30
comment Dynamically remove iptables policy by IP address
That looks perfect. I just need to learn the syntax to auto-generate the command using awk so that I can actually carry out the delete in the same command. Your example actually gets the rule numbers which is just what I need. I'm heading into a meeting but I'll research that next.