![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cronjob inside the script | namishtiwari | Shell Programming and Scripting | 3 | 02-04-2008 08:35 AM |
| How to run a script as different user inside cronjob in solaris. | csg_user | SUN Solaris | 11 | 12-15-2007 06:49 PM |
| Shell script not running thru Cronjob | gauravshrinivas | Shell Programming and Scripting | 8 | 11-03-2006 10:17 AM |
| Problem with cronjob... | kswaraj | Shell Programming and Scripting | 1 | 07-14-2004 02:58 PM |
| ping cronjob problem | TylerDurden | Shell Programming and Scripting | 1 | 08-06-2003 02:48 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
help help cronjob problem with script
hi all,
have no experience with cronjob at solaris, i have create script like below: #!/bin/sh DAY=`/export/home/oracle/bin/lastdate | nawk '{print $1}'` /export/home/orahome/bin/sqlplus -s abc/abc<<eof set heading off; set linesize 100; set feedback off; spool /export/home/temip/$DAY.log select ip,host_id from omc_ip ; spool off; EXIT; eof sed '/^$/d' /export/home/temip/$DAY.log > /export/home/temip/host$DAY rm -rf /export/home/temip/$DAY.log let's say the filename is "abc.sh" the file i put in the oracle user environment but i have change the owner to user abc that i want to execute the file from cronjob. the problem is the cronjob cannot running properly if i run manually from the abc user environment i got this error messages: Message file sp1<lang>.msb not found Error 6 initializing SQL*Plus please advices how to fix it? thank you so much Regards, bucci |
|
||||
|
I believe the error is due to - unable to locate the message property file. As said by others it should most probably be solved by the ORACLE specific ENV variables.
If not you need to export to the env through the script that is run |
|
||||
|
hi sb008,
the script is running in other user environment lets say user "abc". i have try to put oracle variable but cannot run. please advices thank you Regards, bucci Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|