Page 1 of 2
ncftpget
Posted: Sat Dec 18, 2010 3:50 pm
by Nitro70
Hallo,
auf dem Meteohub soll ja "ncftpget" bereits drauf sein. Zu finden unter \usr\bin\ncftpget .
Leider kann ich dieses Verzeichnis nicht finden/öffnen. Mache ich etwas falsch? Kann jemand mal für einen "Dummy" erklären, wie man es findet?
Gruß JÖRG
Re: ncftpget
Posted: Sat Dec 18, 2010 4:08 pm
by YJB
Hi,
Should be in /usr/bin:
Code: Select all
meteohub:/# ls -al /usr/bin/ncftp*
lrwxrwxrwx 1 root root 23 Jun 20 11:20 /usr/bin/ncftp -> /etc/alternatives/ncftp
-rwxr-xr-x 1 root root 238696 Oct 24 2006 /usr/bin/ncftp3
-rwxr-xr-x 2 root root 151604 Oct 24 2006 /usr/bin/ncftpbatch
-rwxr-xr-x 1 root root 107732 Oct 24 2006 /usr/bin/ncftpbookmarks
-rwxr-xr-x 1 root root 145812 Oct 24 2006 /usr/bin/ncftpget
-rwxr-xr-x 1 root root 122484 Oct 24 2006 /usr/bin/ncftpls
-rwxr-xr-x 1 root root 147476 Oct 24 2006 /usr/bin/ncftpput
-rwxr-xr-x 2 root root 151604 Oct 24 2006 /usr/bin/ncftpspooler
Are you sure that you have the slashes right: Linux wants to use "
/", dos uses "
\"
Re: ncftpget
Posted: Sat Dec 18, 2010 4:15 pm
by Nitro70
And where can I find usr/bin ?
Re: ncftpget
Posted: Sat Dec 18, 2010 4:19 pm
by YJB
It's not usr/bin, but /usr/bin.
If you start a path with "/", LInux will assume root. If you start a path without "/" you are using a relative path that is dependent on the current doirectory.
So /usr/bin will always get you to the same location.
Re: ncftpget
Posted: Sat Dec 18, 2010 4:22 pm
by Nitro70
Fehler:
Auf \\METEOHUB/usr/bin konnte nicht zugegriffen werden.
Re: ncftpget
Posted: Sat Dec 18, 2010 4:26 pm
by YJB
Ah, now I see, you are using the share and try to get access to it. That is not going to work. You will need to login using ssh before you can use the command.
Even when it was available using the sahre, it would not work since the platform is different.
What are you trying to do?
Re: ncftpget
Posted: Sat Dec 18, 2010 4:27 pm
by Nitro70
I want to try a webcam script. Weather data in the picture ...
Re: ncftpget
Posted: Sat Dec 18, 2010 4:30 pm
by YJB
That is to cryptic, where are you running the script, and from where to where is the data going to be transferred?
Re: ncftpget
Posted: Sat Dec 18, 2010 4:33 pm
by Nitro70
It is a "shell script". The webcam-data is on my website. Meteohub should be taken the picture with the script.
Re: ncftpget
Posted: Sat Dec 18, 2010 4:36 pm
by YJB
I'm not sure if that is going to work, but if you want to run a shell script on meteohub, you will need to login using an ssh utility like putty or openssh. Accessing meteohub using share "\\meteohub\..." is NOT going to work for your purpose.
Re: ncftpget
Posted: Sat Dec 18, 2010 4:39 pm
by Nitro70
Thanks for your support.
Re: ncftpget
Posted: Sat Dec 18, 2010 5:37 pm
by Nitro70
Der SSH Zugang funktioniert jetzt.
Doch wie bekomme ich mein Script dorthin. Hat jemand eine Anleitung oder ist es zu intensiv?
Oder könnte es jemand für mich machen, wenn ich meinen Meteohub freigebe? Das Script ist von WFPOST.
Jörg
Re: ncftpget
Posted: Sat Dec 18, 2010 7:20 pm
by Nitro70
Ach, warum soll man sich das Leben unnötig schwer machen.
Ich bleibe bei PHP ...
Erster Test (geht doch, oder?):

- abcd.jpg (21.79 KiB) Viewed 12939 times
Re: ncftpget
Posted: Sat Dec 18, 2010 7:36 pm
by wfpost
Nitro70 wrote:Der SSH Zugang funktioniert jetzt.
Doch wie bekomme ich mein Script dorthin. Hat jemand eine Anleitung oder ist es zu intensiv?
Oder könnte es jemand für mich machen, wenn ich meinen Meteohub freigebe? Das Script ist von WFPOST.
Jörg
mit dem kostenlosen Programm
WinSCP kannst du mit einer Explorer GUI alle (internen) meteohub-Verzeichnisse aufrufen und mit dem integrierten Editor bearbeiten. Um das script ausführbar zu machen, muß man das execute-bit setzen.
Geht mit rechter Maustaste auf die Datei. Oder mit chmod.
Ausser dem webserver-verzeichnis andere oder gar root freizugeben, ist nicht nötig und auch nicht zu empfehlen.
Welches script? das twitter script?
Re: ncftpget
Posted: Sat Dec 18, 2010 7:55 pm
by Nitro70
Hi wfpost,
wir hatten das vor einiger Zeit mal per PN besprochen. Habe dann nochmal nachgefragt und keine Antwort bekommen. Habe das Projekt dann erstmal aufs Eis gelegt.
Momentan etwas mehr Zeit, möchte ich meine Webcam überarbeiten.
Das Script, welches ich meine ist folgendes:
Bilder von der Kamera abholen - Wetterdaten einfügen ...
Das mit dem Freigeben meinte ich so, ob mir hier jemand das auf meinem Meteohub einrichten kann (online). Mir fehlen wahrscheinlich die Kenntnisse!
Daher bin ich erstmal wieder auf PHP umgestiegen. Deine Variante finde ich allerdings "eleganter" und ist genau das was ich suche. Allerdings bekomme ich es mangels Können nicht hin.
Gruß
JÖRG
Wow,
das Programm (WinSCP) gerade mal ausprobiert, cool.
Müsste jetzt nur wissen wohin mit dem Script ...
Habe Dir eine Nachricht geschickt.