The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Changing windows server alias name on windows or unix? NycUnxer UNIX for Dummies Questions & Answers 1 03-26-2008 05:54 PM
how to execute script from my desktop windows xp to my HPUX server? kenshinhimura HP-UX 2 03-05-2008 05:47 PM
view remote linux desktop on my windows machine new2ss UNIX for Advanced & Expert Users 4 06-07-2007 05:06 AM
to put the unix script output on windows desktop Assassin HP-UX 1 04-23-2007 10:52 PM
I'm looking for a 64-bit Desktop that will run Windows, Linspire, FreeBSD and Solaris Mr. Nice Guy UNIX for Dummies Questions & Answers 0 12-03-2005 08:38 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-20-2007
hassanj hassanj is offline
Registered User
  
 

Join Date: Aug 2007
Location: WALES
Posts: 7
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 (permalink)  
Old 12-20-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by hassanj View Post
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 (permalink)  
Old 12-20-2007
silex's Avatar
silex silex is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 11
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
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0