forked from cory/tildefriends
		
	git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3206 ed5197a5-7fde-0310-b194-c3ffbd925b24
		
			
				
	
	
		
			20 lines
		
	
	
		
			340 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			340 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| cat > test.js << EOF
 | |
| var task = new Task();
 | |
| task.onExit = function() {
 | |
| 	print("child exited");
 | |
| };
 | |
| task.activate();
 | |
| task.execute({name: "child.js", source: File.readFile("child.js")}).then(function() {
 | |
| 	print("child started");
 | |
| });
 | |
| EOF
 | |
| 
 | |
| cat > child.js << EOF
 | |
| print("I am the child process.");
 | |
| exit(0);
 | |
| EOF
 | |
| 
 | |
| $TILDEFRIENDS test.js
 |