2011-04-27 19:11:04 +05:30
|
|
|
'\" -*- coding: UTF-8 -*-
|
2010-03-23 20:07:01 +05:30
|
|
|
.\" A man page for fstab-decode(8).
|
|
|
|
.\"
|
|
|
|
.\" Copyright (C) 2006 Red Hat, Inc. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This copyrighted material is made available to anyone wishing to use,
|
|
|
|
.\" modify, copy, or redistribute it subject to the terms and conditions of the
|
|
|
|
.\" GNU General Public License v.2.
|
|
|
|
.\"
|
|
|
|
.\" This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
.\" more details.
|
|
|
|
.\"
|
|
|
|
.\" You should have received a copy of the GNU General Public License along
|
|
|
|
.\" with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
.\"
|
|
|
|
.\" Author: Miloslav Trmac <mitr@redhat.com>
|
|
|
|
.TH fstab-decode 8 "May 2006"
|
|
|
|
|
|
|
|
.SH NAME
|
|
|
|
fstab-decode \- run a command with fstab-encoded arguments
|
|
|
|
|
|
|
|
.SH SYNOPSIS
|
2010-05-19 13:41:05 +05:30
|
|
|
\fBfstab-decode\fR \fICOMMAND\fR [\fIARGUMENT\fR]...
|
2010-03-23 20:07:01 +05:30
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B fstab-decode
|
|
|
|
decodes escapes in the specified \FIARGUMENT\fRs
|
|
|
|
and uses them to run \fICOMMAND\fR.
|
|
|
|
The argument escaping uses the same rules as path escaping in
|
|
|
|
\fB/etc/fstab\fR,
|
|
|
|
.B /etc/mtab
|
|
|
|
and \fB/proc/mtab\fR.
|
|
|
|
|
|
|
|
.SH EXIT STATUS
|
|
|
|
.B fstab-decode
|
|
|
|
exits with status 127 if
|
|
|
|
.I COMMAND
|
|
|
|
can't be run.
|
|
|
|
Otherwise it exits with the status returned by \fICOMMAND\fR.
|
|
|
|
|
|
|
|
.SH EXAMPLES
|
2010-05-19 13:41:05 +05:30
|
|
|
.nf
|
|
|
|
.B fstab-decode umount $(awk \[aq]$3 == \[dq]vfat\[dq] { print $2 }\[aq] /etc/fstab)
|
|
|
|
.fi
|