QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I execute command foo within function foo?

Z-Shell Frequently-Asked Questions
The command command foo does just that. You don't need this with aliases, but you do with functions. Note that error messages like zsh: job table full or recursion limit exceeded are a good sign that you tried calling 'foo' in function 'foo' without using 'command'. If foo is a builtin rather than an external command, use builtin foo instead.

How do I execute a servlet from the command line, or from Unix shell program or Windows BAT file?

jGuru: Servlets FAQ Home Page
Of course as with any Java class, you could put a "main" method in your class that extends HttpServlet, so you could run it (the main(), not the doGet...

How long does it take to execute a command?

FAQ about PMC Motion Controllers
For our MultiFlex and DCX Series of PCI-bus controllers (MultiFlex PCI 1440, MultiFlex PCI 1040, DCX-PCI300, DCX-PCI100, the command execution time is typically on the order of 50-100 microseconds per command. When using Pentiun III class computers or above, PMC's legacy ISA-bus controllers can achieve 1,000-1,500 commands and responses per second. For our PCI-bus controllers, the command rate is higher - typically in the range of 5,000-10,000 command-and-response cycles per second.

How can I execute a command with system() and read its output into a program?

The C Language FAQ
Unix and some other systems provide a popen() routine, which sets up a stdio stream on a pipe connected to the process running a command, so that the output can be read (or the input supplied).

How can I execute more than one command in the need-op settings?

The Eggdrop FAQ: Running the bot
The best is to create a separate procedure to handle everything you need: chanset <#channel> need-op "need_op_cmd <#channel>" proc need_op_cmd { channel } { command1 command2 ... } To do this, you need to edit the first line of the config to make it point to the full path of where your eggdrop binary is. For example you have

Sect. 18) How do I execute a command in my program?

Java Programmer's FAQ - Part D
Use Runtime.getRuntime().exec( myCommandString ) where myCommandString is something like "/full/pathname/command". An applet will need to be signed in order to allow this. If the pathname contains spaces, e.g. "c:\program files\windows\notepad", then enclose it in quotes within the quoted string. Or pre-tokenize them into elements of an array and call exec(String[] cmd) instead of exec(String cmd). From JDK1.3 there are two new overloaded Runtime.exec() methods.

What command should I use to print from shell?

Frequently Asked Questions
One command you can use is a2ps by typing 'a2ps filename'. When using this command you also need to set your printer to one nearby. Look at the next faq item for more information on how to do that. If you want to print using a graphical interface you can use the command qtcups by typing 'qtcups filename'. Look at the manual pages for more information about these two print commands by typing 'man a2ps' or 'man qtcups' at a terminal prompt.

How do I execute a batch file or shell script from Ant?

Apache Ant - Frequently Asked Questions
On native Unix systems, you should be able to run shell scripts directly. On systems running a Unix-type shell (for example, Cygwin on Windows) execute the (command) shell instead - cmd for batch files, sh for shell scripts - then pass the batch file or shell script (plus any arguments to the script) as a single command, using the /c or -c switch, respectively. See the above section for example <exec> tasks executing sh. For batch files, use something like: <exec dir=".

Can one execute an operating system command from PL/SQL?

PL/SQL FAQ - Oracle FAQ
There is no direct way to execute operating system commands from PL/SQL. PL/SQL doesn't have a "HOST" command, like in SQL*Plus, that allows users to call OS commands. Nevertheless, the following workarounds can be used: Write an external program (using one of the precompiler languages, OCI or Perl with Oracle access modules) to act as a listener on a database pipe (SYS.DBMS_PIPE). Your PL/SQL program then put requests to run commands in the pipe, the listener picks it up and run the requests.

How do I run a complex command that I can type at a shell (command) prompt via STAF?

Frequently Asked Questions About STAF V3, STAX, and STAF Ser...
The PROCESS service has a SHELL parameter which specifies that COMMAND should be executed as though you were at a shell prompt. This allows complex commands involving pipelines to be readily executed. Note, if COMMAND and PARMS are both specified they will be concatenated with a space between them, and the resulting string is what will be executed. Unix Command Line Example: STAF local PROCESS START SHELL COMMAND "ps | grep test | wc >testcount.txt"

Why can't I use 'dir' with run-shell-command?

Allegro Common Lisp FAQ
On Windows, excl:run-shell-command executes programs but does not invoke shell commands. The function is therefore misnamed for Windows. It is called run-shell-command to provide cross-platform compatibility between Windows and Unix and back compatibility for ACL4.3.x users. It does behave differently on Windows and Unix. The difference is related to differences between UNIX and Windows. See the documentation page for excl:run-shell-command for details on this point.

How to access variables or functions in a Ch program from Ch shell command line?

Frequently Asked Questions for Ch
In Ch shell, You can access variables or functions in a Ch file if they are global variables or functions. For example, if you have a file called test.ch, You can access variable var in Ch shell after running the "test.ch". The following example is an example for accessing function in a Ch file from Ch shell. cat test.ch /* this is the file test.ch */ #include int var = 5; var += 1; // or any other statements Here is an example how it can be done in a Ch shell. > cat prog.

How to unload defined functions and variables at the command prompt of a Ch shell?

Frequently Asked Questions for Ch
You need to use the command remvar to remove the defined functions or variables. > int var = 90 > remvar var > float var = 5.0 // now you can redefine 'var' If a defined function such as blah() is called at the command prompt, you need to remove the definition from the ch command shell with remvar, before modifying the function definition. Otherwise, the modified function definition won't work at the current command prompt. Here is an example as demonstrated below. > blah() > vi blah.

What type of commands can I use with the "Shell command on the User PC" ?

IE Toolbar Builder samples
You can launch any programs (such as word.exe, notepad.exe) or execute any commands that are accessible from the Start->Run menu (like tracert and cmd).

How to run Windows command in Ch shell without being blocked?

Frequently Asked Questions for Ch
Like in Unix, a command in Windows can be executed in the background by appending "&" at the end of the command. For example, c:/> notepad & Ch supports all Windows serial port I/0 functions listed in CHHOME/include/windows/conio.h, you can find more information at Microsoft developer network web site http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/communications_resources.asp . The Windows APIs used for serial port communication are listed below.

How can I replace the command associated to the ps2pdf button to execute Acrobat Distiller?

WinEdt.org -- Help & Documentation -- FAQ
Alex doesn't maintain macros for Acrobat Distiller (work is hard enough to keep up with the changes that every new Acrobat Reader version has in its baggage), but he provided clear instructions on the mailing list on how to set up such a customization yourself. or if this for some reason fails replace %$('Acro-Bin'); with full path to acrodist.exe enclosed in double quotes, eg.: "C:\Program Files\Adobe\Acrobat 6.0\acrodist.

Who can execute a will?

Inspector Genaral of Stamps and Registration
a) Any person above the age of 18 years and mentally sound may execute will, but will caused by fraud or coercion or by importunately will not be valid. Therefore a will must be executed voluntarily. d) Scribe (deed writer / advocate) cannot be called witness. Two independent attesting witnesses other than the scribe or necessary. In order to avoid disputes in implementation of a will, description of property and the beneficiaries should be clearly be written without giving room for any doubt.

What are the Exec and Virtual Exec Processes?

Frequently Asked Questions
The Exec process in Cisco IOS? software is responsible for communication on the tty lines (console, auxiliary, asynchronous) of the router. The Virtual Exec process is responsible for the vty lines (telnet sessions). The Exec and Virtual Exec processes are Medium-priority processes, so if there are other processes that have a higher priority (High or Critical), the higher priority processes get the CPU resources. Now a a frequently asked question from the #include staff to the reader..

How does PAPI handle fork/exec?

Frequently Asked Questions
When a process is created, it inherits no PAPI information from the calling thread. Support for this kind of functionality is being implemented.

How can I become a member of the exec?

FAQs
The executive committee is central to the day-to-day running of Warwick Volunteers and is a great way of getting more involved in the society. Exec elections are held every year at our Annual General Meeting (AGM). For more information on the roles and responsibilities of the Warwick Volunteers executive committee, click here.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact