Back Previous Next


Linguist basic package - send

Syntax:

   send {message} to {module}
   send {message} to module {module}
   send {message} to parent
   send {message} to the sender
   send {message} to package "{package}"
   send {string} to {dispatcher}
   send mail {message} from {sender} to {recipient} subject {subject} [using {smtphost}]

Keyword handler:

   net.eclecity.linguist.basic.keyword.BasicKSend.class

Runtime handler(s):

   net.eclecity.linguist.basic.keyword.BasicHSend.class

Function:

Send a message to another running script, identified either by name or as a module variable. The script's on message handler will be invoked. See also run.

You can also send a message to the module that launched this one, by using the parent form.

You can also send a message to the module that sent a message to this one, by using the sender.

If the name is that of a package, the message will be sent to the background of that package, an optional program that performs background operations such as managing a shared resource.

If the name is that of a dispatcher, the latter will then invoke the appropriate outcome.

The final form sends an email message. You will need to know the name or IP address of an SMTP host able and willing to handle the message.

Example(s):

   send "Stop" to "Flasher"
   send "13" to Module2
   send "Show Files" to Dispatch
   send mail "Reply if you got this"
      from "gt@pobox.com"
      to "graham@techmodern.co.uk"
      subject "A Test Message"
      using "mail.myisp.com"


Back Previous Next