Programming :: Pull The IPs One By One From The File And Then Ban?

May 4, 2010

Code:
#!/bin/sh
egrep -o 'SRC=[[:digit:]]{1,3}.[[:digit:]]{1,3}.[[:digit:]]{1,3}.[[:digit:]]{1,3}' /var/log/messages | sed 's/SRC=//g' | sort | uniq > /badips.txt

[Code]....

how do i pull the IPs one by one from the file and then ban?

View 1 Replies


ADVERTISEMENT

Programming :: How To Pull Node Pointers Out Of The Model

Mar 25, 2010

I am trying to find a way to pull Node Pointers out of the model, for use in other areas of the program. The solution is probably simple but I haven't had any luck finding it.

Model for a QTreeView:

Code:

class testModel : public QAbstractItemModel
{
public:
testModel();
~testModel();

[code]....

View 2 Replies View Related

Programming :: Script To Pull Files From Windows?

Jul 2, 2010

I have a script in Linux that generates a report on my Linux machine. I would like to know if there is anyway I can write a script to pull this report automatically from my Linux machine into my windows machine. Both Linux and Windows machines are on the same network

View 1 Replies View Related

Programming :: Unable To Pull And Store Certificates?

Dec 21, 2009

I have to pull certificate from multiple computers which are on network and store it in a single fie or each file belong to a particular computer.I am using certutil -store to import the certificate.

View 4 Replies View Related

Programming :: Grep And Pull The IP Based On The Request String?

May 5, 2010

in the access logs i have this:

Code:
IP.IP.IP.IP - - [01/May/2010:11:21:10 -0400] "BIG STRING" 414 250
how can i grep and pull the IP based on the request string?

View 7 Replies View Related

Programming :: Pull Http Links Out Of Text Files?

Aug 15, 2010

I am trying to figure out a way to pull http links out of text files and then output the results in a log. The text files are in folders like this inside a source directory.

/source
./folder1
...folder1.txt
./folder2
...folder1.txt

[Code]....

View 4 Replies View Related

General :: Pull String From A File Into A Variable Using Bash

Aug 6, 2011

I have a file (.tmpfile) and inside it is a string which i only know part of, the rest being a random group of characters... I would like to know how to pull the whole string out of the file and into a variable.

View 13 Replies View Related

Ubuntu :: Getting Grep To Pull Info From A Specific File Which Match All The Words?

Jun 2, 2011

I am trying to use grep to only tell me files that include both words matching in a pattern file. However when i specify:

grep -f <pattern file> <file>

It pulls out anything that matches one or the other.

Not both.

how to get it to match AND not OR.

View 9 Replies View Related

Ubuntu :: Places Pull Down Menu / Buttons In File Management Windows Broken By Ktorrent

Mar 12, 2011

Whenever i click on an icon in the Places pull down menu (except Computer, Network, Connect To Server and Search For Files) nothing happens except I get Ktorrent popping up and claiming it cant open the selected Drive or Folder because it is not a valid torrent file. Which is fair enough, 'cos its not a torrent. Its the entry for my Desktop in a pull down menu in my O/S, and it does this even when I haven't been near Ktorrent in the previous hundred clicks of the mouse, or if Ktorrent is not running. If i un-install Ktorrent, the error message changed, but the correct windows did not open when asked from the Places pull down, and the error returns when its re installed- well, tried it once, in a very basic fashion through the software center.

I think the problem has been caused by two containing folders of torrent data files that have become stuck as entrys in the Pllaces menu- cack handed off me folks, was playing with new mouse settings as I was playing with new mouse settings. Problem may also be something to do with the problems I have been having with Ktorrent- it refuses to accept torrent files unless through a magnet link, bringing up the same "parse error- not valid torrent file" error message as comes up from the Places menu, only of course citing the torrent i just tried, when I know for sure the file is valid and operational because Transmission has no problem with it.I really hope someone can help me fix this, as formatting and re-installing will be a real ball ache, as I'm a new user who's spent the last week learning and starting the customization process, and I was just getting to think about backing it all up.System is Ubuntu 10.10 64 bit, Pentium quad core, one 250Gb system drive and another larger drive called storage that appears under Media path both SATA2, no DVD drive as connector is in the post.

View 6 Replies View Related

Fedora :: Custom Kernel - Where To Pull RPM

Jun 18, 2011

This is (I'm sure) a silly question, but when reading the guide for custom kernel [url] it mentions I need to use yumdownloader to pull the source as an RPM.

How exactly do I find mirrors etc for this (and where do I configure it)?

I've already got the source locally along with the patches I want to use, and want to try this the 'fedora' way. I'd normally just use make/make modules etc, but I've never tried it via RPM.

View 4 Replies View Related

General :: Pull Process / Job Into Background

Jan 17, 2011

I know of terminating a command with & and then moving it into the background by pressing Ctrl-Z and then bg [pid], and I also know of nohup. But say you started a process that turned out to take much longer than one expected, is there a way of pulling, so to speak, this process from another terminal screen into the background so that even if I log off from the server the process would continue?

View 2 Replies View Related

Ubuntu :: How To Pull Software Out And Install

Mar 30, 2010

I have a pretty good understanding of what is in the package mgt rep and how to pull software out and install. BTW this is the greatest software install tool ever created.But really my question is about software for UBUNTU that is not in the rep. Has anyone compiled a list and/or reviews of the software that is out there. I'm looking for companies that actively writing software for Linux and in particular UBUNTU and what kind of products they have.

View 3 Replies View Related

Ubuntu :: Pull The Music In The Background From A Song?

Apr 8, 2011

does anybody know a program that pull background music from a song.. even in alpha or beta trails

View 3 Replies View Related

General :: Pull Up The Task Manager And Hit Ctrl+Alt+Esc

Mar 25, 2011

I was trying to pull up the task manager and hit Ctrl+Alt+Esc.

A white X came up, and now my desktop is a big black screen. How do I revert back??

View 4 Replies View Related

Ubuntu :: Mounting DD Image To Pull Off Individual Files?

Mar 29, 2010

I have a gziped dd image backup of my entire hda drive (osx and ext4 partitions) that I created with the following command:
dd if=/dev/sda |gzip > image032810.gz
Can I mount this image file to pull off individual files from individual partitions?

View 6 Replies View Related

Ubuntu :: Pull Up Emerald Theme Manager In Terminal?

May 4, 2011

you know how you can pull up CCSM through terminal?

is there a command to pull up emerald theme manager in Terminal?

View 1 Replies View Related

Ubuntu :: Pull Compiz Back Up With Out Unity Enabled?

May 17, 2011

Installed compiz to tweak settings and I guess I unchecked the box for unity how can I pull compiz back up with out unity enabled?

View 2 Replies View Related

Ubuntu :: Script To Pull Data From Remote To Local

Jul 1, 2011

I want to have a script that pull db from remote server to my local. Beside that the filename should contain current date the time the db was dumped.

Ex: getdb databaseName

Then the filename should be like this:

So basically I have an archive of DB. Similar to this I need also a script that pull directory from remote to my local.

Ex: getdir htdocs

Then the filename should be like this:

View 1 Replies View Related

Ubuntu Multimedia :: Any Way To Pull Up Deleted History With Terminal

Jul 11, 2011

Is there any way to pull up deleted history with terminal and delete it permanently so that even a computer forensic couldn't pull it back up?

View 2 Replies View Related

General :: Compare Files And Pull Out Required Data?

Nov 10, 2010

I have 2 files to compare and then print out information that match a certain pattern. I know basic scripting and was heading down the path of merging the 2 files together but this is the wrong approach. Would really appreciate a script that can do what is required:

file 1 contains dates, times and ID's:
2010-10-28 10:42 5939697357
2010-10-28 11:56 5919543491

[code]...

View 4 Replies View Related

Software :: Rancid - Pull Config Different From HP Procurve Switches

Jan 3, 2011

Posting this one in Software rather than Networking as it appears to be a Rancid/CVS/Diff issue rather than anything relating directly to Networking. Trying to pull config diffs from HP Procurve switches. Latest versions of Tcl, Expect, diff stat, and 2.3.5 Rancid. Getting random characters changes and white space changes seen as diffs. Things like ";password manager <removed>" in one config showing up in the next chrons run as "c5# ord manager". This generates a new email every time.

Since we have these going directly into our ticketing system for change control, these pile up over time and need to be parsed out from actual config changes. I've tried various diff switches in the control_rancid. Current command string in the control_rancid file is "cvs -f diff -TwbB -U 4 -ko | sed -e '/^RCS file: /d' -e/^--- /d' -e '/^+++/d' -e 's/^([-+])/1 /' >$TMP.dff" I've also tried looking in the hrancid, hlogin, and htlogin files for more hints that might be scrambling my diffs, but no luck. Here's a sample of what shows up in the ticket queue.

[Code]....

View 4 Replies View Related

Red Hat :: Push / Pull Windows Printers To Redhat Cups?

Apr 21, 2010

I would like to know if it is possible to push or pull all Windows printers (about 1000) to Redhat Advanced Server? I know normally Samba comes into play, but there i can only make connection to 1 printer at the time. Also, I must then add the printers from the Windows Print Cluster by hand. Considering the huge amount of work AND the manageable aspects ( you will then have the printers on two servers), this is not an option.

So, can I connect from the RedHat server directly to the Windows Print cluster, or, if not, at least load all printers in the CUPS configuration at once? Then I have at least connection. It's a Windows 2003 R2 print cluster with RedHat 5.3 Advanced Server. Eventually the RedHat environment will be a cluster.

View 3 Replies View Related

Debian Multimedia :: Pull-down Corners Showing Up In Weird Places

Jun 2, 2011

I have a pull-down corner on both of my gnome-panels. If I hover my mouse over it, i even get the resize cursor, but you can't actually resize the panel. I'm also seeing them on my screenlets. See the shot below:

The pull-down corners are in the red boxes. It's very clear in the top box on the gnome-panel; it's a little harder to see in the bottom one on the weather screenlet, but it's there. I have a bottom gnome-panel, too, and it's on that one, as well. I just recently noticed them, but I'm not sure where they came from. Does anyone know how to get rid of them? It's not really causing any problems. It just bothers me because I'm a bit of a perfectionist. I've tried searching the web and the forums for a solution but I'm having a hard time finding anything because I don't know the official name for that design element.

View 3 Replies View Related

Fedora :: Removing Shutdown/Restart In Pull Down Menu And Login In 13?

Sep 20, 2010

I have a workstation with Fedora 13. This workstation is used for very long remote processes. Recently it has been shutdown accidentally by a user and has caused the loss of some of these processes. As such, for precautionary reasons, I have decided to remove these options from all our workstations so that only the super user can initiate reboots or shutdowns.

In previous versions I was able to do this by using gdmsetup and unchecking the Show Action Menu option. This also added the SystemMenu=false flag under [greeter] in the /etc/gdm/custom.conf file. This was under RedHat EL5. However in Fedora 13 neither of these methods work. Gdmsetup no longer exists and adding that flag to the custom.conf file does not work. I rebooted after editting the file and the shutdown option still appears at login.

View 2 Replies View Related

Ubuntu :: Firefox Loses Pull Down Menus And Right Click Menu?

May 18, 2010

I'm running 10.04 w/ Firefox 3.6.

Often, and esp after adding something with apt-get or Synaptics I find Firefox will lose the ability to display either pull down menus or a menu from a mouse's right button.

I've been doing some initial searches for a bug report on Launchpad (but it is unclear if it is being used to actively track bugs vs some other place).

My 'hit it with a hammer' approach to a fix, at least to this point, is to reinstall from the local store or cache, the application;

Synaptic
Status Filter
Firefox (in the Quick Search field)
Mark the existing Firefox for Reinstallation

No files get downloaded, but a restart of Firefox and 'tada'; menus return.

View 2 Replies View Related

Ubuntu Servers :: Dist-upgrade Wants To Pull In Irrelevant Packages

Jun 22, 2011

I've been running an overnight cron job for months on my servers which tells me what apt-get dist-upgrade wants to do.

This morning I was faced with it wanting to install 115 new packages including many (if not all - I can't face checking, e.g. firefox) which are entirely pointless on a server with no gui.

apt-get upgrade wants to do the sensible (in my mind) thing.

To save anyone asking, I've been using dist-upgrade because upgrade wouldn't report on pending kernel upgrades and, until I spotted that, I was due kernel upgrades for quite a while before I realised.

I presume this is caused by an over-enthusiastic depends or recommends somewhere but does anyone actually know?

Off to work now but I'll look further this evening so any pointers before then gratefully received.

All ok again now, the bug with language pack dependencies has been fixed - [URL]

View 5 Replies View Related

Debian Hardware :: Can't Seem To Pull Any Info On The Temp Sensors For New MSI H61M-P21(B3) Mobo?

Aug 7, 2011

LM-Sensors can't seem to pull any info on the temp sensors for my new MSI H61M-P21(B3) mobo. Is MSI just not Linux friendly? Or could it possibly be that there really are no temp sensors on this board? I must be missing something simple here

View 9 Replies View Related

Ubuntu Servers :: Skews Bandwidth Usage When Pull Music Off The Server

Aug 20, 2010

Recently our houses internet usage has skyrocketed and i'm trying to keep an eye on it using bandwidthd (installed on the server). It installed fine and counts traffic fine, the problem is we have a server that hosts our music/movies/etc and when people pull music off the server it skews their bandwidth usage. I'm looking for a way to exclude all traffic on the local network and only count internet traffic. This is the filtering part of the config file

[Code]...

View 2 Replies View Related

Ubuntu Installation :: When Pull The Power Cable From The Laptop Screen Freezes

Aug 11, 2011

I have a Lenovo Thinkpad T520 laptop with Nvidia NVS 4200m Graphics card. I installed Ubuntu 11.04.

Before I installed Ubuntu 11.04 I had went to my bios and disabled Nvidia Optiums and changed the graphics to Discrete Graphics. Then inserted my Ubuntu 11.04 CD and installed.

With this I had gotten unity to work. However when I pull the power cable from the laptop my screen freezes. Also if press "FN"+ Home or END to change the brightness of the screen my screen freezes and no longer able to move the mouse or press anything on keyboard.

Did anyone ever run into this problem and or fix this issue? I can get the graphics working properly with Ubuntu 11.04 with Unity with a Nvidia NVS 4200m graphics card.

View 2 Replies View Related

Ubuntu :: Extra Folders Included At The Bottom Of The Pull Down Places Menu

Apr 14, 2010

I left a friend playing with my PC and after she was done there are several extra folders now included at the bottom of the pull down places menu. How do I remove these again?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved