Run Command Tutorial

 

Table of Contents

Using Advanced Options

Clicking the More button in the Run Command dialog box reveals a number of advanced options.

View Example

Top

Specifying a Command's Working Directory

To set the current working directory for a command:

  1. Select Tools|Run Command. Click More to display Advanced Options.
  2. In the Run field, enter the command: dir (on Windows), or ls -al (on Linux).
  3. In the Start in field, enter C:\ (on Windows), or /home (on Linux).
  4. Click the Run button to generate a "C:\" directory listing.
Top

Specifying Environment Variables

You can specify which environment variables will be set for your command. This can be useful for setting PERL5LIB or PYTHONPATH when running some of your Perl or Python scripts.

  1. Select Tools|Run Command.
  2. In the Run field, enter the command: set.
  3. Click New... to add a new environment variable. For the variable name, enter: PERL5LIB
  4. Click Add Path... to choose some value for PERL5LIB (the actual value you choose does not matter for this example). Click OK.
  5. Click the Run button to display all environment variables. Scroll through the results on the Command Output tab until you find the PERL5LIB setting.
Top

Running GUI Apps or Running Commands in a Console

You do not have to run commands on the Command Output tab. If you want to run a GUI program instead, you can change the Run in option to No Console (GUI Application).

  1. Select Tools|Run Command.
  2. In the Run field, enter the command: mozilla
    If you do not have the Mozilla browser installed, choose some other GUI application to run. For example, on Windows, you might want to run either the iexplore or notepad command.
  3. From the Run in drop-down list, choose No Console (GUI Application).
  4. Click the Run button to open the GUI application instead of the Command Output tab.

You can also run commands in a new console window:

  1. Select Tools|Run Command.
  2. In the Run field, enter the command: dir
  3. From the Run in drop-down list, choose New Console.
  4. Click the Run button to run your command and open a new console window instead of the Command Output tab.

Top Previous Next