Prijava
Korisničko ime:

Lozinka:

remember me

Zaboravili lozinku?

Registrirajte se!
Glavni menu
Potraga
Tko je online
34 korisnika je online (19 korisnika cita Diskusije)

članovi: 0
Gosti: 34

više...
HULK-Diskusije - Linux općenito - Omanila skripta
Chat WIKI Kontakt
HULK Forum Index
   Linux općenito
   Omanila skripta

Pregledavanje ovog Threada:   1 Anonimnih Korisnika

 

  Dno    Prethodna tema    Sljedeca tema
  •  Ocjena Threada
      Ocijenite ovaj Thread
      Izvrsno
      Dobro
      Prosjecno
      Loše
      Užasno
Pošiljatelj Thread
Omanila skripta
#1
Linux Master
Pridružen: 29.12.2005
Od Šibenik
Poruke: 788
Level : 25
HP : 0 / 607
MP : 262 / 26459
EXP : 30
Grupa:
Registered Users
Offline
Imam skriptu koju izvodim svaki dan u 17.00 preko krona. Evo je:

#!/bin/bash
mpg123 /home/davor/linux/bckp/zvk/gong.mp3
cp /home/davor/linux/bckp/slk/bckp.gif /home/davor/Desktop
cp /home/davor/linux/bckp/kad.txt /home/davor/linux/bckp/kad-old.txt
echo $(date) > /home/davor/linux/bckp/kad.txt
cd /media/bckp
echo "Backup"
mpg123 /home/davor/linux/bckp/zvk/apert.mp3
echo "Lekcije"
cp /home/davor/linux/bckp/slk/lkcj.gif /home/davor/Desktop
rm -fr Lekcije
cp /home/davor/Lekcije /media/bckp -R
rm /home/davor/Desktop/lkcj.gif
mpg123 /home/davor/linux/bckp/zvk/apert.mp3
echo "linux"
cp /home/davor/linux/bckp/slk/lnx.gif /home/davor/Desktop
rm -fr linux
cp /home/davor/linux /media/bckp -R
rm /home/davor/Desktop/lnx.gif
mpg123 /home/davor/linux/bckp/zvk/apert.mp3
echo "Razno"
cp /home/davor/linux/bckp/slk/rzn.gif /home/davor/Desktop
rm -fr Razno
cp /home/davor/Razno /media/bckp -R
rm /home/davor/Desktop/rzn.gif
mpg123 /home/davor/linux/bckp/zvk/apert.mp3
echo "Slike"
cp /home/davor/linux/bckp/slk/slk.gif /home/davor/Desktop
rm -fr Slike
cp /home/davor/Slike /media/bckp -R
rm /home/davor/Desktop/slk.gif
mpg123 /home/davor/linux/bckp/zvk/apert.mp3
echo "Web"
cp /home/davor/linux/bckp/slk/wb.gif /home/davor/Desktop
rm -fr Web
cp /home/davor/Web /media/bckp -R
rm /home/davor/Desktop/wb.gif
mpg123 /home/davor/linux/bckp/zvk/apert.mp3
echo "Obrada"
cp /home/davor/linux/bckp/slk/obr.gif /home/davor/Desktop
rm -fr Obrada
cp /home/davor/Obrada /media/bckp -R
rm /home/davor/Desktop/obr.gif
mpg123 /home/davor/linux/bckp/zvk/apert.mp3
echo "Spremi"
cp /home/davor/linux/bckp/slk/spr.gif /home/davor/Desktop
rm -fr Spremi
cp /home/davor/Spremi /media/bckp -R
rm /home/davor/Desktop/spr.gif
#echo "Download"
#cp /home/davor/linux/bckp/slk/dwn.gif /home/davor/Desktop
#rm -fr Download
#mkdir Download
#cp /home/davor/Download/00000 /media/bckp/Download -R
#cp /home/davor/Download/zzzzz /media/bckp/Download -R
#rm /home/davor/Desktop/dwn.gif
echo $(date) >> /home/davor/linux/bckp/kad.txt
rm /home/davor/Desktop/bckp.gif
echo "Gotovo"
a=`date | awk '{print $1}'`
if [ "$a" == "Sun" ]; then
cp /home/davor/linux/bckp/slk/bckp.gif /home/davor/Desktop
#zenity --notification --text=backup_počinje
cp /home/davor/linux/bckp/kad.txt /home/davor/linux/bckp/kad-old.txt
echo $(date) > /home/davor/linux/bckp/kad.txt
#sudo mount /dev/sdc1 /media/store
cd /media/store
echo "Backup"
mpg123 /home/davor/linux/bckp/zvk/apert.mp3
echo "Lekcije"
cp /home/davor/linux/bckp/slk/lkcj.gif /home/davor/Desktop
rm -fr Lekcije
cp /media/bckp/Lekcije /media/store -R
rm /home/davor/Desktop/lkcj.gif
mpg123 /home/davor/linux/bckp/zvk/apert.mp3
echo "linux"
cp /home/davor/linux/bckp/slk/lnx.gif /home/davor/Desktop
rm -fr linux
cp /media/bckp/linux /media/store -R
rm /home/davor/Desktop/lnx.gif
mpg123 /home/davor/linux/bckp/zvk/apert.mp3
echo "Razno"
cp /home/davor/linux/bckp/slk/rzn.gif /home/davor/Desktop
rm -fr Razno
cp /media/bckp/Razno /media/store -R
rm /home/davor/Desktop/rzn.gif
mpg123 /home/davor/linux/bckp/zvk/apert.mp3
echo "Slike"
cp /home/davor/linux/bckp/slk/slk.gif /home/davor/Desktop
rm -fr Slike
cp /media/bckp/Slike /media/store -R
rm /home/davor/Desktop/slk.gif
mpg123 /home/davor/linux/bckp/zvk/apert.mp3
echo "Web"
cp /home/davor/linux/bckp/slk/wb.gif /home/davor/Desktop
rm -fr Web
cp /media/bckp/Web /media/store -R
rm /home/davor/Desktop/wb.gif
mpg123 /home/davor/linux/bckp/zvk/apert.mp3
echo "Obrada"
cp /home/davor/linux/bckp/slk/obr.gif /home/davor/Desktop
rm -fr Obrada
cp /media/bckp/Obrada /media/store -R
rm /home/davor/Desktop/obr.gif
mpg123 /home/davor/linux/bckp/zvk/apert.mp3
echo "Spremi"
cp /home/davor/linux/bckp/slk/spr.gif /home/davor/Desktop
rm -fr Spremi
cp /media/bckp/Spremi /media/store -R
rm /home/davor/Desktop/spr.gif
#echo "Download"
#cp /home/davor/linux/bckp/slk/dwn.gif /home/davor/Desktop
#rm -fr Download
#mkdir Download
#cp /media/bckp/Download/00000 /media/store/Download -R
#cp /media/bckp/Download/zzzzz /media/store/Download -R
#rm /home/davor/Desktop/dwn.gif
echo $(date) >> /home/davor/linux/bckp/kad.txt
rm /home/davor/Desktop/bckp.gif
echo "Gotovo"
fi
mpg123 /home/davor/linux/bckp/zvk/gong.mp3
#zenity --warning --text=backup_gotov

