unable to ftp thro batch file

September 21, 2010 at 04:37:28
Specs: Windows XP, 1 bg
I am using DTS through which various process are done and files are FTPd. I use batch files to ftp the files. These batch files are also called thro DTS. I use as follows in batch files

ftp -n -s:batch_script.txt>>log.log

The DTS was scheduled through SQL scheduling agent. All were working fine. Recently, due to some compulsion, we had to move to workload manager(No idea wat it is :-( ). The enact name is CA unicentre enterprise manager WLM. When my DTS is triggered throug WLM, the ftp is not happening. The batch file is also not getting errored.

Can any one please help me on this. I need these ftp working good via WLM too.


See More: unable to ftp thro batch file

Report •


#1
September 21, 2010 at 05:05:33
I'm pretty sure Autosys doesn't have a DOS client, neither for viewing jobs nor running them. But whatever. I'm also assuming you're checking the error log and not just the "log.log"

If your job isn't running, check Autosys' alert. That should tell you what the problem is.

If your job is running but the ftp step isn't executed, keep your ECHO OFF so you can see what's happening.


Report •

#2
September 21, 2010 at 06:42:37
@Razor
Thanks for the reply
I say as FTP is not happening because the file is not moved.The job is executed successfully, but ftp alone has issues. I am not able to check with my echo off as the prompt wont be available when triggered thro WLM. What I could assume is, when triggered through WLM, the ftp script in batch_script.txt is not read. I am not sure on this but I have no other clue.
Is there any thing else to be appended apart from the -s for being read from WLM.?

Report •

#3
September 21, 2010 at 07:16:52
If you're not running FTP though a batch script, then what does the error log show? (You do log the error stream, don't you?)

Is there any thing else to be appended apart from the -s for being read from WLM.?
I'm not sure what you're asking here.


Report •

Related Solutions

#4
September 21, 2010 at 08:26:41
As mentioned, I am using the following command in batch file for ftp

ftp -n -s:batch_script.txt>>log.log

batch_script.txt has the ftp scripts. The log.log is where I look for ftp logs and it is empty when triggered through WLM. In the command, there is a -s before the script file. This is what I have reffered in the previous post


Report •

#5
September 21, 2010 at 09:23:06
The log.log is where I look for ftp logs and it is empty when triggered through WLM.
Right, but what do the Autosys logs look like?

Report •

#6
September 22, 2010 at 00:21:13
Sorry. I have never used Autosys log. can u explan how to check it?

Report •

#7
September 23, 2010 at 05:32:19
When you make/edit/view the job, there should be two fields. One's called "Standard Output," and the other is "Standard Error." These should point to two text files (or the same text file) on the machine the job is running on. Anything that would be sent to the console will be sent to these two files instead. While the job will run without these files, you'll be left in the dark when something goes wrong.

As for the files themselves, just open them in a text editor.


Report •

#8
September 23, 2010 at 23:35:18
should I check this in DTS or in WLM?

Report •

#9
September 24, 2010 at 07:12:09
I'd start with WLM.

Report •


Ask Question