Operating System - HP-UX
1752796 Members
6065 Online
108789 Solutions
New Discussion

shell script program Fail

 
VICBUR1507
Frequent Advisor

shell script program Fail

Hi I have a problem with shell script program, Several of our programs in oracle call a function that produces a line of command that is executed from the application server to the database server using the remsh command.

 

Given the complexity of the command line, using a shell script to run the remsh depending on the user, the shell script is attached in this post.

 

This line of Shell, which shows the parameters that are driving the Shell script, these parameters will form the command line to execute the remsh:

 

echo "$FECHA $USERNAME (1)$1 -(2) $2 -(3) $3 -(4) $4" >> /oracle/remsh.log

 

An example of such line command follows:

 

10/02/2012 10:33 oranew (1)multi2 -(2) -l -(3) ora9i -(4) . ./rep antewill;/home/produ/pat_ordenes_WEB.sh 07/01/2012 07/01/2012 36 \lp_ana_tec1 ANTEWILL antewill/gaby >/var/tmp/pat_ordenes0$LOGNAME.std 2>/var/tmp/pat_ordenes0$LOGNAME.err &

 

That's the command line that fails intermittently.

 

Anybody help me??

 

Thanks a LOT

 

VB

3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: shell script program Fail

>That's the command line that fails intermittently.

 

How is it failing?  What's in /var/tmp/pat_ordenes0$LOGNAME.err?

 

>10/02/2012 10:33 ...

 

Any reason you are using the chauvinistic European style dates instead of ISO 8601?:

http://en.wikipedia.org/wiki/ISO_8601

 

It sorts better if you have YYYY-MM-DD.

VICBUR1507
Frequent Advisor

Re: shell script program Fail

HI the /var/tmp/pat_ordenes0$LOGNAME.std log file is empity.

Attach the last 100 lines to remsh.log file.

 

Thanks a lot

 

Regards

 

VB

Dennis Handly
Acclaimed Contributor

Re: shell script program Fail

>Attach the last 100 lines to remsh.log file.

 

The commands are there but no errors.