Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: floppy on December 31, 2010, 09:56:35 AM

Title: (solved) how to start cftp as a terminal
Post by: floppy on December 31, 2010, 09:56:35 AM
hello,
i loaded cftp as "on demand" application. When clicking on the "on demand" menu for starting cftp, nothing happens. Is there a reason for this? or should i start it as a command line? but how in order to have the use in a terminal? (not as command line)
thanks. (I use TCL3_4_1)


Solution: I use now Midnight Commander as a ftp programm (on demand).
Title: Re: how to start cftp as a terminal
Post by: Juanito on December 31, 2010, 10:09:29 AM
"ondemand" is a shortcut to load an extension - clicking once will load the extension and what happens next depends on how the extension maker set things up.

Once you've clicked once on ondemand/cftp, what happens when you type "cftp -h" in a terminal window?
Title: Re: how to start cftp as a terminal
Post by: floppy on January 01, 2011, 11:38:22 AM
Voila ce qui arrive / here is what happens at the screen:


cftp 0.12 by Dieter Baron <dillo@giga.or.at>

Usage: cftp {-h|-V}
       cftp [-p port] [-u user] [-s] {host|alias} [directory]
       cftp url

  -h, --help        display this help message
  -V, --version     display version number
  -p, --port PORT   specify port
  -u, --user USER   specify user
  -s, --sftp        use sftp

Report bugs to <dillo@giga.or.at>.

I had expected a windows would open.. and I would scroll in few menus for loading/saving files.
Title: Re: how to start cftp as a terminal
Post by: curaga on January 01, 2011, 12:26:01 PM
cftp is a console app. If you want a gui check out filezilla.
Title: Re: how to start cftp as a terminal
Post by: maro on January 01, 2011, 09:55:28 PM
@floppy: Trust me I've tested this with my 7170: cftp fritz.box

You should then see a screen which has just a single line a the top like:
Code: [Select]
drwxrwxrwx    5 root     root        16384 Jan  1  1970 DataTraveler2-0-Partiti
The name of this directory depends on your USB pendrive. At the bottom you get a status display of something like:
Code: [Select]
--cftp: fritz.box /                                              <remote>--All--
226 Transfer complete.
As the cursor is already positioned on the one available directory you have to just hit ENTER and you'll step down into that directory (i.e. your USB pendrive).

Here are some keys that you might find helpful (the full list can be obtained by pressing 'H' followed by the 'K' key, bearing in mind that 'q' is needed to quit that help):

In addition to those keys there are commands that can be used after entering into the 'command mode' by pressing the ':' key. Some help can be obtained by pressing 'H' followed by the 'F' key.

In my testing the connection had the tendency to time out within a few minutes, and the 'reconnect' command (as well as the 'r' key) did not help in that matter. Nevertheless quitting the application and restrating it is IMHO so painless that this was not really much of an issue.

Regarding the matter of a GUI alternative I'll need to mention that I'm not a friend of "heavy" GUI apps. With this in mind I'd like to point out that the repository also contains the 'gftp.tcz' extension. As this is a GTK1 app it should only require ca. 1.1 MB instead of the ca. 18.6 MB for 'filezilla' (including the respective dependencies).


EDIT: I think I should add that this post is slightly geared towards the specific issue of the OP as it is know from another thread (http://forum.tinycorelinux.net/index.php?topic=7991.0). The information should be still valid also for other users of 'cftp'.