$ENV{PATH}="$ENV{PATH}:/opt/db2/bin" ... #### #!/bin/sh . /home/db2inst1/sqllib/db2profile /home/db2instl/bin/stop_db.pl # Or whatever the script is called