Visit The New, Modern Unix Linux Community


AIX , unix ftp to windows desktop


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting AIX , unix ftp to windows desktop
# 1  
AIX , unix ftp to windows desktop

Hi guys,

i want to know if i can make a script to ftp or sftp files from the unix box to my windows desktop or c: drive.

I log into the server through Putty, once in the server i run a script which makes a file called disk.log every 30 minutes. i then have to manually copy it to the computer im on. is there a way to get the unix box to ftp the file every 30 mins by itself .

eg ftp the file disk.log from /home/jb1/ to c:\

many thanks

ps i normally use ksh and im on aix
# 2  
Quote:
Originally Posted by hassanj
i want to know if i can make a script to ftp or sftp files from the unix box to my windows desktop or c: drive.
There are various FTP servers available for windows, some better than others.

An SSHD for Windows is a different kettle of fish. Try Cygwin.
# 3  
In which direction do you want to transfer the files?
unix --> windows
windows --> unix

in both cases you can use a text file to store IP, username, password and commands to execute, for example a put :
ftpput.txt:
open 10.12.2.10
user admin password
put file1
close
bye

and invoke this file from the command line:
ftp -n < ftpput.txt ==> from unix to win
ftp -s:ftpput.txt ==> from win to unix

Hope this helps

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #826
Difficulty: Medium
JSON is a language-independent data format.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

scp to get a file from windows desktop to UNIX server

Hi, I want to use scp to upload file to my unix server. i am using this: scp D:\testr.txt unixuser@unixhost:/path it returns an error: ssh: D: host/servname not known i am not sure how to tell path of my D drive in the command and how will command understand it has to pick from my... (5 Replies)
Discussion started by: Kohli
5 Replies

2. Windows & DOS: Issues & Discussions

Transfer of zipped folder from windows desktop to UNIX server

Hi all, I'm a newbie to unix. My requirement is to create an automation script which will transfer a zipped folder from my/remote desktop to an unix server. Tools lik WinSCP shouldnt be used. No manual moving. I use putty to connect to server. I couldnt find any help on this topic. Should i use... (3 Replies)
Discussion started by: sherin22
3 Replies

3. Shell Programming and Scripting

FTP from windows to unix server using unix shell script

Hi, Is it possible to ftp a huge zip file from windows to unix server using unix shell scripting? If so what command i need to use. thanks in advance. (1 Reply)
Discussion started by: Shri123
1 Replies

4. Shell Programming and Scripting

UNIX script to FTP file from UNIX server to windows

Hi, I am new to this subject.....Can someone please help me out with the script... unix usernm "sdhftst" unix pwd "chsd13" windows usernm "dfghtst" windows pwd "chsd13" path..../xxx/xxxxx/xxxxxx/xxxxxxx please can u get me a script...its only one file to get ftp. Thanks... (2 Replies)
Discussion started by: himakiran9
2 Replies

5. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

Hi Friends, I have this script for ftping files from AIX server to local windows xp. #!/bin/sh HOST='localsystem.net' USER='myid_onlocal' PASSWD='mypwd_onlocal' FILE='file.txt' ##This is a file on server(AIX) ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies

6. Shell Programming and Scripting

Upload files from desktop to unix through FTP

Hi , I want to upload some files from my desktop to unix server through FTP . The list of files are in a text file .Please suggest how to do it through scrip . Thanks in advance .. Anupam (8 Replies)
Discussion started by: anupamhalder
8 Replies

7. Shell Programming and Scripting

ftp from windows to unix using a perl script on unix machine

i need to ftp a file from windows to a unix machine by executing a sript(perl/shell/php) from that unix machine.i can also use HTML and javascript to build forms. (3 Replies)
Discussion started by: raksha.s
3 Replies

8. AIX

copmress and ftp from AIX to Windows

Hi all, I am required to automate a ftp process for a file around 2 GB on a daily basis from AIX to Windows.Is there a utility or a software that could compress the file on AIX and can be uncompressed on Windows. Source : AIX 5.3 Target : Windows 2003 server Thanks all. (2 Replies)
Discussion started by: sam_78_nyc
2 Replies

9. HP-UX

to put the unix script output on windows desktop

Hi could you pls guide a to automate that unix script output is avaialble on desktop.i can FTP and then download but i want to automate it. rgds (1 Reply)
Discussion started by: Assassin
1 Replies

10. Shell Programming and Scripting

FTP from AIX to 20 Windows clients

I have got a unix server ( AIX ) and 20 clients ( windows 2000 ) . I have to transfer a file through FTP from the server to each of 20 clients daily to check the network speed. But each time I do ftp, I have to enter username and password and then transfer the file using "put <filename>". I... (2 Replies)
Discussion started by: sharuvman
2 Replies

Featured Tech Videos