We help IT Professionals succeed at work.
Get Started

cannot run jobs in AIX-Unix Production environment, same account works in test environment

1,204 Views
Last Modified: 2012-05-12
I am able to run jobs in a test machine but not on Prod, same user id (different machines)

I reviewed the profile for each, only see one difference but that might be the machines.

When I run the job, everything looks normal but the job stops with this message:

time_start=11/04/11 15:59:13
+ mv /slice6/imedw/medpartd/pde/data_land/pde_argus.dat /slice6/imedw/medpartd/pde/pde_argus.dat
override mode 640 on /slice6/imedw/medpartd/pde/pde_argus.dat? y
ksh: y:  not found
[1] + Stopped (SIGTTIN)        ./medpartd_pde_load.ksh 2010 194 &

When I check on the jobs running, I see this below /**** open jobs for user ********/

When I kill the jobs, I see
[1] + Terminated               ./pde_load_multiple_files_parameter.ksh 25 30 2010 194 &

I've included the two profiles below,

So on the Prod box, when I run jobs through the scheduler, it works. But when I run the job manually, I get the errors above. Here's my command (which works fine on test box and I run jobs all the time).

I also have another user id on the Prod box and I can run jobs fine there manually.
/************* open jobs for user *************/

[/slice6/imedw/medpartd/code_non_compile] psf
 immedpd  626918 1552400   0 13:49:20  pts/0  0:00 /usr/bin/sh ./pde_load_multiple_files_parameter.ksh 25 30 2010 194 
 immedpd  675996  626918   0 13:49:20  pts/0  0:00 /usr/bin/sh /slice6/imedw/medpartd/code_non_compile/medpartd_pde_load.ksh 2010 19
4 
 immedpd 1552400 1069436   0 13:47:24  pts/0  0:00 -ksh 
 immedpd 1593556  675996   0 13:49:20  pts/0  0:00 mv /slice6/imedw/medpartd/pde/data_land/pde_argus.dat /slice6/imedw/medpartd/pde/
pde_argus.dat 

/**************** profile on test box, med_d user (can run jobs manually) *************/
# Set up the shell environment:
	set -u
	trap "echo 'logout'" 0

# Set up the shell variables:
	EDITOR=vi
	export EDITOR

	umask 002

        ORACLE_BASE=/u01/app/oracle
        export ORACLE_BASE

        ORACLE_HOME=/u01/app/oracle/product/10.2.0_db
        export ORACLE_HOME

	ORACLE_SID=edwdev02
	export ORACLE_SID

	PATH=$PATH:$ORACLE_HOME/bin:/opt/binutils/bin:/opt/gcc/bin:/usr/local/bin:.
        export PATH

	alias test='ORACLE_SID=edwtst05'; export ORACLE_SID
	alias db='echo $ORACLE_SID'

export PS1="["'${PWD}'"] $ " 

       alias sql='sqlplus'
       alias tnc='cd /slice6/imedw/medpartd/test_non_compile'
       alias tc='cd /slice6/imedw/medpartd/test_compile'
       alias dnc='cd /slice6/imedw/medpartd/dev_non_compile'


/****************  profile on prod box, med_d user (cannot run jobs manually) *************/

PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/java131/bin:.

export PATH

if [ -s "$MAIL" ]           # This is at Shell startup.  In normal
then echo "$MAILMSG"        # operation, the Shell checks
fi                          # periodically.

# Set up the shell variables:
        EDITOR=vi
        export EDITOR

 export ORACLE_HOME=/u01/app/oracle/product/10.2.0_db
        export PATH=/slice6/imedw/medpartd/code_non_compile:/slice6/imedw/medpartd/code_compile:/usr/local/bin:/home/imedw:$ORACLE_HOME/bin:$PATH
        export ORACLE_SID=edwprd05
        #umask 033
        umask 003
        export PS1="["'${PWD}'"] " 
        unalias rm

       alias sql='sqlplus'
       alias cc='cd /slice6/imedw/medpartd/code_compile'


/****************  profile on prod box, imedw user (can run jobs manually) *************/

PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/java131/bin:.

export PATH

if [ -s "$MAIL" ]           # This is at Shell startup.  In normal
then echo "$MAILMSG"        # operation, the Shell checks
fi                          # periodically.

# Set up the shell variables:
        EDITOR=vi
        export EDITOR

 export ORACLE_HOME=/u01/app/oracle/product/10.2.0_db
        export PATH=/slice6/imedw/code_non_compile:/slice6/imedw/code_compile:/usr/local/bin:/home/imedw:$ORACLE_HOME/bin:$PATH
        export ORACLE_SID=edwprd02
        #umask 033
        umask 003
        export PS1="["'${PWD}'"] " 
        unalias rm

set -o vi
####stty erase ^h
####stty erase ^?

	alias w='w'
	alias psf='ps -ef | grep imedw'

Open in new window

Comment
Watch Question
Commented:
This problem has been solved!
Unlock 3 Answers and 15 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE