ad_opentmpfile (public)

 ad_opentmpfile varFilename [ template ]

Defined in packages/acs-tcl/tcl/utilities-procs.tcl

Wrapper for Tcl's "file tempfile ...", but respects the server's tmpdir settings, e.g. when admin want to specify the temporary directory. The function is similar to "ns_opentmpfile", but provides a default template and uses always the configured tmp directory.

Parameters:
varFilename
template (defaults to "oacs")

Partial Call Graph (max 5 caller/called nodes):
%3 test_ad_page_contract_filters ad_page_contract_filters (test acs-tcl) ad_opentmpfile ad_opentmpfile test_ad_page_contract_filters->ad_opentmpfile test_apm_bootstrap_upgrade apm_bootstrap_upgrade (test acs-bootstrap-installer) test_apm_bootstrap_upgrade->ad_opentmpfile test_safe_tmpfile_p safe_tmpfile_p (test acs-tcl) test_safe_tmpfile_p->ad_opentmpfile test_util_http_json_encoding util_http_json_encoding (test acs-tcl) test_util_http_json_encoding->ad_opentmpfile test_zip_and_unzip zip_and_unzip (test acs-tcl) test_zip_and_unzip->ad_opentmpfile apm_build_repository apm_build_repository (private) apm_build_repository->ad_opentmpfile file_storage::test::add_file_to_folder file_storage::test::add_file_to_folder (private) file_storage::test::add_file_to_folder->ad_opentmpfile packages/file-storage/www/file-add.tcl packages/file-storage/ www/file-add.tcl packages/file-storage/www/file-add.tcl->ad_opentmpfile packages/xotcl-core/www/show-class-graph.tcl packages/xotcl-core/ www/show-class-graph.tcl packages/xotcl-core/www/show-class-graph.tcl->ad_opentmpfile search::content_filter search::content_filter (private) search::content_filter->ad_opentmpfile

Testcases:
apm_bootstrap_upgrade, ad_page_contract_filters, util_http_json_encoding, safe_tmpfile_p, zip_and_unzip
Source code:
    uplevel [list ::file tempfile $varFilename [ns_config ns/parameters tmpdir]/$template]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-tcl/tcl/utilities-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: