SunQuest
           UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old October 18th, 2004, 03:43 AM
manglikakhil manglikakhil is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 1 manglikakhil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question FTP files from unix server to NT system.

Hi,

I am very new to shell scripting, infact I have never used it before. Now for one of my projects I need to do the following using a shell script:

1. Copy the files from Unix server to NT server as and when they arrive in the directory of Unix server.

2. When copying the files, the destination files should be renamed to *.txt for the NT server.

3. Capture the log of the FTP session, check for successful Transmission. If the FTP is successful, then on the unix machine move the particular file to another directory. If FTP is unsuccessfull, then send an email with the contents of the log to the Distribution list.

4. Repeat the process for the next file till that directory is empty.

TIA,
Akhil

Reply With Quote
  #2  
Old October 19th, 2004, 09:33 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 44 m 45 sec
Reputation Power: 9
your mam sure sant you to store with a LIST (and money)
buy milk, bread, ... spaghetti and cigarets (why not ?)
you are mam, ftp your child
send ftp to remote, left it make a list, collect it
work on it (local)
resend ftp with the list to remote
collect what's on the list
come back, compare the list with the listING of what you
received. if ok
send child to remote and move or remove what's on the list
if not, make a diff (if you are able) else restart the whole process
finally, rename locally your files.

i did the job using ssh2 tuneling and ncftp (very reliable)
i cannot (re)do it for free

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > FTP files from unix server to NT system.


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway