My Oracle Support Banner

E-WL: Syntax Error "/bin/sh: error importing function definition for `which'” When Shutting Down the Web Server Domain Using the PSADMIN Menu (Doc ID 2976637.1)

Last updated on SEPTEMBER 26, 2023

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.59 and later
Information in this document applies to any platform.

Symptoms

When attempting to bring down the Web server domain using PSADMIN menu, the domain goes down successfully. However, the following warning is shown intermittently on the screen:

ERROR:
Stopping the domain [<Domain Name>].../bin/sh: which: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `which'
/bin/sh: ml: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `ml'
/bin/sh: _module_raw: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `_module_raw'
/bin/sh: scl: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `scl'
/bin/sh: switchml: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `switchml'
/bin/sh: module: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `module'

The issue can be reproduced following these steps:
1. Open PSADMIN menu.
2. Choose the Web server option and try to stop the domain to replicate it.
  

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.