Provided by:
debathena-attachandrun_10.0.1-0debathena1~ubuntu8.04_i386 ![bug](/manpages/www/img/bug.png)
NAME
attachandrun - attach a filesystem and run a program from it
SYNOPSIS
attachandrun [--check] locker program argv0 [argv1 ...]
DESCRIPTION
attachandrun combines the operations of attaching a locker, locating
its binary directory, and executing a program out of that directory.
Running a program via attachandrun should be indistinguishable from
running it out of its locker by hand. A typical ``attach and run''
script would look like:
#!/bin/sh
exec /bin/athena/attachandrun moira blanche "$0" "$@"
If you specify the --check option, attachandrun will check for the
existence of the binary but not actually run it. (In this case, you
don't need to specify any argv elements.) It will exit with status 0 if
the binary exists, or 1 if it does not. Note that a successful exit
status does not necessarily mean that attempting to run the binary will
succeed: it indicates only that the file exists.
SEE ALSO
attach(1), athdir(1)
AUTHORS
Craig Fields, MIT Information Systems Dan Winship, MIT Information
Systems
Copyright 1998 Massachusetts Institute of Technology
ATTACHANDRUN(1)