]>
Commit | Line | Data |
---|---|---|
040ccc09 | 1 | '\" -*- coding: UTF-8 -*- |
55f242bf DWF |
2 | .\" A man page for fstab-decode(8). |
3 | .\" | |
4 | .\" Copyright (C) 2006 Red Hat, Inc. All rights reserved. | |
5 | .\" | |
6 | .\" This copyrighted material is made available to anyone wishing to use, | |
7 | .\" modify, copy, or redistribute it subject to the terms and conditions of the | |
8 | .\" GNU General Public License v.2. | |
9 | .\" | |
10 | .\" This program is distributed in the hope that it will be useful, but WITHOUT | |
11 | .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 | .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
13 | .\" more details. | |
14 | .\" | |
15 | .\" You should have received a copy of the GNU General Public License along | |
16 | .\" with this program; if not, write to the Free Software Foundation, Inc., | |
17 | .\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
18 | .\" | |
19 | .\" Author: Miloslav Trmac <mitr@redhat.com> | |
20 | .TH fstab-decode 8 "May 2006" | |
21 | ||
22 | .SH NAME | |
23 | fstab-decode \- run a command with fstab-encoded arguments | |
24 | ||
25 | .SH SYNOPSIS | |
3c2942d5 | 26 | \fBfstab-decode\fR \fICOMMAND\fR [\fIARGUMENT\fR]... |
55f242bf DWF |
27 | |
28 | .SH DESCRIPTION | |
29 | .B fstab-decode | |
30 | decodes escapes in the specified \FIARGUMENT\fRs | |
31 | and uses them to run \fICOMMAND\fR. | |
32 | The argument escaping uses the same rules as path escaping in | |
33 | \fB/etc/fstab\fR, | |
34 | .B /etc/mtab | |
35 | and \fB/proc/mtab\fR. | |
36 | ||
37 | .SH EXIT STATUS | |
38 | .B fstab-decode | |
39 | exits with status 127 if | |
40 | .I COMMAND | |
41 | can't be run. | |
42 | Otherwise it exits with the status returned by \fICOMMAND\fR. | |
43 | ||
44 | .SH EXAMPLES | |
3c2942d5 DWF |
45 | .nf |
46 | .B fstab-decode umount $(awk \[aq]$3 == \[dq]vfat\[dq] { print $2 }\[aq] /etc/fstab) | |
47 | .fi |