1753392 Members
7252 Online
108792 Solutions
New Discussion

Re: Need ftp script

 
Vishal_1980
Regular Advisor

Re: Need ftp script

Hello sir, yes i made the changes.However i want to cut paste the files.The requirement is when the files get generated on source it will be cut from their & paste to the destination.
Please suggest...

Thanks & have a great day ahead.
Regards,
Vishal
Dennis Handly
Acclaimed Contributor

Re: Need ftp script

>i want to cut paste the files.

 

(Files don't get cut & pasted, they get copied and then removed.  :-)

 

After the mput you can simply do:

!rm -f $src

 

But since there is no checking for any errors, this may be dangerous.

Vishal_1980
Regular Advisor

Re: Need ftp script

Thanks a lot sir....yes i am discussing the same with my team & we come to the same conclusion.So how could we do the error checking.Please suggest further.
Vishal_1980
Regular Advisor

Re: Need ftp script

Will you please guide me: i want to scheduled the program for every 15 min in a day ,for the week & year as well


Thanks in advance .....
Vishal_1980
Regular Advisor

Re: Need ftp script

I am scheduling by the bellow values:

*/15,*,*,* * * * * /usr/sap/RDV/SYS/global/ftp/RMPA/ftpcptest.sh
Dennis Handly
Acclaimed Contributor

Re: Need ftp script

Dennis Handly
Acclaimed Contributor

Re: Need ftp script

>for every 15 min in a day, for the week & year

>*/15,*,*,* * * * * /usr/sap/RDV/SYS/global/ftp/RMPA/ftpcptest.sh

 

This is the linux way of doing things.  For HP-UX, you need:

0,15,30,45 * * * * /usr/sap/RDV/SYS/global/ftp/RMPA/ftpcptest.sh

Vishal_1980
Regular Advisor

Re: Need ftp script

Hello Dennis sir,

I am getting the mail as below.Also there is nothing found in the cron log.
Date: Tue, 10 Jun 2014 09:30:00 +0530 (IST)
From: root@eccdevvg.infodartsap.com
Message-Id: <201406100400.s5A400n3005435@eccdevvg.infodartsap.com>
Subject: cron

sh: /usr/sap/RDV/SYS/global/ftp/RMPA/ftpcptest.sh: not found.


*************************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:

/usr/sap/RDV/SYS/global/ftp/RMPA/ftpcptest.sh

Please suggest me on this.

Thanks & regards,
Vishal
Dennis Handly
Acclaimed Contributor

Re: Need ftp script

>sh: /usr/sap/RDV/SYS/global/ftp/RMPA/ftpcptest.sh: not found.

 

Well, is that the path to your script?

Vishal_1980
Regular Advisor

Re: Need ftp script

Yes sir ,the path is same.However i have to manually execute the script.

Thanks ,
VIshal