[Swift-user] bad stuff from one of the tutorials.
    Hodgess, Erin 
    HodgessE at uhd.edu
       
    Wed Jun 10 12:00:25 CDT 2009
    
    
  
Here is an example from one of the tutorials which is not working.
[erin at tp-login2 swift1]$ cat fold9.swift
type counterfile;  
  
(counterfile t) echo(string m) {   
  app {  
    echo m stdout=@filename(t);  
  }  
}  
  
(counterfile t) countstep(counterfile i) {  
  app {  
    wcl @filename(i) @filename(t);  
  }  
}  
  
counterfile a[]  <simple_mapper;prefix="foldout">;  
  
a[0] = echo("793578934574893");  
  
	iterate v {  
  a[v+1] = countstep(a[v]);  
} until (@extractint(a[v+1]) <= 1);  
[erin at tp-login2 swift1]$ cat tc.data
#NOTE WELL: fields in this file must be separated by tabs, not spaces
#           and there must be no trailing whitespace at the end of each line.
#
# sitename      app     pathname        (ignored)       (ignored)       profiles
localhost       echo    /bin/echo       INSTALLED       INTEL32::LINUX  null
teraport        echo    /bin/echo       INSTALLED       INTEL32::LINUX  null
localhost	translate	/usr/bin/tr	INSTALLED	INTEL32::LINUX	null
localhost	R	/home/erin/R-2.9.0/bin/R	INSTALLED	INTEL32::LINUX	null
localhost	wc	/usr/bin/wc	INSTALLED	INTEL32::LINUX	null
localhost       convert	/usr/bin/convert	INSTALLED	INTEL32::LINUX	null
localhost       wcl	/home/erin/swift1	INSTALLED	INTEL32::LINUX	null
[erin at tp-login2 swift1]$ swift -tc.file tc.data fold9.swift
Could not start execution.
	variable a has multip
Erin M. Hodgess, PhD
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgesse at uhd.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20090610/18bb6dd0/attachment.html>
    
    
More information about the Swift-user
mailing list