Using SQL Plus, you can run a script with the "@" operator from the command line, as in:
c:\>sqlplus username/password@databasename @"c:\my_script.sql"
But is it possible to just run a single command with a similar syntax, without a whole separate script file? As in:
c:\>sqlplus username/password@databasename @execute some_procedure...
Hello,
I'm getting a strange 5 to 7 second pause when executing PHP scripts from the command-line PHP client (PHP 5.2 on Windows).
During this pause the PHP script just appears to 'freeze' for a while before returning to the command prompt. It is not using any significant CPU time, it's like it is waiting for some delay.
After experi...
I've got a command line version of an Eclipse RCP GUI application that can makes use of a lot of the same plugins (this is handy for integration testing). One thing it does is connects to a server, requests stuff and starts an interactive loop. To exit, the user of the GUI app can stop the loop and close the application.
In my command l...
As mentioned in the docs the optparse.OptionParser uses an IndentedHelpFormatter to output the formatted option help, for which which I found some API documentation.
I want to display a similarly formatted help text for the required, positional arguments in the usage text. Is there an adapter or a simple usage pattern that can be used f...
I have a text file of about 20 million lines. Each line is 25 characters long. I estimate that there are probably about 200k-300k unique lines. What I want to find out is exactly how many unique lines there are, and how many occurrences of each line there are (I expect the result to be power-law-esque).
I could do this:
sort bigfile...
I am looking for a CPU profiler for .NET supporting
heavily threaded apps.
(double) quad-core CPUs.
sampling profiling.
64 bits OS.
command-line API.
Currently, I am getting trouble with most .NET profilers, in particular,
YourKit does not seem to support command-line.
dotTrace 3.1 is crashing with 64 bits OS.
I haven't tried In...
I've got what seems like it should be a really simple problem, but it's proving much harder than I expected. Here's the issue:
I've got a fairly large image sequence consisting of numbered frames (output from Maya, for what its worth). The images are currently in Targa (.tga) format, but I could convert them to PNGs or other arbitrary...
find . \( -name "_*" -or -newer while2 \) -type f -print
In the linux command above , why _* should be quoted ?
...
Hello all,
I have this Shell script and I've managed to muck it up and I was hoping I could be corrected and put on the right path and hopefully add a few things that I am not competent enough to do myself. I have put what I want do as comments in the Shell script below.
#!/bin/bash
#Get all files from dir "videos" and send to processL...
Hello all,
I was kindly helped a few minutes ago by a user named Juliano and the script works fine but it just baffles me why it continues to work when I press enter, if I don't it just sits there untill I have to keep pressing enter. I thought that was the job of the for loop?
#!/bin/bash
TIMEFORMAT=%6R
for file in /home/t...
What is that one not usually known command in unix and windows that you know?
It is heard that windows contains several hidden applications which sometimes
may be very useful.
...
PROBLEM:
C:\>**cl /LD hellomodule.c /Ic:\Python24\include c:\Python24\libs\python24.lib /link/out:hello.dll**
'cl' is not recognized as an internal
or external command,
operable program or batch file.
I am using Visual Studio Prof Edi 2008.
What PATH should I set for this command to work?
How to execute above command us...
I can run this fine:
$msbuild = "C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe"
start-process $msbuild -wait
But when I run this code (below) I get an error:
$msbuild = "C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe /v:q /nologo"
start-process $msbuild -wait
Is there a way I can pass parameters to MSBuild using start-...
I have run into two situations lately where I have chosen to use the command line for doing something rather than the PHP library. For example, in PHP doing this:
`curl http://someplace.com`
instead of this:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec(...
What is the best way to convert a table within an HTML document to an excel-readable file? I would like this to be a command-line tool that I can call in bash on my mac, as I'd like to batch process a bunch of HTML files.
I know I could write a script to do this fairly easily, but am looking for generic, existing tools that can be call...
The postbuild task for one of our solutions uses xcopy to move files into a common directory for build artifacts. For some reason, on my computer (and on a VM I tested), the xcopy fails with "Access Denied". Here's what I've done to try and isolate the problems:
I tried a normal copy; this works.
I double-checked that none of the fil...
There is this post for .Net, but it is not really informative. Any other suggestions? This must be a duplicate, though my first cursory search only turned up the one I already mentioned.
Duplicate of:
Option Parsers for c/c++?
Best way to parse command line arguments in C#
...
Does anyone know of a good way to do remote administration of a Windows XP machine using just the command line?
At the moment the only things it needs to do is to be able to install applications/patches, and transfer files to and from the machine, and installing registry patches would be nice as well.
Currently we use a horrible hack...
With top it's easy to find out how much CPU each job uses. However, I want to hunt down a job that causes a high wait CPU. Is there a way to find out which jobs are blocked on I/O?
...
I would like to redirect the output from a command to a file and to stdout. I am using Windows XP command line.
I realize that there is a command in linux called tee which will do this, but I want this in windows.
...