Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Problem with Cron
Name: Vladan Date: October 25, 2002 at 13:34:52 Pacific OS: Red Hat 7.2 CPU/Ram: 512M
Comment:
I have a problem with cron that runs export utility (exp) from oracle/bin. When I put in shell script "copy" command,cron works! But,when I want to run exp utiluty,it does not work! Should I put some PATH, or something else?
Name: David Perry Date: October 25, 2002 at 13:45:12 Pacific
Reply:
Yes you have a path problem. Easy to check. Put a line like
echo $PATH
at the start of your script and look at the result the next time it runs.
easy to fix
PATH=$PATH:/path/to/oracle/bin/ or execute the exp executable with a full path name.
0
Response Number 2
Name: Kenan Bektas Date: October 25, 2002 at 15:05:47 Pacific
Reply:
Make sure you have a line below at the beginning of export script.
#!/bin/sh ...
0
Response Number 3
Name: Sean Miller Date: October 25, 2002 at 22:50:50 Pacific
Reply:
$ORACLE_HOME/bin/exp ....
Sean
0
Response Number 4
Name: zaxxon Date: October 27, 2002 at 09:48:07 Pacific
Reply:
You should set all your environment variables within the script that is being called by cron. For an oracle export these should include ORACLE_HOME, ORACLE_SID, and make sure PATH has your oracle bin directory in it. If this is a unicode database you should also set NLS_LANG. Now here's the trick when you call the script from your crontab file make sure you call it with a '. scriptfile' notice the .filename. This is to make sure that the environment variables that you setup within the script will be available.
0
Response Number 5
Name: zaxxon Date: October 27, 2002 at 10:14:09 Pacific
Reply:
in my previous thread it is not obvious that you need a space after the '.' and before the script name in the crontab file. (just to clarify)
Summary: I to have the same problem with cron I have it do backups then FTP the tar files to another system. but it always fails when I get to the transferring part. I think it has to do with the way cron tr...
Summary: Im having problems with my smoothwall (yes i know i should go bug them :) dialing up a connection. the problem as extracted from the log: all the normal stuff, all good then 08:34:16 chat send () 08:...
Summary: i have the foloowing hardware monitor type=standard display adapter s3 trio 3d/2x with 8mb video memory linux = redhat 7.2 whenever i try to program in x for displaying a pic it says it can set upa 24...