Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2000
Posts: 2,667
C
Charles Offline OP
Veteran
OP Offline
Veteran
C
Joined: Oct 2000
Posts: 2,667
I've been banging my hand on this one for quite a while now.

I am trying to send a file by ftp under bash with one command line, or at least to give before hand the login and password of the ftp connexion.

I managed something with ncftp but not everyone has it so If anyone has the slightest idea what to do please let me know.

(he should be able to send a file without ANY user assistance)


Do you believe in love at first sight,
or should I walk by again?
Sponsored Links
Joined: Jul 2002
Posts: 19
B
bud Offline
Newbie
Offline
Newbie
B
Joined: Jul 2002
Posts: 19
I do something like this:

ftp -n <remote.send

The remote.send file has any ftp commands you like. I'm using it to archive a weeks worth of backups on a remote server:

open ftp.mydomain.com
user myuser password
binary
delete file6.tgz
rename file5.tgz file6.tgz
rename file4.tgz file5.tgz
rename file3.tgz file4.tgz
rename file2.tgz file3.tgz
rename file1.tgz file2.tgz
rename file.tgz file1.tgz
lcd /var/www/html/forum/cron
put file.tgz
quit


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,551
Posts293,833
Members13,838
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 403
Topics Created 0
Posts Made 0
Users Online 2
Birthdays 30
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,808
Greg Hard 4,625
Top Posters(30 Days)
isaac 25
WebGuy 6
Gizmo 2
Top Likes Received
isaac 62
Gizmo 12
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 16
WebGuy 2
Gizmo 2
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.5
(Release build 20201027.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.046s Queries: 19 (0.013s) Memory: 3.2582 MB (Peak: 3.4620 MB) Data Comp: Zlib Server Time: 2020-10-31 06:35:27 UTC
Valid HTML 5 and Valid CSS