Google Answers Logo
View Question
 
Q: Need some scripting code help ( No Answer,   3 Comments )
Question  
Subject: Need some scripting code help
Category: Computers > Programming
Asked by: nschmoyer-ga
List Price: $4.00
Posted: 04 Sep 2006 15:52 PDT
Expires: 04 Oct 2006 15:52 PDT
Question ID: 762206
I need to make a script that I can run in my linux terminal that will
do the following:

Log into a directory of a server online that I have access to,
and go one by one through each .txt file, displaying the text.
Then, at the end of each file, should be a prompt along the lines 
of "[s]ave [d]elete [q]uit".  

Delete will obviously delete the file, while save will save
it to a directory on my actual computer.

That's pretty much it.

Clarification of Question by nschmoyer-ga on 06 Sep 2006 11:12 PDT
Well, I have a fresh install of Ubuntu and I'm still learning
so I can't tell you whether it is ssh or nfs, but any method
that works for linux (even if i need to set anything up) is
completely fine with me.

I do see a lot of stuff about ssh though, I guess I should look
into it.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Need some scripting code help
From: wirednet-ga on 05 Sep 2006 15:33 PDT
 
Question: I need to know how I can access your server. Samba (Windows
File Sharing), ssh, nfs, other?
Subject: Re: Need some scripting code help
From: nothing_s_impossible-ga on 10 Sep 2006 04:52 PDT
 
its very easy if you can run a php script on it.

there are easy PHP script to do the same...
Subject: Re: Need some scripting code help
From: harrysnet-ga on 02 Oct 2006 10:38 PDT
 
Since you will be looking at the files you will be receiving them in your 
local computer anyway through the network. The simplest strategy therefore is

1) Download them as a batch (using ftp or whatever) in a temporary directory
2) Look at the local copy, delete the ones you dont want
3) Move the rest to the final location

These can be easily done with scripts (probably one for the whole process, 
and one for the ftp).

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy