* [linux-lvm] scripts/clvmd_fix_conf.sh
@ 2004-07-20 19:57 Guochun Shi
2004-07-21 6:45 ` Patrick Caulfield
0 siblings, 1 reply; 2+ messages in thread
From: Guochun Shi @ 2004-07-20 19:57 UTC (permalink / raw)
To: linux-lvm
hi,
in this script line 47-48
SCRIPTFILE=`mktemp -t lvmscript.XXXXXXXXXX`
TMPFILE=`mktemp -t lvmtmp.XXXXXXXXXX`
but mktemp does not have -t option. It complains when I run the script
[LVM2]# scripts/clvmd_fix_conf.sh /lib
mktemp: invalid option -- t
Usage: mktemp [-d] [-q] [-u] template
mktemp: invalid option -- t
Usage: mktemp [-d] [-q] [-u] template
scripts/clvmd_fix_conf.sh: line 127: $SCRIPTFILE: ambiguous redirect
scripts/clvmd_fix_conf.sh: line 128: $TMPFILE: ambiguous redirect
sed failed, /etc/lvm/lvm.conf not updated
please help, thanks
-Guochun
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] scripts/clvmd_fix_conf.sh
2004-07-20 19:57 [linux-lvm] scripts/clvmd_fix_conf.sh Guochun Shi
@ 2004-07-21 6:45 ` Patrick Caulfield
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Caulfield @ 2004-07-21 6:45 UTC (permalink / raw)
To: LVM general discussion and development
On Tue, Jul 20, 2004 at 02:57:39PM -0500, Guochun Shi wrote:
> hi,
>
> in this script line 47-48
> SCRIPTFILE=`mktemp -t lvmscript.XXXXXXXXXX`
> TMPFILE=`mktemp -t lvmtmp.XXXXXXXXXX`
>
> but mktemp does not have -t option. It complains when I run the script
>
> [LVM2]# scripts/clvmd_fix_conf.sh /lib
> mktemp: invalid option -- t
> Usage: mktemp [-d] [-q] [-u] template
> mktemp: invalid option -- t
> Usage: mktemp [-d] [-q] [-u] template
> scripts/clvmd_fix_conf.sh: line 127: $SCRIPTFILE: ambiguous redirect
> scripts/clvmd_fix_conf.sh: line 128: $TMPFILE: ambiguous redirect
> sed failed, /etc/lvm/lvm.conf not updated
>
Maybe you have an older version of mktemp. Just remove the -t switch. It's only
in there to make it honour varibales like TMPDIR.
--
patrick
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-21 6:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-20 19:57 [linux-lvm] scripts/clvmd_fix_conf.sh Guochun Shi
2004-07-21 6:45 ` Patrick Caulfield
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox