Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

Purpose: Waits for a specified ARexx port.
Format: WAITFORPORT <portname> [ [TIMEOUT] <seconds>]
Path: C:WaitForPort
WaitForPort waits 10 seconds for the specified port to appear. A return code of 0 indicates the port was found. A return code of 5 indicates that the application is not currently running or that the port does not exist. Port names are case-sensitive.

You can choose how long WAITFORPORT should wait by using the TIMEOUT argument.

To stop WAITFORPORT waiting, use the BREAK command or hit the [Ctrl]+C combination while the shell window is active that belongs to the WAITFORPORT command.

Example 1:

3.OS4:> WAITFORPORT ED_1 waits for up to 10 seconds for the message port "ED_1" to appear.

Example 2:

3.OS4:> WAITFORPORT MyPort TIMEOUT 5 waits for up to 5 seconds for the message port "MyPort" to appear.

See also: BREAK.

Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.

Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.