ncftpget

Moderator: Mattk

Nitro70
Senior Boarder
Senior Boarder
Posts: 59
Joined: Thu Aug 06, 2009 8:03 pm
Location: Germany
Contact:

ncftpget

Post 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
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: ncftpget

Post 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 "\"
Nitro70
Senior Boarder
Senior Boarder
Posts: 59
Joined: Thu Aug 06, 2009 8:03 pm
Location: Germany
Contact:

Re: ncftpget

Post by Nitro70 »

And where can I find usr/bin ?
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: ncftpget

Post 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.
Nitro70
Senior Boarder
Senior Boarder
Posts: 59
Joined: Thu Aug 06, 2009 8:03 pm
Location: Germany
Contact:

Re: ncftpget

Post by Nitro70 »

Fehler:

Auf \\METEOHUB/usr/bin konnte nicht zugegriffen werden.
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: ncftpget

Post 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?
Nitro70
Senior Boarder
Senior Boarder
Posts: 59
Joined: Thu Aug 06, 2009 8:03 pm
Location: Germany
Contact:

Re: ncftpget

Post by Nitro70 »

I want to try a webcam script. Weather data in the picture ...
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: ncftpget

Post by YJB »

That is to cryptic, where are you running the script, and from where to where is the data going to be transferred?
Nitro70
Senior Boarder
Senior Boarder
Posts: 59
Joined: Thu Aug 06, 2009 8:03 pm
Location: Germany
Contact:

Re: ncftpget

Post by Nitro70 »

It is a "shell script". The webcam-data is on my website. Meteohub should be taken the picture with the script.
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: ncftpget

Post 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.
Nitro70
Senior Boarder
Senior Boarder
Posts: 59
Joined: Thu Aug 06, 2009 8:03 pm
Location: Germany
Contact:

Re: ncftpget

Post by Nitro70 »

Thanks for your support.
Nitro70
Senior Boarder
Senior Boarder
Posts: 59
Joined: Thu Aug 06, 2009 8:03 pm
Location: Germany
Contact:

Re: ncftpget

Post 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
Nitro70
Senior Boarder
Senior Boarder
Posts: 59
Joined: Thu Aug 06, 2009 8:03 pm
Location: Germany
Contact:

Re: ncftpget

Post by Nitro70 »

Ach, warum soll man sich das Leben unnötig schwer machen.
Ich bleibe bei PHP ...
Erster Test (geht doch, oder?):
abcd.jpg
abcd.jpg (21.79 KiB) Viewed 12925 times
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

Re: ncftpget

Post 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?
Nitro70
Senior Boarder
Senior Boarder
Posts: 59
Joined: Thu Aug 06, 2009 8:03 pm
Location: Germany
Contact:

Re: ncftpget

Post 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.
Post Reply