?
Solved

automate ftp transfer from windows xp to unix

Posted on 2011-10-31
6
Medium Priority
?
767 Views
Last Modified: 2012-05-12
Hello, I need to write a batch file that will automatically ftp a file from my Windows XP box to my SCO Unix box.  I can do this manually without a problem but  need to schedule it to run every night at 1:00 a.m..  The file name is not always going to be the same.  Can I use a wildcard?
0
Comment
Question by:foxhelp
  • 3
  • 2
6 Comments
 
LVL 16

Expert Comment

by:JammyPak
ID: 37059207
sure...to push from Windows you can just write a .bat file, then call an ftp script for the ftp commands

see here: http://www.dostips.com/DtTipsFtpBatchScript.php

use mput so you can use a wildcard in the put statement

you could also look for a Windows command line scp to copy to unix instead of using ftp
0
 
LVL 16

Expert Comment

by:JammyPak
ID: 37059213
oh yea, then use task scheduler to set the job up...or the good old at command
0
 
LVL 16

Expert Comment

by:AlexPace
ID: 37059313
If you need a secure transfer (FTPS or SFTP) or if you need Passive Mode for data transfers the native DOS command line FTP client won't work.

If this is a project for work, or it is more complicated than a simple transfer then you might consider using Robo-FTP.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:foxhelp
ID: 37059478
Here is my script but it is not logging in to the server.  I get a not logged in error.

@ftp -i -s:"%~f0"&GOTO:EOF
cd c:\telaidnorcross\queue
open 192.168.1.10
root
devsysone
cd /server/lown
put Lown*
bye

Can you check the script and let me know what is wrong with it.  It should issue an ftp to 192.168.1.10, log in as root with devsysone as the password, cd to /server/lown directory, and put a file out there.

Thanks


0
 
LVL 16

Accepted Solution

by:
JammyPak earned 2000 total points
ID: 37060120
I don't think the wildcard will with with a put - try to mput
0
 

Author Closing Comment

by:foxhelp
ID: 37064741
That worked.  Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question