* [LTP] A question about mktemp in script runltp
@ 2012-01-16 3:05 Jin Li
2012-01-16 5:47 ` Mike Frysinger
0 siblings, 1 reply; 3+ messages in thread
From: Jin Li @ 2012-01-16 3:05 UTC (permalink / raw)
To: ltp-list
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] A question about mktemp in script runltp
2012-01-16 3:05 [LTP] A question about mktemp in script runltp Jin Li
@ 2012-01-16 5:47 ` Mike Frysinger
2012-01-16 6:20 ` Jin Li
0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2012-01-16 5:47 UTC (permalink / raw)
To: ltp-list
[-- Attachment #1.1: Type: Text/Plain, Size: 330 bytes --]
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
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 186 bytes --]
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] A question about mktemp in script runltp
2012-01-16 5:47 ` Mike Frysinger
@ 2012-01-16 6:20 ` Jin Li
0 siblings, 0 replies; 3+ messages in thread
From: Jin Li @ 2012-01-16 6:20 UTC (permalink / raw)
To: Mike Frysinger; +Cc: ltp-list
Mike Frysinger wrote:
> 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
> -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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-16 6:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-16 3:05 [LTP] A question about mktemp in script runltp Jin Li
2012-01-16 5:47 ` Mike Frysinger
2012-01-16 6:20 ` Jin Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox