|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
following is my crontab file:
#!/bin/csh setenv ORACLE_HOME /topo1/app/oracle/product/10g setenv SDEHOME /topo4/arcsde/sdeexe91 setenv ORACLE_BASE /topo1/app/oracle setenv ORACLE_SID plandb setenv NLS_LANG american_america.UTF8 setenv TNS_ADMIN $ORACLE_HOME/network/admin setenv ORA_NLS33 $ORACLE_HOME/nls/data setenv LD_LIBRARY_PATH $SDEHOME/lib:$SDEHOME/bin:$ORACLE_HOME/lib:/usr/openwin/lib:/usr/dt/lib:/usr/dt/bin setenv PATH $SDEHOME/bin:$SDEHOME/etc:$SDEHOME/etc/bin:/usr/local/bin:/usr/ccs/bin:$ORACLE_HOME/bin:/usr/bin:/usr/ucb:/etc $HOME/bin/copy_to_gsdb.txt My crontab is working fine and in /var/cron/log there is no error. I want to create log file to see all the unix command in $HOME/bin/copy_to_gsdb.txt is executed properly. I mean the output file. How can I create it? ![]() |
|
#2
|
||||
|
||||
|
Chuck file redirection onto either the command shown or the actual command in the crontab for both stdout and stderr - like command > /tmp/log.txt 2>&1 or, you could check your mail, errors in cron tend to be sent via mail to the user under which they are running.
__________________
According to Sod's Law, buttered toast lands butter side down, when dropped. Per nature, cats always land on their feet. So, what happens when you strap buttered toast to the back of a cat and throw it out a window?. |
|
#3
|
|||
|
|||
|
Thanks Ehlana!!!
I got it. In mail. Thanks and Regards |
|
#4
|
|||
|
|||
|
HI there,
I need to create a time-stamped log file that records all the user activities of the user and saves them in the log file at a particular location............. Kindly help me with that. I need the code for that Thanking you Rahul Bhatnagar rahul-b@hotmail.com |
|
#5
|
|||
|
|||
|
cron does not tend to permit such variable-based things so you would need to address that issue within your script.
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > How to create output(log) file in crontab |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|