[Swift-user] how to terminate swift in the code

Michael Wilde wilde at mcs.anl.gov
Sun Apr 3 22:37:51 CDT 2011


Tian, your questions are very hard to understand. Can you clarify:

----- Original Message -----
> in the code, I need to identify the value of the termination of a
> running workflow, how to complete this function

Do you mean you want to pass a return code from the Swift script that the swift command will return as its exit value, so that you can process this in a shell script?

There is no mechanism for doing this currently.

I think the way it works at the moment is that if any error occurs in script execution, then the swift command returns a non-zero exit code, and if no errors occur, it returns zero.

If on the other hand you are talking about Swift function return values within a script, then that is simply determined by the way you code your Swift functions and what you return from them.

- Mike

> 
> 
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user

-- 
Michael Wilde
Computation Institute, University of Chicago
Mathematics and Computer Science Division
Argonne National Laboratory




More information about the Swift-user mailing list