File: hello_slave

package info (click to toggle)
slpvm 0.1.5-11
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,072 kB
  • ctags: 254
  • sloc: sh: 2,624; ansic: 1,012; makefile: 154
file content (19 lines) | stat: -rwxr-xr-x 260 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /usr/bin/env slsh

require ("pvm");

define main()
{
   variable ptid = pvm_parent();

   variable s = struct {msg, from};   
   s.msg = "Hello World";
   s.from = getenv ("HOST");
   
   pvm_send_obj (ptid, 1, s);
   
   pvm_exit();
   exit(0);
}

main();