I have a number of Ruby files, each of which declares a Class, but each of which could conceivably be run from the command line.
I'd like to put the following functionality at the bottom of each file with the least duplication possible:
if __FILE__ == $0
# instantiate the class and pass ARGV to instance.run
end
My first instinct wa...
I'm looking for something like VNC for a command line interface. Specifically, I'd like to be able to share an ssh session (say via Putty) with someone else, working from another office across the country. We'd both be able to type things into the console, and see what the other one's doing (including more complex things things like vim ...
I want to get the name of the currently running program, that is the executable name of the program. In C/C++ you get it from args[0].
...
Is there any official command line (switches) reference for the different versions of
Adobe (formerly Acrobat) Reader?
I didn't find anything on www.adobe.com/devnet/, ...
Especially I want to
Start Reader and open a file
Open a file at a specific position (page)
Close Reader (or single file)
...
Hello all,
I wish to introduce a for loop in my shell script and I was hoping I could get some help with this.
I am executing a command from a text file. I wish to execute each command 10 times and insert some stats into a csv file. After that command has been done, I want to start the next BUT put a line break in the CSV file after th...
Hi,
I'm having a very weird issue with the command line and running Ant. I point the path variable at the location of my Ant bin directory (C:\Ant\bin) and when i go into a command window and type PATH it shows the location in it. But when I go to run Ant by typing "ant" it does nothing and states that it isn't recognized. But when I g...
i need to redirect a output of a command to two files say file1 and file2
file1 is a new file and file2 is already existing file where i need to append the output
i have tried
This is not giving the expected results:
command > file1 > file2
...
bash, bat, whatever...
What is your favourite command line hyperproductivity trick?
...
I accidently made a command shell full screen, I managed to get it back to its original state but now when I run visual studio my screen flashes black, I assume this is the full screen command shell kickign in.
Can anyone help please? If one more colleague asks do I have a virus I am going to headbut the desk.
Thanks,
B
...
I can't find a way to detect the name of the server running a PHP script from the command line. There are numerous ways to do this for PHP accessed via HTTP. But there does not appear to be a way to do this for CLI.
For example : $_SERVER['SERVER_NAME'] is not available from the command line.
Does anyone have suggestions?
Thanks,
Ju...
Can someone please give me a recursive command that will go through a directory and make all normal files permission 644 and all sub directories 755?
I am really getting tired of doing this manually every time I have to install something on my host. I don't know enough BASH (Shell?) command to do this.
...
If I have an XCF file (or any other supported by Gimp) how can I convert it to, for example, PNG for display or further processing?
...
I'm looking for a command line argument parser, such as "Command line parser" from http://www.sellsbrothers.com/tools/Genghis/ .
Features I'm looking for:
Auto-generation of usage
Should able to check required and optional parameters
Parameters should support IEnumerable with separator support
Should support flag parameters
Would be n...
With TortoiseSVN, I can move a file into the ignore-on-commit changelist, so that when I commit a whole tree, changes to that file do not get committed.
Is there a way to do something like that using the svn command-line tool?
EDIT: Thanks for the suggestions to use svn:ignore, but that doesn't do quite what I was looking for.
svn:ign...
We have an ASP.NET application and I need to add a custom HTTP header to IIS for all the developers on the team, so I want to add a command in the NANT script that will add the HTTP Header when the build script is run. Is it even possible to do this from the command line.
I've been looking up the documentation on cscript adsutil.vbs ...
I've done some looking and there are a whole lot of libraries for command line option parsing, but it is difficult to differentiate between them. Does anyone have any experience with any of them? Is one harder/better/faster/easier/whatever than any of the others? Or should I just grow my own?
...
Hi
I am trying to get some information out of TFS. Specifically, for a given user, I would like to get a listing of all changesets with their date and all changed items (bonus points for inline diff). This listing will be used to run a diff for all modified files.
Something along the lines of:
tf history /user:USERNAME
// pump change...
I have installed Eclipse and CDT (to use C/C++ in eclipse CDT is needed), as well as installing Cygwin so that I can compile my files.
In environment variables I've set Path to include the following: "C:\cygwin\bin;"
g++, make and GDC are all installed via Cygwin. I made sure of this by searching for them in the bin folder - they're al...
I am having an issue with the Microsoft Visual Sourcesafe command line options that I'm hoping someone has run across and can assist me with.
I have the following line in a DOS batch file.
"c:\Program Files\Microsoft Visual SourceSafe\ss.exe" GET
"$/Development Projects/Activity" -GL"C:\Compile\Activity" -R -Q
-Yname,passwor...