Radila je bez greške do danas. Jednostavno je stala u sred posla. Na kompu se nije radilo, na ekranu je bio screensaver i svirao je audacious. Postoji li načinm da saznam što je bilo?

Još jedno pitanje. Pokušao sam skriptu izvesti ručno u shellu. Odradila je sve bez problema. Međutim u djelu u kom detektiram nedjelju kod pokretanja cronom treba pisati Sun, a kod ručnog Ned. Na kompu mi je ubuntu na hrv. jeziku.

treće, ima li ubuntu ili debian alat za pregledavanje logova kao što ima mandriva?
_________________
-- Davor R. Bergam
Experiments, no experiences!!

Moja web stranica o Linuxu
Postano : 01.08.2010 12:19:35
Izradi PDF od ove poruke Ispis
Vrh
Naslov Pošiljatelj Datum
     Re: Omanila skripta slobodan 02.08.2010 5:08:28
     Re: Omanila skripta GorkiPelin 02.08.2010 5:45:26
       Re: Omanila skripta gigolo 02.08.2010 9:39:31
         Re: Omanila skripta gigolo 02.08.2010 12:09:33
           Re: Omanila skripta gigolo 08.08.2010 11:40:12
             Re: Omanila skripta gigolo 01.10.2010 11:53:03
               Re: Omanila skripta wrapper 01.10.2010 16:02:44
               Re: Omanila skripta nvucinic 02.10.2010 4:10:00
                 Re: Omanila skripta gigolo 02.10.2010 8:07:14
                   Re: Omanila skripta gigolo 02.10.2010 11:08:04
                     Re: Omanila skripta GorkiPelin 05.10.2010 3:42:49
                       Re: Omanila skripta gigolo 05.10.2010 6:11:17
                         Re: Omanila skripta GorkiPelin 05.10.2010 7:11:01
                           Re: Omanila skripta gigolo 05.10.2010 7:24:49
                             Re: Omanila skripta GorkiPelin 05.10.2010 7:35:31
                               Re: Omanila skripta gigolo 05.10.2010 8:49:49
                                 Re: Omanila skripta slobodan 05.10.2010 8:58:58
                                   Re: Omanila skripta gigolo 05.10.2010 11:08:11
                                     Re: Omanila skripta gigolo 05.10.2010 11:18:28
                                       Re: Omanila skripta GorkiPelin 05.10.2010 15:59:48
                                         Re: Omanila skripta gigolo 06.10.2010 2:42:54
                                           Re: Omanila skripta gigolo 06.10.2010 2:49:06
                                             Re: Omanila skripta slobodan 06.10.2010 6:12:57
                                               Re: Omanila skripta gigolo 06.10.2010 6:59:36
                                                 Re: Omanila skripta gigolo 06.10.2010 7:06:50
                                                   Re: Omanila skripta slobodan 07.10.2010 18:49:41
                                                     Re: Omanila skripta gigolo 08.10.2010 5:57:14
                                                       Re: Omanila skripta slobodan 08.10.2010 13:07:12
                                                         Re: Omanila skripta gigolo 09.10.2010 2:01:36
                                                           Re: Omanila skripta gigolo 09.10.2010 2:05:38
                                                             Re: Omanila skripta gigolo 10.10.2010 17:08:23
                                                               Re: Omanila skripta gigolo 06.11.2010 9:48:38
                                                                 Re: Omanila skripta nvucinic 06.11.2010 10:24:27
                                                                   Re: Omanila skripta gigolo 06.11.2010 12:39:45
                                                                     Re: Omanila skripta Grof 12.11.2010 2:30:52
                                                                       Re: Omanila skripta gigolo 12.11.2010 14:30:20
                                                                         Re: Omanila skripta Grof 12.11.2010 15:04:28
                                                                           Re: Omanila skripta gigolo 12.11.2010 16:15:10
                                                                             Re: Omanila skripta Grof 12.11.2010 16:22:56
                                                                               Re: Omanila skripta gigolo 12.11.2010 16:45:21
                                                                                 Re: Omanila skripta gigolo 20.08.2011 20:08:12
                                                                                   Re: Omanila skripta slobodan 30.08.2011 9:50:43
                                                                                     Re: Omanila skripta gigolo 02.09.2011 16:29:35
                                                                                       Re: Omanila skripta gigolo 22.12.2011 15:32:43
 Vrh   Prethodna tema   Sljedeca tema

 


 Ne možete pokrenuti novu temu.
 Možete citati teme.
 Ne možete odgovarati na poruke.
 Ne možete uredivati svoje poruke.
 Ne možete brisati svoje poruke.
 Ne možete dodavati nove ankete.
 Ne možete glasati u anketama.
 Ne možete dodavati fileove porukama.
 Ne možete slati poruke bez odobrenja.
Copyright © 1995-2009 HULK web team. Sva prava pridržana. RSS. Engine: XOOPS