Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP from NT to UNIX with Maestro

Status
Not open for further replies.

gaus

Programmer
Joined
Feb 5, 2001
Messages
92
Location
US
This is a question that I will be amazed to receive an answer for, but here it goes. One of the jobs we execute in a batch train FTP's a file from NT to UNIX via a bat file executing an FTP script. I can get on the server console and execute the bat file and it works just fine. When we manually run the job thru the Maestro scheduler, it's as if it is ignoring the open statment and the id and password. No error, just failure. I am hoping this message will reach someone who has run across this unusual problem. We have contacted the Maestro vendor for advice, but, nothing yet. We could do a get from UNIX, but that would require creating more FTP shells and another schedule (not boring anyone with the details), so getting it to work from NT to UNIX is much more attractive at this point. The entire application and all files reside on NT, we are only sending some extracts to UNIX.
Thanks,
Gary
 
HI!

* Remeber that a scheduled job runs as a different user, and with posibly different environment varialbes like %PATH% and other.
Have you configured the BAT file and the script not to use relative file access?
I mean use
C:\FOLDER\filename.ext
and not only
filename.ext
This can be catchi if your using
LCD C:\TEMP
but your current drive is D ...

Check also that the account running the batch job has the apropriate NTFS permissions to access the ftp script.

* Try to embed the target UNIX host in the FTP command:
ftp x.x.x.x
or
ftp user:pass@x.x.x.x

And ofcourse embed debug commands in the BAT file to check were it stops.
debug commands can be like:
ECHO STAGE1 CONNECTING TO SERVER >>C:\FTPDEBUG.TXT


* One more option to consider if it still don't work is TFTP .
It should be quite easy to implement.


Bye
Yizhar Hurwitz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top