Query: ns_tmpnam
OS: debian
Section: 3aolserv
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ns_tmp(3aolserver) AOLserver Built-In Commands ns_tmp(3aolserver) __________________________________________________________________________________________________________________________________________________NAMEns_mktemp, ns_tmpnam - commandsSYNOPSISns_mktemp template ns_tmpnam _________________________________________________________________DESCRIPTIONns_mktemp returns a unique filename based on the template you specify. ns_tmpnam returns a filename that can safely be used for a tempo- rary file. The template for ns_mktemp should contain a string with six trailing Xs, which will be replaced with an alpha-numeric string of six charac- ters chosen to make the filename unique. If template does not end with six trailing Xs the empty string will be returned. ns_tmpnam calls the tmpnam() C library function, and the results will depend on your operating system. On Irix, for example, tmpnam() always generate a file name using the path-prefix defined as P_tmpdir in the header file which is "/var/tmp/".EXAMPLESnscp> ns_tmpnam ;# On Linux /tmp/filevuLwaE nscp> ns_mktemp /tmp/foobar.XXXXXX /tmp/foobar.p6SlaCSEE ALSOnsd(1), mktemp(3), tmpnam(3)KEYWORDSAOLserver 4.0 ns_tmp(3aolserver)
Related Man Pages |
---|
mktemp(3c) - opensolaris |
mktemp(3) - linux |
tmpnam(3) - redhat |
mktemp(3) - debian |
mktemp(1) - posix |
Similar Topics in the Unix Linux Community |
---|
how can make if [ $f1 -nt $f2 ] works in solaries |
Disk quota exceeded (difference btw. du and df, again!) |