Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9227735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:09:10+00:00 2026-06-18T05:09:10+00:00

Apologies I know this is a well covered question, but I cant seem to

  • 0

Apologies I know this is a well covered question, but I cant seem to find any simple solutions…

Trying to get a problem sorted out and im hoping that somone will be able to assist.

Im creating a script and the only way I can think of to resolve this particular problem is by FTP’ing a file to a remote web server.

.sh script, I tried FTP initially but there appears to be a problem with doing this to do with passwords, I tried a couple of workarounds but this didnt work.

I have then tried wput but that seems to fail as well.

#!/bin/sh
wput -v file.php ftp://usr:pass@host.co.uk/docroot/

 bash wput.sh
wput.sh: line 2: $'\r': command not found
--12:20:58-- `/file.php'
    => ftp://user:xxxxx@host.co.uk/docroot/
Connecting to host.co.uk:21... connected!
Logging in as user ... Logged in!
==> CWD docroot
==> TYPE I ... done.
 ... failed.
==> SYST ... done (UNIX Type: L8).
==> PASV ... done.
==> TYPE A ... done.
==> LIST ... done.
==> TYPE I ... done.
==> PASV ... done.
' not understood) Skipping this file
FINISHED --12:20:59--
Transmission of 1 file failed.
wput.sh: line 4: $'\r': command not found
wput.sh: line 5: $'\r': command not found

Is anyone able to tell me where I’m going wrong. Could this be a file permissions issue or something?

All I need is the simplist solution for transfering a file from my computer to some web space automatically in the simpist way possible.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:09:11+00:00Added an answer on June 18, 2026 at 5:09 am

    Try to use ncftpput:

    Examples showing in ncftpput help menu:

      ncftpput -u gleason -p my.password Elwood.probe.net /home/gleason stuff.txt
      ncftpput -u gleason Elwood.probe.net /home/gleason a.txt (prompt for pass)
      ncftpput -a -u gleason -p my.password -m -U 007 Bozo.probe.net /tmp/tmpdir a.txt
      tar cvf - /home | ncftpput -u operator -c Server.probe.net /backups/monday.tar
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Apologies for the open endedness of this question, but I really don't know what
Apologies for the non-programming question, but does anyone know how to get Visual Studio
My apologies if my question is not well worded but I seem to have
My apologies if this is a little broad, but I'm struggling to know where
I apologize because I know this has been covered over and over again, but
Apologies in advance, this is a long question. (TL;DR : Does anyone have any
My apologies, I've actually asked this question multiple times, but never quite understood the
Apologies if this isnt phrased very well, but after upgrading to VS2012/.NET 4.5 ,
Okay well I apologize for how sloppy this code is, but I still cant
This is a stupid question, and I know it is, but for some reason

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.