Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I not sure whether this is even possible, but here is my objective.
1.FTP to a server anonymously.
2.Navigate folders and sub-folders using wildcards
(2 levels in most cases)
3.Query those folders on size,date and type
4.Reject those under a particular size,before a given date and not .pdf
5.Download all those that do meet the criteria.
I very much a newbie and have only used a GUI in the past but I guess Command Line is way to go.
I not sure whether this is even possible, but here is my objective.
1.FTP to a server anonymously.
2.Navigate folders and sub-folders using wildcards
(2 levels in most cases)
3.Query those folders on size,date and type
4.Reject those under a particular size,before a given date and not .pdf
5.Download all those that do meet the criteria.
I very much a newbie and have only used a GUI in the past but I guess Command Line is way to go.
Very possible. You can easily use expect and bash to do this, or use perl, python, or ruby. You can even write C code to do what you'd like.
So...post what you've written/done, and tell us where you're stuck, and we can help you.
From what you say if I run from the terminal with a single command I should O.K. I believe the LXTerminal 0.1.11 enables me to do so since it has command line structure like bash. If you could tell me what I need to type, I'd be grateful. Sorry I'm very much a Newbie - I use Peppermint 3 if that helps.
Thanks for the reply TB0ne.
From what you say if I run from the terminal with a single command I should O.K. I believe the LXTerminal 0.1.11 enables me to do so since it has command line structure like bash
No, LXterminal is only a terminal emulator, that's all. It's using bash from your Linux system to give you that prompt.
Quote:
If you could tell me what I need to type, I'd be grateful. Sorry I'm very much a Newbie - I use Peppermint 3 if that helps.
No, I'm not going to write your scripts for you, and I doubt anyone else will either. You can find a link to bash scripting tutorials in my posting signature, and many examples of expect on Google, as far as automating FTP queries. You were given hints in your other thread about looking for files on an FTP site: http://www.linuxquestions.org/questi...pe-4175454870/
..four months ago. Have you made no progress since then?
And again, you do not HAVE to write this in bash. The other languages mentioned are also good choices. How you do it is up to you.
Sorry TBone for any offence caused by implying you or someone WRITE a script.
I have used the command line and I'm very much a Linux newbie. My incorrect assumption was an ftp instructions was the solution.
It would appear not as a better idea would using ssh/scp/sshfs as suggested by schneidz - Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.