I have a linux box running ubuntu and it has a samba enabled folder containing a process.sh that I wish to be able to access and run from my raspberry pi over a LAN. Ideally I would like to be able to copy a file into the Ubuntu folder from the Pi first then run the process.sh script
I have a linux box running ubuntu and it has a samba enabled folder containing a process.sh that I wish to be able to access and run from[...]
could call from windows command prompt to allow access to the
networked share folder but that's as far as I got. running the .sh was
not working :(
I have a linux box running ubuntu and it has a samba enabled folder containing a process.sh that I wish to be able to access and run from my raspberry pi over a LAN. Ideally I would like to be able to copy a file into the Ubuntu folder from the Pi first then run the process.sh script
on the Ubuntu box to process it.
Is that possible? I'm trying to figure out how best to access the folder from the Pi and also how to run scripts remotely using a script on the
Pi.
Another scenario is to try and call the script from my windows 7 box but although I can see the folder and the process.sh within it I'm stuck trying to get to a point whereby I can run that script on the Ubuntu box from the windows machine. I did find a pushd command that I could call from windows command prompt to allow access to the networked share
folder but that's as far as I got. running the .sh was not working :(
NuSkooler wrote to Avon <=-
On Saturday, November 4th Avon muttered...
I have a linux box running ubuntu and it has a samba enabled folder containing a process.sh that I wish to be able to access and run from my raspberry pi over a LAN. Ideally I would like to be able to copy a file into the Ubuntu folder from the Pi first then run the process.sh script
Enable SSH access on the Ubuntu machine if you have not already. Then,
you have
multiple options:
1) You can ssh to the box (e.g. from the Pi or from Windows
via PuTTY, etc.) and execute the script
2) Again with ssh, can simply remotely execute the script:
ssh username@remotemachine /path/to/process.sh
(you can do this via Windows as well; google remote ssh
windows)
3) You can use sshfs to remotely mount a path to your local
(pi) box. ...the filesystem is as good as local at that point pretty
much. Again, you may be able to do this from Windows but I've never
tried.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (2 / 14) |
Uptime: | 70:53:59 |
Calls: | 6,488 |
Calls today: | 1 |
Files: | 12,096 |
Messages: | 5,275,625 |