![]() |
|
|
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 |
| Execute oracle query determined at runtime from a unix script | infyanurag | Shell Programming and Scripting | 4 | 02-01-2008 07:54 AM |
| setting Oracle Home | DILEEP410 | Shell Programming and Scripting | 3 | 12-14-2006 08:15 AM |
| command to schedule a unix script in tidal' scheduler | balireddy_77 | UNIX for Advanced & Expert Users | 0 | 10-10-2006 01:03 AM |
| event scheduler/tracker script | theangrybeaver | Shell Programming and Scripting | 1 | 01-09-2006 05:38 PM |
| Hardware dummy trying to set up Unix workstation for Oracle at home for practice! | tmanpakdee | UNIX for Dummies Questions & Answers | 4 | 12-07-2001 04:04 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
$HOME Not Getting Set for Oracle Scheduler Script at Runtime
We are researching the possibility of using Oracle 10g Scheduler on Solaris 10 to launch scripts at our site, and the script that I am testing does not get $HOME (and other environment variables) set correctly. Here is the Korn shell script (show_info.ksh):
#!/usr/bin/ksh Here is the output from the script when it is executed interactively (I removed the extraneous Oracle variable displays for brevity): . ./show_info.ksh Here is the output from the script when it is executed by cron—this appears to be running the Bourne shell, despite the Korn bang line, correct?: + id Here is the output from the script when it is executed by Oracle Scheduler (dbms_scheduler)—this is what I’m trying to “fix:” uid=100(oracle) gid=1978(dba) Questions:
J |
|
||||
|
I thought "login" would do it.
![]() The traditional sequence is init -> getty -> login -> shell. cron is lightweight and doesn't do a full log in, it sort of just impersonates the user. |
|
||||
|
Can you elaborate a bit--I don't understand what you mean. Can you specifiy the file names that are called during the login process?
Quote:
![]() I can hardcode some syntax to get around this problem, but we'll need to "rip and replace" a bunch of code if the user changes in the future, or if the disk farm changes, or if whatever else changes.... I'd like to keep the configuration generic and let the system to figure out $HOME at a minimum, and it would be nice if it would populate $SHELL too. From there, I should be able to source whatever other scripts that I need. Is there a way to figure out which shell is running when $SHELL is not populated? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|