.\" $HeadURL$ $LastChangedRevision$ .\" vim: filetype=nroff .\" .TH ADESHF 1 "ADE_APP_TOKEN_RELEASE_DATE_MAN" .ne 5 .SH NAME adeshf \- call an ADE shell function .br .ne 5 .SH SYNOPSIS .B adeshf \*[ade_standard_synopsis_component] .I code .br .ne 5 .SH DESCRIPTION .B Adeshf provides a command line interface to the ADE shell library. .I code should return (see .B bash\fR(1)). .br .ne 5 .SH CONFIGURATION None. .ne 5 .SH OPTIONS \*[ade_standard_options_component] .br .ne 5 .SH EXIT STATUS On success .B adeshf returns zero. On failure it returns non-zero and displays a diagnostic message. .br .ne 5 .SH FILES None. .br .ne 5 .SH ENVIRONMENT VARIABLES None. .ne 5 .SH EXAMPLES This shows how to call ADE functions (in this case to create a lock file and then remove it), handle their return codes and illustrates how to return from the code: .IP .nf .fam C .B adeshf \[aq]ade_lck_lock \[dq]$ERRSTACK_REF\[dq] /tmp/x.lock || return $?; date; sleep 10; date; ade_lck_unlock \[dq]$ERRSTACK_REF\[dq] /tmp/x.lock; return $ADE_OK\[aq] .fam T .fi .ne 5 .SH CAVEATS None. .br .ne 5 .SH STANDARDS This manual page documents version ADE_APP_TOKEN_RELEASE_ID of .B adeshf\fR. .br .ne 5 .SH SEE ALSO adeperlf(1), adepyf(1), ade-config(1) .br .ne 5 .SH AUTHOR ADE_APP_TOKEN_AUTHOR_NAME .br .ne 5 .SH COPYRIGHT & DISTRIBUTION POLICY Copyright (C) 2003-ADE_APP_TOKEN_RELEASE_YEAR ADE_APP_TOKEN_AUTHOR_NAME \*[ade_standard_copyright_component]