So I am running a program currently and it outputs an html file to a static location/name and i want to keep all of them, a log pretty much.
How would i go about changing the name of that file to something different, and unique, and possibly change the location of that to a log folder via command line. I was thinking of adding a times...
Looking for a command that will return the single most recent file in a directory.
Not seeing a limit parameter to ls...
...
I was wondering what the best approach might be for creating a backup of my organisation's SourceSafe database, and moving it to a share on another server? Currently we have a scheduled job which runs a batch file, which in turn executes a PowerShell script.
This Powershell script creates a backup file (using SourceSafe command-line arg...
I need to write a Python script that can run another command line program and interact with it's stdin and stdout streams. Essentially, the Python script will read from the target command line program, intelligently respond by writing to its stdin, and then read the results from the program again. (It would do this repeatedly.)
I've loo...
Hello!
I'm currently trying to make a small testing application for various programming tasks. It will run executable file which will generate output on another file and then compare it with answer. This far I think I will be able to get easy, but I have a problem...
I want to limit the time that this executable file can run, for examp...
How can I get the command line arguments in (specifically in GNU, if there are any differences) Common Lisp?
...
Is there any way to disable specific MSBuild warning (e.g. MSB3253) when running MSBuild from command line? My build script calls msbuild.exe much the following way:
msbuild.exe MySolution.sln /t:Rebuild /p:Configuration=Release
I've found out that I can suppress C# warnings (e.g. CS0618) using another parameter for msbuild.exe:
msbu...
Hello all,
I have looked everywhere to find a linux utility that will allow me to download rtmp streams. Not flv video but MP3 streams. The location of the streams I want to download are in this format.
rtmp://live.site.com/loc/45/std_fc74a6b7f79c70a5f60.mp3
Anyone know of such a command line tool? Or even anything close to what I am...
I'm thinking of using find or grep to collect the files, and maybe sed to make the change, but what to do with the output? Or would it be better to use "argdo" in vim?
Note: this question is asking for command line solutions, not IDE's. Answers and comments suggesting IDE's will be calmly, politely and serenely flagged. :-)
...
I'm renaming empty file extensions with this command:
rename *. *.bla
However, I have a folder with hundreds of such subfolders, and this command requires me to manually navigate to each subfolder and run it.
Is there a command that I can run from just one upper level folder that will include all the files in the subfolders?
...
Hello,
I'm interested in different approaches to gracefully shutting down a Java command line program. Sending a kill signal is not an option.
I can think of a few different approaches.
Open a port an wait for a connection. When one is made, gracefully shutdown.
Watch for a file to be created, then shutdown.
Read some input from th...
Hi everyone,
I created an ActiveX control ocx file using Visual Studio 2008.
Then tried registering the ocx file from command prompt "regsvr32 filename.ocx"
It gave an error saying "Load Library(filename.ocx) failed- The application has failed to start because configuration is incorrect. Reinstalling the application may fix this proble...
To illustrate, here's how to do it from the command-line:
vim `grep "hello" * -Rl`
This opens vim with all the files that have "hello" in them (-l gives the filenames alone). I want to do the same thing, but from within vim. Conceptually, something like this (which doesn't work):
:args !grep "hello" * -Rl
I'm open to completely di...
I have tried several things so far but haven't had much luck yet, what I'm attempting to do is to have a command line or powershell script that I can run once a day to make sure my numerous checked out projects are up to date. I know I would be looping through the directory folders inside my workspace, but when setting the variables I ha...
Does anybody know what is the equivalent to $? in Windows command line? Is there any?
EDIT: $? is the UNIX variable which holds the exit code of the last process
...
I have a program that passes command-line arguments to an associated file (i.e. associated file extension) of an executable. The executable never receives the arguments. However, if I start the executable directly and pass it both the path to the associated file and the arguments, then it receives both the file path and the arguments.
...
I tried to check if XML::Simple is installed in my system or not.
perl -e 'while (<@INC>) { while (<$_/*.pm>) { print "$_\n"; } }'
The above one-liner was used for listing all modules installed in my system. However, it is not listing XML modules.
However, the following executes fine.
perl -e "use XML::Simple "
What might be the i...
hi all:
We are doing an app to manage and print word, excel, power point and pdf files...
No application can be shown to the user when printing
to do that we find some command-line arguments that work well:
(using openoffice.org)
"C:\Program Files\OpenOffice.org 3\program\soffice.exe" -norestore -nofirsts
tartwizard -nologo -headless...
Is there a command which will print the path of the file in the repo-browser in the command line?
SVN diff only prints the file name.
Thank you.
...
Dupe of http://stackoverflow.com/questions/1048356/is-there-a-command-which-will-print-the-path-of-the-file-in-the-repo-browser-in-t
Is there a command which will print the path of the file in the repo-browser in the command line?
SVN diff only prints the file name.
Thank you.
...