GithubHelp home page GithubHelp logo

unixadmintool's Introduction

unixadmintool's People

Contributors

jmattheis avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

broderpeters

unixadmintool's Issues

Toolbezeichnungen

Mir fiel soeben auf, dass die Bezeichnung, wie sie im Hauptmenü ('admin.sh') festgelegt wurden, in den einzelnen Modulen abweichen. Zum Beispiel 'Datensicherung' --> 'Backupverwaltung'
Diese gilt es zu bereinigen.

bildschirmfoto vom 2016-06-22 23 43 19

Handbuch

Das Handbuch soll folgendes enthalten:

  • Funktionen
  • Bedienung
    • Ein einem Beispiel aufzeigen wie man navigiert

[Allgemeines] Dateien strukturell und logisch ordnen

Strukturiert euren Code etwas anders!

In dem Moment, wo ihr eigene Funktionen zusammenbaut und diese über ein Menü aufrufen wollt, müssen diese im Programmcode weiter vorne aufgeführt werden. (siehe usermgnt.sh)

Das lässt sich dadurch ändern, dass ihr eure "Main"-Funktion in eine eigene Funktion kapselt und am Dokumentende aufruft. So könnt ihr in jedem Dokument die Struktur beibehalten und macht es demnach besser wart- und steuerbar.

Ein kleines Beispiel

#!/bin/bash

function main_menu() {
   echo "1 - Zeige alle System-Benutzer"
   read -n 1 -p "Eingabe: " a
   if [ $a -eq 1 ]; then
      userView
   else
      exit 0;
   fi
}

function show_all_users() {
   echo "Alle System-Benutzer --------------------"
   for user in `cat /etc/passwd | cut -d: -f1`; do
      echo $user
   done
}

function userView() {
   show_all_users
}

main_menu

By the way: Ich bins - Basti 😆

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.