Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Changing files on a RaspberryPi connected via USB

by ww (Bishop)
on Feb 08, 2014 at 21:06 UTC ( #1074063=note: print w/ replies, xml ) Need Help??


in reply to Changing files on a RaspberryPi connected via USB

And your question's relevance to Perl is.... uh.... um... ah...

Oh! "not specified.

So that sorta' makes it hard to answer in the confines of "PerlMonks, the Monastery"

Perhaps you should direct your question to a pi-oriented-site (mathematics)... or a bakery if it's pie making you're seeking... or just maybe, one of the sites dedicated to RasberryPi.

But if we are to infer that the "scp module" is a Perl module, as opposed to the python flavor or one of the variants created for Android, perhaps you'd like to read On asking for help and present some code that reflects the current (even if 'failed', perhaps) state of your efforts.

Come, let us reason together: Spirit of the Monastery

If you didn't program your executable by toggling in binary, it wasn't really programming!


Comment on Re: Changing files on a RaspberryPi connected via USB
Select or Download Code
Re^2: Changing files on a RaspberryPi connected via USB
by hakim-djz (Novice) on Feb 08, 2014 at 21:42 UTC

    Apologies, the question I agree, seems not related to Perl.

    I had been looking at the Device::USB perl module and thought there may have been some similarities since the RaspberryPi would be connected via USB, and was hoping someone out there might have some ideas on how to create a perl script to change the details of a wi-fi config file or other files.

    The code that I had been using with the Net::SCP module for another project, which is similar to what I need, works as:

    copy file from other to my computer

    open file and add or change as needed

    save and copy back to other computer

    I don't have the code for changing the RaspberryPi written yet, but it's just a matter of changing IP addresses and the user & login names of my old program, I can upload that if it helps, but the main issue is making a script to do the above through USB connection. If Perl has any modules out there that could do this

    Or in a more general sense, looking to make a Perl script to manage files on a Linux computer connected through a USB connection.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074063]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (15)
As of 2014-08-28 16:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (264 votes), past polls