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:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old October 27th, 2004, 07:35 PM
adidas0215 adidas0215 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 46 adidas0215 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 52 m 14 sec
Reputation Power: 4
Send a message via AIM to adidas0215 Send a message via Yahoo to adidas0215
Question Not even sure if you can do this...

Hi,

I have a .sh script that runs commands against a log file. when the script is finished running it redirects the output into a txt file. Is there a way to ftp it from the remote host to a folder in my local host? I know how to ftp it over from the remote host using the get command from a cmd window, but is there a way to put this into the script itself so that the user will not have to open up a cmd window and get the file, but instead have the script run and they can just click on the output.txt file in their folder, and that file will have the output of the script?

-Does this make sense?

Reply With Quote
  #2  
Old October 28th, 2004, 09:45 AM
andyb1ack andyb1ack is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 60 andyb1ack User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 14 sec
Reputation Power: 4
Hiya,
I think a here document is what you want...
Something like:

ftp node <<END_OF_FTP
some ftp commands
END_OF_FTP

Note that you must not have any spaces before of after the END_OF_FTP (or whatever text you want to use) ...

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Not even sure if you can do this...


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 5 hosted by Hostway