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


ADVERTISEMENT

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

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 View Related

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 :: 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

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

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

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

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

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

Programming :: How Come Windows .exe Files Can Not Be Run?

Mar 31, 2011

I have been doing some work with assembly and low level stuff like that and had some questions. When programs are compiled they are converted into machine language. The problem is that all of the books I read assumes the user uses Linux. How come windows .exe files can not be run in Linux? I under stand there are some proprietary software that might be required like directx but I'm not talking about that. How come the same C program compiled in a Linux environment and a windows environment cant be interchanged? What is physically different about compiling a program in windows and Linux? Is one way better then the other or are they just different ways to reach the same place? I haven't done any work with apple computers but I assume that its similar to Linux.

I have been looking around the internet and the best answer I have been able to get so far is "because that's how it is" and "because windows uses file extensions". If somebody were able to give me the facts or point me to a website that does I would be very happy.

View 3 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 :: 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 :: 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

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

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

Programming :: Command For Find/Replace In Text Files (inc. Files In Sub-folders)?

Oct 11, 2010

I found this command that works great finding and replacing a simple string to another in files located in that folder and all sub-folders.

Code: find . -name '*.php' | xargs perl -pi -e 's/OldText/NewText/g'

The problem I have is that I need to replace a more complex string, like this: Old string: /mnt/stor6-wc2-dfw1/627896/982574/ New string: /mnt/stor8-wc2-dfw1/369587/302589/ There I don't know how to do it... since the / is what separates the old from the new strings, and the strings that I want to replace have / in it. Also, I would like to know how to specify under what folder replace the files, for example, I want that it search/replaces all files under /var/www/mysite/htdocs folder.

View 1 Replies View Related

Programming :: Sort Files In Directories Based On Files Date

Sep 8, 2009

I need a script that will take all the files in a given directory and create new monthly sub-directories and sort all the files based on the creation date into the appropriate directory.For example, all files created between 01/01/09 and 01/31/09 will be placed in 'JAN-2009'

View 5 Replies View Related

Ubuntu :: Put My Windows Files On E Drive Without Going Through The Hassle Of Reinstalling Windows?

Jan 23, 2010

I currently dual boot windows XP Pro with Ubuntu 9.10. I made a mistake last night playing with gparted and lost my E drive, which had all of my music, games and movies plus is where my Ubuntu install was. I then ended up reformatting the drive with windows and reinstalling Ubuntu 9.10.My question is how can I put my windows files on my E drive without going through the hassle of reinstalling windows.

I have a 20g IDE drive where my windows install is, windows and Ubuntu both tell me this drive is failing, (I have used it for booting since 2002, so I am not that concerned with it), another 40g IDE drive for more storage and a 160g SATA drive where Ubuntu is again installed. I want the SATA drive to be my main boot drive now, so how can I clone my windows boot to the other drive. I tried gparted but could not figure it out. I have gparted burnt to cd, booted with it and just don't understand how to use it.Also, if I clone this boot drive to the SATA drive, do I need to change jumper settings on my 40g to master when I take out the 20g drive.20g master and 40g slave on first IDE channel and 2 CD devices on second IDE channel and SATA drive on first SATA connection. I read somewhere that it is better to keep the cd devices on another channel than the disk drives.

View 1 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







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