Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux Networking

Linux Networking This forum is for Linux Networking Only. Routing, servers, etc.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-11-2008, 05:07 PM
Senior Member
 
Join Date: Jan 2007
Posts: 133
Wanch is on a distinguished road
Default No wput?

It is nice to use 'wget' when fetching something but what if I want to 'put' something on an FTP server? There is no wput command that I can see.
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 06-13-2008, 01:17 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 533
Jordan is on a distinguished road
Default

There is a wput project but I haven't tried it. http://wput.sourceforge.net/

I generally just write shell scripts to do this. It is fairly easy.

Code:
#!/bin/sh -vx

# Script to FTP data to server

# Paramters:    host            FTP Server
#               user            FTP Username
#               passwd          FTP Password
#               file            File to send/put
############################################################################

# Variables
HOST     =$1
USER     =$2
PASSWD=$3
FILE      =$4

# Connect to FTP HOST and Send File
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE
quit
END_SCRIPT
exit 0
Reply With Quote
  #3 (permalink)  
Old 06-15-2008, 03:12 PM
Tor Tor is offline
Senior Member
 
Join Date: Oct 2007
Posts: 384
Tor is on a distinguished road
Default

Nice script! Seems odd there is no "wput" since there seems to be everything and everythings opposite in Linux command.
Reply With Quote
Reply

Tags
wget, wput

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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. The time now is 02:02 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.