I am aware of using lsof for checking the files currently accessed by a process. Does there exist a way to see all files that an application opens in it's lifetime?
I need to write some scripts to make changes to Apache conf files, namely to add/update VirtualHosts. I plan on doing this in Ruby. before I write my own, are there any scripts/rubygems which allow Ruby to parse/modify Apache conf files, specifically <VirtualHost> directives?
I run a cron job that requests a snapshot from a remote webcam at a local address:
wget http://user:[email protected]/snapshot.cgi
This creates the files snapshot.cgi, snapshot.cgi.1, snapshot.cgi.2, each time it's run.
My desired result would be for the file to be named similar to file.1.jpg, file.2.jpg. Basically, sequentially or date/time named files with the correct file extension instead of .cgi.
Any ideas?
When I transfer larger files (a few hundred MB) on a network share (either Buffalo LinkStation or other Windows machine) from my Windows XP Pro SP3, it always stalls. Smaller files are no problem, reading from a network share is also no problem. I already had this problem on my notebook and now on my desktop machine, so I assume that it most likely is no driver problem.
Does anybody have a clue what could be the problem — or better: the solution?
I am trying to convert 20+ .avi files in a batch using ffmpeg.
I've got the following
@echo off.
for file in *.avi
do
ffmpeg -i "$file" -s 640x480 -vcodec msmpeg4v2 "'basename "$file" .avi'.mpg';
done
in my .bat file but it does not work. How can I make it work under Windows OS. Oh, and yes all the files are in the same folder.
The error message I get:
File was unexpected at this time
A client wants us to push data files to them on a daily basis using SFTP (ssh over ftp). We are a 100% Microsoft shop with no Linux admins on staff. I am looking for recommendations on how to do achieve this. I have seen different applications for automating the sending of files via SFTP, but I don't know if they are a good approach or not.
What have you found to be the easiest way to deal with this in a Microsoft Environment?
WAR files are simply ZIP files with a renamed extension. I'd like to configure a compression program to handle these (on double-clicking the file), but jZip doesn't recognize them unless I rename them to .ZIP. I have setup Windows file associations, but jZip just wants to 'add them to archive' instead of opening them.
Which compression program would you recommend?
I'm trying to create a way of opening a set of project files in multiple apps, using Alfred.
I know about the File Group extension in the powerpack (I have this), but as far as I can see, there's a limitation in that it only opens the files with the default app.
My usage case is this:
Open a .html file with Chrome
Open the same .html file with MacVim
Anyone know a way around this? Maybe an applescript is more what I'd need?
I have a bunch of media files which I want to record to DVD, but since each DVD only fits 4.5GB, I have to find the optimal way to organize the files to use the minimum number of DVDs (otherwise the empty space left in each DVD can easily add up). Are there any tools to help with this?
Many years ago there was a DOS utility to do this with floppy disks.
Whenever I do a checkout/update on my SVN project using Tortoise the files all get set to read-only. Is there an option to stop this? I have 1 particular project where I need any checkouts/updates to never make files read-only.
Thanks
If I have a text file in Unix that contains N-many independent entries (e.g. records about employees, where each employee has a separate record), is it expected that this file will take up less space than if I split the file into N files, each containing the entry for one employee? in other words, can one save significant space on unix file systems by concatenating many files together, or is the difference negligible? thanks.
I wish to extract files using RAR or ZIP but I need to be able to rename the files being replaced so that there is a copy of the previous version in case something goes wrong.
Couldn't see any options in WinRAR to do this.
In the default email client in Windows Phone 7.5 Mango, how can arbitrary files(.zip, .mp3, .txt, .pdf etc) be attached. As the storage is sand-boxed, the file handler can implement hooks to the email client, as MS-Office does and Adobe Reader doesn't, but the email client can not access files in the Phone's storage.
Is there a way, or a work around? I my usage pattern, I tend to send a lot of pdfs, and am unable to do that!
i have a zip of a pretty large website. i ftp the zip over to the server and then unzip it and extract to the website folder but this is very slow
is there anyway to just extract and copy the files that are newer (compared to all files)
I've noticed recently that Microsoft Word 2007 on Windows XP is opening by default straight text files as RTL instead of LTR. These are English written files, and contain no Unicode or characters other than ASCII. I work in three or four languages on the computer so have the language bar open, this problem happens when the language is selected to EN (United Kingdom).
Is there a setting I'm missing somewhere, perhaps in Word itself?
Hi,
Just a quick question. When using shared hosting, can system admins (employed by the host) access your files and read your database connectionstring details? Can they also access your database, and view the files, without a connectionstring? I'm assuming there's a certain level of trust, but is this possible/common?
Thanks
I am currently attempting to transfer over 1 million files from one server to another. Using wget, it seems to be extremely slow, probably because it starts a new transfer after the previous one has been completed.
Question: Is there a faster non-blocking (asynchronous) way to do the transfer? I do not have enough space on the first server to compress the files into tar.gz and transferring them over. Thanks!
Hello
I'm checking the ftp settings a client has sent me. I can create, edit and upload/download .html files fine. However I'm finding that .php files aren't brows-able, unless I don't use php tags.
I know very little about the clients server at this point, but I have checked for a .htaccess file and not found one. What else can I do to determine if php is supported?
This seems to be resolved.
Hi,
I am trying to remove all the files in a directory hierarchy which a certain string inside the file (not the file name, it is the file content).
I can list out all the file name which has a string in the file using 'grep -r -l mystringlooking for'.
But how can I remove all the files returned by the grep ? I am trying this on ubuntu.
Thank you.
Is there a way to unzip a zip file into a directory, but only do so for updates files?
I have a huge directory of files there, and only about 20% are different.
Preferably using command line, but it's optional.
Thanks.
Hi,
I am translating some po-files and I would like to run a spell checker over them. I have Ubuntu 10.10 and use gtranslator. As far as I know, gtranslator can't spellcheck the whole file.
I tried ispell: $ ispell lordsawar-0.2.0-pre4.de.po - this doesn't work, as English and German strings, as well as some programming-relevant comments appear in the .po-file.
Do you know any program running on Ubuntu which can spell check po-files?
We just recently installed and have been using SharePoint 2010 and have run into a bit of a problem opening Excel spreadsheets with the xlsx extension.
We are able to upload a spreadsheet with the xlsx extension, however, when we attempt to download the same spreadsheet we are getting the following error:
Excel
An error has occured.
Please try again.
We can open xls files fine as well as docx and pptx files.
I would like to look at some log files solely via the console on a standard Windows 7 machine. The logs are created by schedulded tasks and I find it a hazzle to use VNC for this purpose.
What technology should I look at? Powershell, Cygwin via ssh or something else? The log files are written using log4Net - thus there might also be an easy way to reconfigure it to create events or something else for remote display.
does serving files like images via subdomain speed up loading speed. i read somewhere that static files like images, java script served via cookieless domain does mean something regarding website speed.
Im converting lots of .doc files into .pdf using Nitro PDF Express. The program isn't finish converting the 37 files yet maybe 10 are converted and are in the output directory already.
But when I cancelled it, even the converted one's are deleted. Can I still find it somewhere or are they gone for good.