I am trying to run a set of test cases through one of our internal applications. I need to be able to automate these tests and run them through the command line and log various things. The problem is that the existing code does not separate the view from the controller and throws MessageBoxes and Alerts everywhere that ask the user to cl...
Hello all,
I use this ffmpeg command to take clips from a large VOB files that is on a DVD:
ffmpeg.exe -i E:\VTS_02_2.vob -ss 00:00:57 -t 00:16:15 vids\VTS_02_2.vob
It worked first for a VOB file but then I got these errors:
c:\ffmpeg>ffmpeg.exe -i E:\VTS_02_2.vob -ss 00:00:57 -t 00:16:15 vids\VTS_02_2.vob
FFmpeg version SVN-r15625,...
How can I recursively delete all files & directories that match a certain pattern? e.g. remove all the ".svn" directories and the files they contain?
(Sadly DOS only)
...
Hi, I'm new to Rails and I'm aware it has things such as unit-testing built in. But I'm interested in doing some more simple tests that are equivalent to your "printf" in C. So I'm testing a login page I've written and want to trace the code to see what each line like my find methods are returning. I try outputting with "puts" but I don'...
I need to delete files of a certain type (.zip files, say) from a folder, and all of its sub-folders, using the command line. Ideally I am looking for something that can be run as a .bat file in Windows.
I know there is a /S switch for the DEL command to look in sub-folders, but to add to the challenge I need to exclude files of a cert...
I have a bunch of servers, on which I run experiments using screen. The procedure is the following :
ssh to server XXX
launch screen
start experiments in a few tabs
detach screen
disconnect from the server
While the experiments are running, I can easily find on which servers they are by sshing to all servers and listing my running pr...
C#: I want to pass messages like a file path to my forms application like a console application, how would I do that?
I was told I needed to find my main method to add string[] args, but I wouldn't know which one that would be in Windows Forms. Which would my main method be in C# windows forms application?
...
Hello, can some one recommend a good (hopefully free) command line diff utility. I would basically need to kick it off from .Net to produce some sort of a text file with the differences between two xml files.
Thanks!
...
Just wanted to share an issue I was experiencing trying to connect to a remote MSSQL Server with mssql_connect(), from a ubuntu box. With identical php.ini files and correct permissions the connect would be established when I ran the connection script through the command line, but not in the browser.
...
According to the docs for the Unix "screen" command, you can configure it in .screenrc to start with a bunch of default screens, each running a command that you specify.
Here's my cofig:
# Default screens
screen -t "shell_0" 1
screen -t "autotest" 2 cd ~/project/contactdb ; autotest
It will not run the autotest command. That window ...
Hello all,
I have this command that I run every 24 hours currently.
find /var/www/html/audio -daystart
-maxdepth 1 -mtime +1 -type f -name "*.mp3" -exec rm -f {} \;
I would like to run it every 1 hour and delete files that are older than 1 hour. Is this correct:
find /var/www/html/audio -daystart
-maxdepth 1 -mtime +0.04 -type f -...
What's the easiest/best way to find and remove empty (zero-byte) files using only tools native to Mac OS X?
...
I'm only new to using SSH, but when I log in I end up in the directory ~, which in general is the same directory when FTPing in. I can still go to /, but I don't know what the ~ means. Home? Where is it in relation to /, or how could I find out?
...
What is the easiest way to add a text to the beginning of another text file in Command Line (Windows)?
...
how can I delete all files and sub directories from current directory including current directory?
...
This is another question based on an answer that was given to me.
What I need is the ability to do a system command line zip of large files based on what the web user selects and then prompt them or force a download. Can this be done?
...
I want to check in linux bash whether a file was created more than x time ago.
let's say the file is called text.txt and the time is 2 hours.
if [ what? ]
then
echo print "old enough"
fi
...
Hi,
I run the following command as a pre-Build event in Visual Studio 2005 and it works fine:
SubWCRev.exe "C:\work\subversion\aviOffline .Net\trunk"
"c:\test.tmpl"
"c:\testout.txt"C:\work\subversion\aviOffline .Net\trunk"
So I change the command to use the in-built Visual Studio macros for better maintainability but it fails. It ...
Pardon my ignorance but how do you compile a .CS file from a command-prompt window? And how do you execute?
...
There's a builtin unix command repeat whose first argument is the number of times to repeat a command, where the command (with any arguments) is specified by the remaining arguments to repeat. For example,
% repeat 100 echo "I will not automate this punishment."
will echo the given string 100 times and then stop.
I'd like a similar ...