Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FTP-Connects und Uploads in Shellscript integrieren?

Empfohlene Antworten

Hallo!

Kann ich in ein Shellscript FTP-Befehle verwenden, so dass nachts, wenn das Script gestartet wird, automatisch Datei1 und Datei2, als User xyz in Verzeichnis /ftp-sachen upgeloaded wird?

Schreib ich das dann Klartext in das Shellscript?

Vielen Dank,

Containy

Hallo

Du schreibst die Befehle in der Shell-Script wie du sie auf der Konsole tippen würdest...


#!/bin/bash

# ein beispiel

ls -lisa

# ende script

Zum Beispiel...

  • Autor

Ja danke, ähh, das weiß ich schon. Hab mich vielleicht etwas missverständlich ausgedrückt. Ich mein wie ich FTP-Befehle in ein Shellskript bringe ohne Interaktion.

Danke,

Containy

mit "expect" geht das.

sollteste dir mal anschaun

Was meinst du mit "ohne Interaktion"? Du schreibst dein ftp-Befehl ganz normal in der Shell-Script. Du kannst aber auch, wenn du möchtest, Passwörter, Benutzer-Name o.ä. in Umgebungsvariablen schreiben und diese dann in deinem Shell-Script benutzten. Wenn du nicht möchtest das Daten in Klartext in deinem Script stehen...

Hast Du auf dem remote Server wo der ftpd läuft root-Rechte?

Dann könnte man das ganze eleganter und evenuell verschlüsselt lösen...

mfg

cane

  • Autor

@alligator: Vielen Dank, das ist genau das, was ich suchte

@cane: Nein zum Glück nicht. Also Adminrechte ja. Aber ist ein Windows2000-Server mit dem ich so wenig wie möglich zu tun haben will.

Tschö,

Containy

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.