Video Screencast Help

Using Command Queue from within pcAnywhere, Part 5 of Using pcAnywhere

Created: 01 Jun 2009 • Updated: 22 Jun 2009
Language Translations
ICHCB's picture
+1 1 Vote
Login to vote

Command Queue

From the pcAnywhere user guide. The Command Queue lets you view file transfer operations that are in progress, modify pending operations, and set up command queue files to automate tasks. File transfer send, receive, and synchronize commands that are performed in the File Transfer window are automatically added to the Command Queue and run in The background. Symantec pcAnywhere lets you save these commands in a queue file (.cqf) to use later, or you can create your own command queue file. The following are examples of how you can use a command queue file:

  • Distribute and install software updates on one or more computers.
  • Transfer one or more files to multiple computers simultaneously.
  • Run Windows command-line and end-of-session commands on one or more computers.
  • Automate file transfer and management tasks, such as synchronizing folders on your work and home computers at the end of each day.

The command Queue can be accessed one of three ways. First by creating or editing an existing Remote connection to start in command Queue view.

Option One

A host can be set to use Command Queue once by right clicking on it and selecting Start Command Queue this will launch the remote once as a Command Queue connection and then next time it is launched it will be back the way it was.

Option Two

While connected to a Host in the Session Manager menu select Command Queue.

Option Three

A Command Queue can be saved with any number and combination of predefined options that can then be executed and even scheduled as a task. In the pcAnywhere Manager select the Command Queues to get to this.

All three methods will be discussed in more depth later.

Running a Command Queue from a Remote Session

  1. Start a Remote by double clicking on the remote in the list of remotes available in pcAnywhere.

  2. In the Session Manager menu select Command Queue.

  3. At the Command Queue screen.
    a. At the Manual command entry section select Run Command under the Command drop down.
    b. In the Source line type calc.
    c. Click Add to add the command to the Command Queue.

    Note: In the Command Queue option screen you can modify the state of the Command Queue. If a command is not running it may be that the Queue is paused and the Restart Queue option will need to be selected to process the items waiting in the Queue.

  4. Change to Remote Control in the Session Manager.

  5. What happened on the Host? (If things worked correctly the calculator was launched on the Host as a result of the calc command being run.)

  6. In the Session Manager menu select Command Queue.

  7. In the Command Queue menu on the left select Save Queue As.

  8. In the save window name the queue calculator.cpf

  9. From the Session Manager select End Session

  10. Click Yes and make sure that the check box is selected for the Host accepts another call. If this box is checked then the host will re-launch after the disconnection and will be available for connection later.

Running a saved command Queue

  1. In pcAnywhere Manager select the Command Queues.

  2. In the Command Queue window Right click on the saved calculator.cpf file that was made in the beginning of this How to, select Properties.

  3. In the Command Queue Properties: screen.
    a. On the Commands tab under the Command drop down select Run Command.
    b. In the Source field type notepad and click Add

  4. In the Command list highlight the notepad line and click Move Up so that it will be at the top of the list.

  5. Select the Remotes tab click Add Existing.

  6. The Remotes folder is now open and you can select any of your Remotes .CHF file and click Open.

  7. In the Connection List all remotes that have been chosen will be listed.

    Note: If you have more targets you can add them here by selecting Add Existing button. Or a new connection can be built here also by selecting Add New.

  8. Click on the Settings tab
    a. In the After queue ends drop down select Disconnect
    b. Check the box to Generate report.
    c. Click Browse to select a name and location for the Report location.

  9. Browse to the Desktop and under File name: enter CCLOG

  10. Click Save
  11. Click OK
  12. Right click on the Calculator Queue that was set up and click Start Command Queue.

  13. Note what has happened on your hosts.
  14. Open the CCLOG created on the desktop and review what happened.

A PDF version of the article is attached below.

Review Part 4 here: Using File Transfer from within pcAnywhere, Part 4 of Using pcAnywhere

See Part 6 here: Using Thin Host from pcAnywhere 12.5, Part 6 of Using pcAnywhere