source: trunk/athena/bin/attachandrun/attachandrun.1 @ 14411

Revision 14411, 1.9 KB checked in by ghudson, 25 years ago (diff)
A non-setuid attachandrun which attaches the locker in a subprocess.
Line 
1.\" $Id: attachandrun.1,v 1.1 2000-03-15 20:53:10 ghudson Exp $
2.\"
3.\" Copyright 1997 by the Massachusetts Institute of Technology.
4.\"
5.\" Permission to use, copy, modify, and distribute this
6.\" software and its documentation for any purpose and without
7.\" fee is hereby granted, provided that the above copyright
8.\" notice appear in all copies and that both that copyright
9.\" notice and this permission notice appear in supporting
10.\" documentation, and that the name of M.I.T. not be used in
11.\" advertising or publicity pertaining to distribution of the
12.\" software without specific, written prior permission.
13.\" M.I.T. makes no representations about the suitability of
14.\" this software for any purpose.  It is provided "as is"
15.\" without express or implied warranty.
16.\"
17.TH ATTACHANDRUN 1
18.SH NAME
19attachandrun \- attach a filesystem and run a program from it
20
21.SH SYNOPSIS
22attachandrun [--check] locker program argv0 [argv1 ...]
23
24.SH DESCRIPTION
25\fIattachandrun\fR combines the operations of attaching a locker,
26locating its binary directory, and executing a program out of that
27directory. Running a program via \fIattachandrun\fR should be
28indistinguishable from running it out of its locker by hand. A typical
29``attach and run'' script would look like:
30
31.nf
32    #!/bin/sh
33    exec /bin/athena/attachandrun moira blanche "$0" "$@"
34.fi
35
36If you specify the \fI--check\fR option, \fIattachandrun\fR will check
37for the existence of the binary but not actually run it. (In this
38case, you don't need to specify any argv elements.) It will exit with
39status 0 if the binary exists, or 1 if it does not. Note that a
40successful exit status does not necessarily mean that attempting to
41run the binary will succeed: it indicates only that the file exists.
42
43.SH "SEE ALSO"
44attach(1), add(1)
45
46.SH AUTHORS
47Craig Fields, MIT Information Systems
48Dan Winship, MIT Information Systems
49.PP
50Copyright 1998 Massachusetts Institute of Technology
Note: See TracBrowser for help on using the repository browser.