Technote (troubleshooting)
Problem(Abstract)
AIX 6.1 on 64 bit hardware.
Scripts intermittently fail with -4:Error in unlinking in script.old log.
The error occurs in ENVIRON portion of script. Note: subsequently rerunning script is successful.
-4:Error in unlinking /usr/edina/./temp//wrktmp/smgr41ap7d
Symptom
-4:Error in unlinking /usr/edina/./temp//wrktmp/smgr41ap7d
smgr:18481400:04122012:110601: -1:Ended dndtnaso_sftp:
Cause
On 64 bit hardware the process id (PID) numbers are longer than the 32 bit PIDs.
The smgr executable uses a portion of the PID as a temporary file name and this
portion of the PID is NOT unique for the 64 bit PID numbers. When multiple smgr invocations
attempt to use the same file name, files are created or deleted/unlinked.
Resolving the problem
Fix smgr resolves the issue. Contact support.
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.