...
Target Release | 17.2.1 |
---|---|
JIRA | PP-1009 - Sudo enhancements Enhancing sudo usage in PTL |
Document status | Initial version |
Document owner | Kumar Jakkali (Deactivated) |
Designer | |
Developers | |
QA | |
Forum Discussion | http://community.pbspro.org/t/pp-1009-sudo-enhancements/691 |
...
Details:
create_temp_file(hostname=None, suffix='', prefix='PtlPbs', dir=None, text=FalseTrue, asuser=None, body=None)
...
- hostname : an empty temporary file as current user on the specified host and return the file name (Default: localhost)
- body : write the content to file. (Default: None)
- dir: the file will be created in this directory (Default: system temp dir)
- asuser : create the file as specified user (Default: current user)
- suffix : the file name will end with this suffix (Default: None)
- prefix: the file name will begin with this prefix (Default 'PtlPbs')
- text: the file is opened in text mode is this is true else in binary mode (Default:True)
With this new interface we will remove the existing mkstemp() from library and test cases.
...