- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Microsoft
- >
- Need script to ftp single file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2014 07:34 AM - last edited on 09-05-2014 02:22 AM by Maiko-I
09-04-2014 07:34 AM - last edited on 09-05-2014 02:22 AM by Maiko-I
Need script to ftp single file
Hello Expert,
Yesterday ,Pattrick provided me one program to ftp single file from UNIX to windows server 2008.
Below is the script content:
open srv0536
pvishal
passw0rd
lcd /D "D:\MSCM\DSSO"
bin
prompt
cd /law/c123da/gen/perms_files
pwd
dir
get test_ftp
bye
The file name is ftp-file.script.
There is one more file called ftp-file.bat & the contents are,
ftp -i -s:ftp-file.script
I use to run this command from the win 2008 server to ftp the file from UNIX box therefore getting the below error,
C:\Users\VPatankar\Desktop>ftp -i -s:ftp-fil
ftp> open srv0536
Connected to srv0536.netaspx.com.
220 srv0536 FTP server (Version 4.2 Mon Dec
User (srv0536.netaspx.com:(none)):
500 'USER ': command not understood.
Login failed.
ftp> userid "kvaze"
Invalid command.
ftp>
ftp> password "passw0rd"
Invalid command.
ftp>
ftp> lcd /D "D:\MSCM\DSSO"
lcd local directory.
ftp>
ftp> bin
200 Type set to I.
ftp> prompt
Interactive mode On .
ftp> cd /law/c123da/gen/perms_files
530 Please login with USER and PASS.
ftp> pwd
530 Please login with USER and PASS.
ftp> dir
530 Please login with USER and PASS.
530 Please login with USER and PASS.
Request you to please provide me the solution.
Thanks
Vishal
P.S. This thread has been moved from HP-UX > Languages and Scripting to Microsoft > general. - Hp Forum Moderator
- Tags:
- ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2014 08:35 AM - edited 09-04-2014 08:36 AM
09-04-2014 08:35 AM - edited 09-04-2014 08:36 AM
Re: Need script to ftp single file
The only thing I can suggest is to play with the script and see what you can figure out. You can also try google and see if there are any hings there.
The thing I posted yesterday worked on my PC, but I am running Windows 7, so your mileage may vary.
Also note that the output you are providing from your attempt to run the script does not appear to match the ftp-file.script file that you posted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2014 01:51 PM
09-04-2014 01:51 PM
Re: Need script to ftp single file
By the way, your other thread was moved to the Windows category.
http://h30499.www3.hp.com/t5/General/Need-script-to-ftp-single-file/m-p/6600000#M11521