Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> crontab error exp command, contab giving error on exp command
georgem
post Apr 24 2009, 08:52 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 24-April 09
Member No.: 14,417



Hi
I am been facing as problem while i do my crontab
Below is a script made in root ie tst.sh
export EXPUSER
export EXPPWD

S=statistics=none
export S

G=grants=y
export G

C=constraints=y
export C

PATH=$PATH:/oracle/bin:$HOME/bin
export PATH

ORACLE_HOME=/oracle
export ORACLE_HOME

ORACLE_SID=orcl
export ORACLE_SID
# delete older dmp files
find /app/oracle/backup/dmpfiles -name '*.dmp*' -ctime +10 -exec rm {} \;
exp $EXPUSER/$EXPPWD file=car`date +"%d_%B_%Y_%H.%M"`.dmp log=carken.log owner=CARKEN $G $C $S;

which works fine when i type in root
./tst.sh

now i call the same file by crontab ie crontab -e
which gives me error exp command not found

could be pleae help me in this issue

Thanks for the support
Best Regards
George
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
michaelk
post Apr 25 2009, 12:53 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,797
Joined: 23-January 03
Member No.: 360



There are many methods for transferring files. What is the operating system of the remote location.
I might suggest scp which is secure and is based on SSH. Now how do want to copy the files i.e. manual or via cron.
Go to the top of the page
 
+Quote Post
georgem
post Apr 25 2009, 11:25 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 24-April 09
Member No.: 14,417



Thanks Michel for the reply
Linux version : Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
Transfer of files is from Linux(Main) to Linux(Remote Location)
Transfer of files is from Linux(Main) to Windows Xp(Remote Location)
I could wish the ftp transfer of files to be done automaticaly at a specified time through corntab.

Best Regards
George.
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th October 2017 - 02:50 PM