[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 554: include_once(./includes/auth/auth_punbb.php) [function.include-once]: failed to open stream: No such file or directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 554: include_once() [function.include]: Failed opening './includes/auth/auth_punbb.php' for inclusion (include_path='.:/usr/share/php:..')
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1042: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1042: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1042: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
MandrivaUser.de • Thema anzeigen - [gelöst] Auswahlmenü erstellen

MandrivaUser.de

Die deutschsprachige Mandriva-Benutzercommunity
Aktuelle Zeit: 22.05.2013, 23:56

Alle Zeiten sind UTC + 1 Stunde




Ein neues Thema erstellen Auf das Thema antworten  [ 3 Beiträge ] 
Autor Nachricht
 Betreff des Beitrags: [gelöst] Auswahlmenü erstellen
BeitragVerfasst: 22.09.2009, 09:46 
Offline

Registriert: 25.02.2008, 19:32
Beiträge: 943
Wohnort: Trieplatz
Ich hab mir ein primitives Script gebastelt um Backups von meinen Daten auf der Win- Partition zu machen. Es läuft ausgezeichnet. Ich hätte jedoch gern, das ich eine Auswahl habe, welches Verzeichnes ich back uppen will, oder alle...
In Basic (alte 8bit interpretersprache für C64 und KC85) war soetwas kein Problem- man konnte einfach über die Zeilennummer sagen wohin der Programmsprung erfolgen sollte.

Beispiel:
Code:
1 Print"bitte Auswählen"
2 Input $a
3 if a=1 Then goto 10:Else4
4 if a=2 then goto 12: else1
10 cp /mnt/win_d/..../Fotos /media/disk/Backup/Fotos
11 goto 13
12 cp /mnt/win_d/..../doc /media/disk/Backup/doc
13 print"Hauptmenu=3 Ende=4"
14 Input $b
15 if b=3 goto 1:else16
16 if b=4 exit


Ich habe hier mal halb BASIC halb Shell dargestellt was ich meine. Es ist sicherlich syntaktisch nicht ganz korrekt.... Aber wie kann man soetwas realisieren...

_________________
440 Pferde und ein Kamel auf dem LKW


Zuletzt geändert von autobahnraser am 22.09.2009, 10:24, insgesamt 1-mal geändert.

Nach oben
 Profil  
 
 Betreff des Beitrags: Re: Auswahlmenü erstellen
BeitragVerfasst: 22.09.2009, 09:59 
Offline
Benutzeravatar

Registriert: 29.12.2006, 21:03
Beiträge: 1183
Wohnort: Wien
Schau dir mal das Skript an welches SmartUrpmi erstellt, dort hast du ein Auswahlmenü.
Anstatt "cp" würde ich dir "rsync" empfehlen.

Ich habe mein Backup-Skript nach dem selben Prinzip erstellt und funktioniert tadellos.

LG David

_________________
Linux, what else?
www.franzderball.com


Nach oben
 Profil  
 
 Betreff des Beitrags: Re: Auswahlmenü erstellen
BeitragVerfasst: 22.09.2009, 10:23 
Offline

Registriert: 25.02.2008, 19:32
Beiträge: 943
Wohnort: Trieplatz
Und das Gute liegt so nah...

Danke!

_________________
440 Pferde und ein Kamel auf dem LKW


Nach oben
 Profil  
 
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 3 Beiträge ] 

Alle Zeiten sind UTC + 1 Stunde


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de