Skip to contentSkip to conversation

A question about mktemp in script runltp

LTP Jin Li 2 participants 3 messages Jan 16, 2012

lore
Share & tools
lore

Jin Li

author
#0 lore raw

Hi

In runltp script, mktemp is used to create a temp directory. see below :

mnt_pnt=mktemp -d --tmpdir=${TMP} mnt_pnt.XXXXXX

But I have a little confused about the argument "--tmpdir"

I prefer to use "-p ${TMP}" to replace "--tmpdir=${TMP}"

Maybe I missed something :)

Regards,

Jin

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw
Quoted 7 lines · On Sunday 15 January 2012 22:05:47 Jin Li wrote:

In runltp script, mktemp is used to create a temp directory. see below :

mnt_pnt=mktemp -d --tmpdir=${TMP} mnt_pnt.XXXXXX

But I have a little confused about the argument "--tmpdir"

I prefer to use "-p ${TMP}" to replace "--tmpdir=${TMP}"

why ?
-mike

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#2 lore raw
Quoted 10 lines · Mike Frysinger
Quoted 7 lines · On Sunday 15 January 2012 22:05:47 Jin Li wrote:

In runltp script, mktemp is used to create a temp directory. see below :

mnt_pnt=mktemp -d --tmpdir=${TMP} mnt_pnt.XXXXXX

But I have a little confused about the argument "--tmpdir"

I prefer to use "-p ${TMP}" to replace "--tmpdir=${TMP}"

why ?

o, I see the difference.

I am using the mktemp from 30 September 2001.

It is so old that can't recognize the argument "--tmpdir"

It's time to update my Linux.

Jin

Quoted 1 line

-mike

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list