Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 15/06/2014, à 10:24

jjcojax

Avec ma commande, gnome-schedule bouffe la mémoire.[RESOLU]

Bonjour,

J'essaye de mettre en place une tâche planifiée via gnome-schedule, mais mon manque de connaissance de linux fait qu'elle n'est pas utilisable telle qu'elle est pour le moment !

Je souhaite lancer goeland.mp3 via VLC, (dans Ubuntu 12.04) de manière répétitive.

-> Je crée une tâche planifiée qui lance VLC pour ce fichier mp3 (cvlc en mode standard, ou vlc en mode application x)

ma commande

Après quelques minutes, il y a autant de process VLC que de minutes écoulées.

la mémoire utilisée

En plus, il y a des process ls (commande de cette tâche) et des process cron qui consomme aussi de la mémoire à chaque lancement.

Après quelques heures, c'est le blocage (processeur à 100% et mémoire utilisée à fond) (sorry, je n'ai que 2 Gb)

Avez-vous des suggestions ?

Merci,

jjcojax

Dernière modification par jjcojax (Le 16/06/2014, à 15:57)

Hors ligne

#2 Le 15/06/2014, à 11:15

tiramiseb

Re : Avec ma commande, gnome-schedule bouffe la mémoire.[RESOLU]

Salut,

Tes images ne fonctionnent pas.

Peux-tu montrer tes scripts et retours de commandes avec des copier-coller (entre balises "code", obtenues en cliquant sur bt_pre.png) et non sous forme d'images ?

On a donc besoin de :
- le contenu de ton script
- le retour de la commande "free -m" quand il y a plein de processus qui posent problème
- le retour de la commande "ps auxw" quand il y a plein de processus qui posent problème

Hors ligne

#3 Le 15/06/2014, à 12:28

jjcojax

Re : Avec ma commande, gnome-schedule bouffe la mémoire.[RESOLU]

Sorry pour les images, j'ai remis les liens normaux (avec pub zimagez)

j'ai essayé 2 commandes qui toutes 2 bouffent la mémoire.
(via bouton "comportement par défaut")

cvlc /home/jjcojax/Documents/pigeons/bruitage/goeland.mp3

(via bouton application X)

vlc /home/jjcojax/Documents/pigeons/bruitage/Chouette_cheveche.mp3 

les 2 fonctionnent

pour free -m] (avec vlc application X)

jjcojax@UBUNTU12-04:~$ free -m
             total       used       free     shared    buffers     cached
Mem:          1949       1638        311          0        120        839
-/+ buffers/cache:        678       1271
Swap:         2996        164       2832
jjcojax@UBUNTU12-04:~$ 

Si via le moniteur système, je termine tous les processus vlc je reviens à +-500 Mb ou même 290 Mb sans firefox

pour ps auxw

jjcojax@UBUNTU12-04:~$ 
jjcojax@UBUNTU12-04:~$ ps auxw
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   3656  1692 ?        Ss   Jun13   0:01 /sbin/init
root         2  0.0  0.0      0     0 ?        S    Jun13   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    Jun13   0:32 [ksoftirqd/0]
root         6  0.0  0.0      0     0 ?        S    Jun13   0:00 [migration/0]
root         7  0.0  0.0      0     0 ?        S    Jun13   0:00 [watchdog/0]
root         8  0.0  0.0      0     0 ?        S<   Jun13   0:00 [cpuset]
root         9  0.0  0.0      0     0 ?        S<   Jun13   0:00 [khelper]
root        10  0.0  0.0      0     0 ?        S    Jun13   0:00 [kdevtmpfs]
root        11  0.0  0.0      0     0 ?        S<   Jun13   0:00 [netns]
root        12  0.0  0.0      0     0 ?        S    Jun13   0:00 [sync_supers]
root        13  0.0  0.0      0     0 ?        S    Jun13   0:00 [bdi-default]
root        14  0.0  0.0      0     0 ?        S<   Jun13   0:00 [kintegrityd]
root        15  0.0  0.0      0     0 ?        S<   Jun13   0:00 [kblockd]
root        16  0.0  0.0      0     0 ?        S<   Jun13   0:00 [ata_sff]
root        17  0.0  0.0      0     0 ?        S    Jun13   0:00 [khubd]
root        18  0.0  0.0      0     0 ?        S<   Jun13   0:00 [md]
root        19  0.0  0.0      0     0 ?        S    Jun13   0:00 [kworker/u:1]
root        21  0.0  0.0      0     0 ?        S    Jun13   0:00 [khungtaskd]
root        22  0.0  0.0      0     0 ?        S    Jun13   0:19 [kswapd0]
root        23  0.0  0.0      0     0 ?        SN   Jun13   0:00 [ksmd]
root        24  0.0  0.0      0     0 ?        SN   Jun13   0:00 [khugepaged]
root        25  0.0  0.0      0     0 ?        S    Jun13   0:00 [fsnotify_mark]
root        26  0.0  0.0      0     0 ?        S    Jun13   0:00 [ecryptfs-kthrea]
root        27  0.0  0.0      0     0 ?        S<   Jun13   0:00 [crypto]
root        35  0.0  0.0      0     0 ?        S<   Jun13   0:00 [kthrotld]
root        37  0.0  0.0      0     0 ?        S    Jun13   0:00 [scsi_eh_0]
root        38  0.0  0.0      0     0 ?        S    Jun13   0:00 [scsi_eh_1]
root        40  0.0  0.0      0     0 ?        S    Jun13   0:00 [kworker/u:4]
root        62  0.0  0.0      0     0 ?        S<   Jun13   0:00 [devfreq_wq]
root       100  0.0  0.0      0     0 ?        S    Jun13   0:00 [scsi_eh_2]
root       102  0.0  0.0      0     0 ?        S    Jun13   0:04 [usb-storage]
root       232  0.0  0.0      0     0 ?        S    Jun13   0:00 [scsi_eh_3]
root       233  0.0  0.0      0     0 ?        S    Jun13   0:00 [scsi_eh_4]
root       234  0.0  0.0      0     0 ?        S    Jun13   0:00 [scsi_eh_5]
root       235  0.0  0.0      0     0 ?        S    Jun13   0:00 [scsi_eh_6]
root       263  0.0  0.0      0     0 ?        S    Jun13   0:12 [kjournald]
root       356  0.0  0.0   2836   388 ?        S    Jun13   0:00 upstart-udev-bridge --daemon
root       367  0.0  0.0   3260   524 ?        Ss   Jun13   0:00 /sbin/udevd --daemon
root       694  0.0  0.0      0     0 ?        S<   Jun13   0:00 [kpsmoused]
root       702  0.0  0.0   5372   664 ?        Ss   Jun13   0:03 /sbin/mount.ntfs-3g /dev/sda1 /media/WINNT_2000 -o rw,nls=utf8,umask=007,gi
root       724  0.0  0.0   5372   380 ?        Ss   Jun13   0:00 /sbin/mount.ntfs-3g /dev/sda2 /media/XP_FR_SP3 -o rw,nls=utf8,umask=007,gid
root       746  0.0  0.0   5372   368 ?        Ss   Jun13   0:00 /sbin/mount.ntfs-3g /dev/sdb1 /media/Partition_XP -o rw,nls=utf8,umask=007,
root       806  0.0  0.0   5372   348 ?        Ss   Jun13   0:00 /sbin/mount.ntfs-3g /dev/sde1 /media/S250_P1 -o rw,nls=utf8,umask=007,gid=4
root       820  0.0  0.0   5372   380 ?        Ss   Jun13   0:00 /sbin/mount.ntfs-3g /dev/sde2 /media/S250_P2 -o rw,nls=utf8,umask=007,gid=4
root       867  0.0  0.0   3256   248 ?        S    Jun13   0:00 /sbin/udevd --daemon
root       868  0.0  0.0   3256   240 ?        S    Jun13   0:00 /sbin/udevd --daemon
root       870  0.0  0.0   5372   388 ?        Ss   Jun13   0:00 /sbin/mount.ntfs-3g /dev/sde3 /media/S250_P3 -o rw,nls=utf8,umask=007,gid=4
root       898  0.0  0.0   5372   380 ?        Ss   Jun13   0:00 /sbin/mount.ntfs-3g /dev/sdf1 /media/500GBSam -o rw,nls=utf8,umask=007,gid=
root       901  0.0  0.0      0     0 ?        S    Jun13   0:00 [kjournald]
root       986  0.0  0.1  21564  2008 ?        Ss   Jun13   0:05 smbd -F
syslog     996  0.0  0.1  31376  2072 ?        Sl   Jun13   0:32 rsyslogd -c5
102        997  0.0  0.0   4380  1620 ?        Ss   Jun13   0:05 dbus-daemon --system --fork --activation=upstart
root      1017  0.0  0.0      0     0 ?        S    Jun13   0:04 [flush-8:64]
root      1036  0.0  0.0   4744   636 ?        Ss   Jun13   0:00 /usr/sbin/bluetoothd
root      1049  0.0  0.0   7224  1192 ?        Ss   Jun13   0:00 /usr/sbin/modem-manager
root      1085  0.0  0.0      0     0 ?        S<   Jun13   0:00 [krfcommd]
root      1091  0.0  0.1  11396  2612 ?        Ss   Jun13   0:07 /usr/sbin/cupsd -F
root      1095  0.0  0.0   2848   204 ?        S    Jun13   0:00 upstart-socket-bridge --daemon
avahi     1097  0.0  0.0   3588  1100 ?        S    Jun13   0:00 avahi-daemon: running [UBUNTU12-04.local]
avahi     1098  0.0  0.0   3456   120 ?        S    Jun13   0:00 avahi-daemon: chroot helper
root      1102  0.0  0.0  31696  1676 ?        Ssl  Jun13   0:00 NetworkManager
colord    1105  0.0  0.0  52480  1832 ?        Sl   Jun13   0:00 /usr/lib/i386-linux-gnu/colord/colord
root      1109  0.0  0.0  25216  1456 ?        Sl   Jun13   0:01 /usr/lib/policykit-1/polkitd --no-debug
root      1141  0.0  0.0   2928   696 ?        S    Jun13   0:00 /sbin/dhclient -d -4 -sf /usr/lib/NetworkManager/nm-dhcp-client.action -pf
nobody    1189  0.0  0.0   5436   780 ?        S    Jun13   0:13 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interf
root      1220  0.0  0.0   4632   544 tty4     Ss+  Jun13   0:00 /sbin/getty -8 38400 tty4
root      1231  0.0  0.0   4632   544 tty5     Ss+  Jun13   0:00 /sbin/getty -8 38400 tty5
root      1260  0.0  0.0   4632   544 tty2     Ss+  Jun13   0:00 /sbin/getty -8 38400 tty2
root      1261  0.0  0.0   4632   544 tty3     Ss+  Jun13   0:00 /sbin/getty -8 38400 tty3
root      1268  0.0  0.0   4632   544 tty6     Ss+  Jun13   0:00 /sbin/getty -8 38400 tty6
root      1318  0.0  0.0   2176   404 ?        Ss   Jun13   0:00 acpid -c /etc/acpi/events -s /var/run/acpid.socket
root      1322  0.0  0.0   2620   728 ?        Ss   Jun13   0:00 cron
daemon    1323  0.0  0.0   2472   164 ?        Ss   Jun13   0:00 atd
root      1333  0.0  0.0  33016  1012 ?        Ssl  Jun13   0:00 lightdm
whoopsie  1356  0.0  0.0  26028  1972 ?        Ssl  Jun13   0:00 whoopsie
root      1398 11.6  2.0 106820 40356 tty7     Rs+  Jun13 289:17 /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
mysql     1420  0.0  0.1 317504  2184 ?        Ssl  Jun13   1:39 /usr/sbin/mysqld
clamav    1537  0.1  0.0  16016  1508 ?        Ss   Jun13   2:44 /usr/bin/freshclam -d --quiet
root      1612  0.0  0.0  13332  1024 ?        Ss   Jun13   0:03 nmbd -D
nobody    1615  0.0  0.0   2420   484 ?        Ss   Jun13   0:00 /usr/bin/gdomap -I /var/run/gdomap.pid -p
mail      1654  0.0  0.0   3628   740 ?        S    Jun13   0:11 /usr/sbin/nullmailer-send -d
root      1680  0.0  0.0      0     0 ?        S<   Jun13   0:00 [iprt]
root      1720  0.0  0.0  18056  1412 ?        Ss   Jun13   0:00 /usr/sbin/winbindd
root      1837  0.0  0.0  15836  1376 ?        Sl   Jun13   0:04 /usr/lib/accountsservice/accounts-daemon
root      1839  0.0  0.3  34068  7764 ?        Ss   Jun13   0:09 /usr/sbin/apache2 -k start
root      1896  0.0  0.0  29100  1088 ?        Sl   Jun13   0:00 /usr/sbin/console-kit-daemon --no-daemon
root      2118  0.0  0.0   4632   544 tty1     Ss+  Jun13   0:00 /sbin/getty -8 38400 tty1
root      2150  0.0  0.0  18084   200 ?        S    Jun13   0:00 /usr/sbin/winbindd
root      2151  0.0  0.0  18048   216 ?        S    Jun13   0:00 /usr/sbin/winbindd
root      2157  0.0  0.0  18048   256 ?        S    Jun13   0:00 /usr/sbin/winbindd
root      2182  0.0  0.0  21556   520 ?        S    Jun13   0:00 smbd -F
root      2203  0.0  0.0  28448  1276 ?        Sl   Jun13   0:00 /usr/lib/upower/upowerd
ntp       2253  0.0  0.0   5748  1152 ?        Ss   Jun13   0:14 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 117:130
rtkit     2455  0.0  0.0  21336   684 ?        SNl  Jun13   0:01 /usr/lib/rtkit/rtkit-daemon
root      3150  0.0  0.0      0     0 ?        S    11:06   0:00 [kworker/0:2]
jjcojax   3303 10.1 17.2 863504 344132 ?       Sl   11:08   5:28 /usr/lib/firefox/firefox
root      3784  0.0  0.0   3748  1380 ?        S    11:20   0:00 CRON
jjcojax   3785  0.0  0.0   2236   288 ?        Ss   11:20   0:00 /bin/sh -c /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1 # JOB_
jjcojax   3786  0.0  0.7  52856 15680 ?        Sl   11:20   0:00 /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1
jjcojax   3790  0.0  0.0   2236   284 ?        S    11:20   0:00 sh -c /bin/sh -s
jjcojax   3791  0.0  0.0   2236   524 ?        S    11:20   0:00 /bin/sh -s
jjcojax   3792  0.2  1.1  92328 23536 ?        Sl   11:20   0:05 vlc /home/jjcojax/Documents/pigeons/bruitage/Chouette_cheveche.mp3
root      3975  0.0  0.0   3748  1380 ?        S    11:25   0:00 CRON
jjcojax   3976  0.0  0.0   2236   512 ?        Ss   11:25   0:00 /bin/sh -c /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1 # JOB_
jjcojax   3977  0.0  0.7  52856 15696 ?        Sl   11:25   0:00 /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1
jjcojax   3981  0.0  0.0   2236   284 ?        S    11:25   0:00 sh -c /bin/sh -s
jjcojax   3982  0.0  0.0   2236   524 ?        S    11:25   0:00 /bin/sh -s
jjcojax   3983  0.2  1.1  92376 23592 ?        Sl   11:25   0:05 vlc /home/jjcojax/Documents/pigeons/bruitage/Chouette_cheveche.mp3
root      4046  0.0  0.0      0     0 ?        S    11:26   0:00 [kworker/0:0]
root      4170  0.0  0.0   3748  1380 ?        S    11:30   0:00 CRON
jjcojax   4171  0.0  0.0   2236   284 ?        Ss   11:30   0:00 /bin/sh -c /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1 # JOB_
jjcojax   4172  0.0  0.7  52856 15684 ?        Sl   11:30   0:00 /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1
jjcojax   4176  0.0  0.0   2236   284 ?        S    11:30   0:00 sh -c /bin/sh -s
jjcojax   4177  0.0  0.0   2236   524 ?        S    11:30   0:00 /bin/sh -s
jjcojax   4178  0.2  1.2  92176 23968 ?        Sl   11:30   0:05 vlc /home/jjcojax/Documents/pigeons/bruitage/Chouette_cheveche.mp3
root      4358  0.0  0.0   3748  1380 ?        S    11:35   0:00 CRON
jjcojax   4359  0.0  0.0   2236   284 ?        Ss   11:35   0:00 /bin/sh -c /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1 # JOB_
jjcojax   4360  0.0  0.7  52856 15708 ?        Sl   11:35   0:00 /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1
jjcojax   4364  0.0  0.0   2236   284 ?        S    11:35   0:00 sh -c /bin/sh -s
jjcojax   4365  0.0  0.0   2236   528 ?        S    11:35   0:00 /bin/sh -s
jjcojax   4366  0.3  1.1  92412 23632 ?        Sl   11:35   0:05 vlc /home/jjcojax/Documents/pigeons/bruitage/Chouette_cheveche.mp3
root      4559  0.0  0.0   3748  1380 ?        S    11:40   0:00 CRON
jjcojax   4560  0.0  0.0   2236   284 ?        Ss   11:40   0:00 /bin/sh -c /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1 # JOB_
jjcojax   4561  0.0  0.7  52856 15704 ?        Sl   11:40   0:00 /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1
jjcojax   4565  0.0  0.0   2236   288 ?        S    11:40   0:00 sh -c /bin/sh -s
jjcojax   4566  0.0  0.0   2236   524 ?        S    11:40   0:00 /bin/sh -s
jjcojax   4567  0.3  1.1  92316 23544 ?        Sl   11:40   0:05 vlc /home/jjcojax/Documents/pigeons/bruitage/Chouette_cheveche.mp3
root      4764  0.0  0.0   3748  1380 ?        S    11:45   0:00 CRON
jjcojax   4765  0.0  0.0   2236   284 ?        Ss   11:45   0:00 /bin/sh -c /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1 # JOB_
jjcojax   4766  0.0  0.7  52856 15684 ?        Sl   11:45   0:00 /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1
jjcojax   4770  0.0  0.0   2236   280 ?        S    11:45   0:00 sh -c /bin/sh -s
jjcojax   4771  0.0  0.0   2236   524 ?        S    11:45   0:00 /bin/sh -s
jjcojax   4772  0.4  1.1  92332 23564 ?        Sl   11:45   0:05 vlc /home/jjcojax/Documents/pigeons/bruitage/Chouette_cheveche.mp3
root      4961  0.0  0.0   3748  1380 ?        S    11:50   0:00 CRON
jjcojax   4962  0.0  0.0   2236   288 ?        Ss   11:50   0:00 /bin/sh -c /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1 # JOB_
jjcojax   4963  0.0  0.7  52856 15696 ?        Sl   11:50   0:00 /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1
jjcojax   4967  0.0  0.0   2236   284 ?        S    11:50   0:00 sh -c /bin/sh -s
jjcojax   4968  0.0  0.0   2236   524 ?        S    11:50   0:00 /bin/sh -s
jjcojax   4969  0.3  1.1 170352 23888 ?        Sl   11:50   0:02 vlc /home/jjcojax/Documents/pigeons/bruitage/Chouette_cheveche.mp3
root      5090  0.0  0.0  16644   916 ?        Sl   Jun13   0:00 lightdm --session-child 12 21
jjcojax   5105  0.0  0.0  43108   900 ?        Sl   Jun13   0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
jjcojax   5116  0.0  0.1  51764  2936 ?        Ssl  Jun13   0:03 gnome-session --session=gnome-fallback
jjcojax   5153  0.0  0.0   4080    24 ?        Ss   Jun13   0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session -
jjcojax   5156  0.0  0.0   3940   148 ?        S    Jun13   0:00 /usr/bin/dbus-launch --exit-with-session gnome-session --session=gnome-fall
jjcojax   5157  0.1  0.7  19696 14208 ?        Ss   Jun13   2:38 //bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
jjcojax   5167  0.0  0.3 234592  6660 ?        Sl   Jun13   0:50 /usr/lib/gnome-settings-daemon/gnome-settings-daemon
jjcojax   5176  0.0  0.0   8592  1240 ?        S    Jun13   0:00 /usr/lib/gvfs/gvfsd
jjcojax   5178  0.0  0.0  33736  1164 ?        Sl   Jun13   0:00 /usr/lib/gvfs//gvfs-fuse-daemon -f /home/jjcojax/.gvfs
jjcojax   5185  0.0  0.0  42448  1244 ?        Sl   Jun13   0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
jjcojax   5189  0.0  0.1   4260  2016 ?        S    Jun13   0:24 /bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --p
jjcojax   5192  0.0  0.0  17000  1588 ?        Sl   Jun13   0:10 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
jjcojax   5195  0.0  0.0  48900  1020 ?        Sl   Jun13   0:00 /usr/lib/gnome-settings-daemon/gsd-printer
jjcojax   5199  0.0  0.4 219660  8632 ?        Sl   Jun13   0:51 metacity
jjcojax   5204  0.0  0.0  10392  1860 ?        S    Jun13   0:01 /usr/lib/i386-linux-gnu/gconf/gconfd-2
jjcojax   5209  3.4  0.5 174304 10972 ?        S<l  Jun13  77:55 /usr/bin/pulseaudio --start --log-target=syslog
jjcojax   5212  0.1  0.9 174756 19816 ?        Sl   Jun13   2:22 gnome-panel
jjcojax   5215  0.0  0.0  14108   768 ?        S    Jun13   0:00 /usr/lib/pulseaudio/pulse/gconf-helper
jjcojax   5218  0.0  0.0  32748  1584 ?        Sl   Jun13   0:00 /usr/lib/dconf/dconf-service
jjcojax   5223  0.0  0.1  57424  2304 ?        Sl   Jun13   0:00 /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper
jjcojax   5224  0.0  0.1  41044  2820 ?        Sl   Jun13   0:01 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
jjcojax   5225  0.1  1.4 232032 27964 ?        Sl   Jun13   2:31 nautilus -n
jjcojax   5227  0.0  0.1 147208  2776 ?        Sl   Jun13   0:00 bluetooth-applet
jjcojax   5230  0.0  0.1 248284  3516 ?        Sl   Jun13   0:00 nm-applet
root      5240  0.0  0.0   3748  1380 ?        S    11:55   0:00 CRON
jjcojax   5241  0.0  0.0   2236   288 ?        Ss   11:55   0:00 /bin/sh -c /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1 # JOB_
jjcojax   5242  0.0  0.7  52856 15684 ?        Sl   11:55   0:00 /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1
jjcojax   5243  0.0  0.1  45996  2496 ?        S    Jun13   0:16 /usr/lib/gvfs/gvfs-gdu-volume-monitor
root      5245  0.0  0.1  25744  2164 ?        Sl   Jun13   0:28 /usr/lib/udisks/udisks-daemon
root      5249  0.0  0.0   6556   332 ?        S    Jun13   0:00 udisks-daemon: not polling any devices
jjcojax   5252  0.0  0.0   2236   288 ?        S    11:55   0:00 sh -c /bin/sh -s
jjcojax   5253  0.0  0.0   2236   524 ?        S    11:55   0:00 /bin/sh -s
jjcojax   5254  1.1  1.1  92344 23572 ?        Sl   11:55   0:05 vlc /home/jjcojax/Documents/pigeons/bruitage/Chouette_cheveche.mp3
jjcojax   5278  0.0  0.0   9216  1180 ?        S    Jun13   0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
jjcojax   5280  0.0  0.0  20492  1124 ?        Sl   Jun13   0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
jjcojax   5283  0.0  0.0   9332  1532 ?        S    Jun13   0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.6 /org/gtk/gvfs/exec_spaw/0
root      5289  0.0  0.0   3316   396 ?        Ss   Jun13   0:00 /sbin/mount.ntfs /dev/sdd2 /media/Extra_USB -o rw,nosuid,nodev,uhelper=udis
jjcojax   5293  0.0  0.0   8664  1004 ?        S    Jun13   0:00 /usr/lib/gvfs/gvfsd-burn --spawner :1.6 /org/gtk/gvfs/exec_spaw/1
jjcojax   5298  0.0  0.1  42984  2944 ?        Sl   Jun13   0:04 /usr/lib/gnome-disk-utility/gdu-notification-daemon
jjcojax   5303  0.0  0.9 156028 18344 ?        Sl   Jun13   1:03 /usr/lib/indicator-applet/indicator-applet-complete
jjcojax   5313  0.0  0.1  65900  2736 ?        Sl   Jun13   0:01 /usr/lib/indicator-messages/indicator-messages-service
jjcojax   5324  0.0  0.1  60932  2560 ?        Sl   Jun13   0:00 /usr/lib/indicator-printers/indicator-printers-service
jjcojax   5345  0.0  0.1  74744  2392 ?        Sl   Jun13   0:00 telepathy-indicator
jjcojax   5361  0.0  0.0   7980  1100 ?        S    Jun13   0:00 /usr/lib/geoclue/geoclue-master
jjcojax   5364  0.0  0.1  52344  2144 ?        Sl   Jun13   0:01 /usr/lib/indicator-application/indicator-application-service
jjcojax   5375  0.0  0.2  84036  4596 ?        Sl   Jun13   0:32 /usr/lib/evolution/e-calendar-factory
jjcojax   5377  0.0  0.0  32388  1372 ?        Sl   Jun13   0:01 /usr/lib/telepathy/mission-control-5
jjcojax   5380  0.0  0.0  66944  1056 ?        Sl   Jun13   0:00 /usr/lib/indicator-session/indicator-session-service
jjcojax   5382  0.0  0.1 126088  2092 ?        Sl   Jun13   0:04 /usr/lib/indicator-sound/indicator-sound-service
jjcojax   5408  0.0  0.1 140004  3548 ?        Sl   Jun13   0:06 gnome-screensaver
jjcojax   5409  0.0  0.2  54088  4416 ?        Sl   Jun13   0:12 zeitgeist-datahub
jjcojax   5417  0.0  0.1  43368  3292 ?        Sl   Jun13   0:03 /usr/bin/zeitgeist-daemon
jjcojax   5423  0.0  0.1  51948  3460 ?        Sl   Jun13   0:03 /usr/lib/zeitgeist/zeitgeist-fts
jjcojax   5426  1.3  0.8 160384 16844 ?        Sl   11:58   0:03 gnome-terminal
jjcojax   5431  0.0  0.0   4232   140 ?        S    Jun13   0:00 /bin/cat
jjcojax   5438  0.0  0.0   8836  1600 ?        S    Jun13   0:00 /usr/lib/gvfs/gvfsd-metadata
root      5442  0.0  0.0      0     0 ?        S    11:58   0:00 [kworker/0:1]
jjcojax   5453  0.0  0.0  41132  1708 ?        Sl   Jun13   0:00 /usr/lib/ubuntu-geoip/ubuntu-geoip-provider
jjcojax   5459  0.0  0.1  73196  3008 ?        Sl   Jun13   0:00 /usr/lib/evolution/e-addressbook-factory
jjcojax   5462  0.0  0.2  71456  4016 ?        Sl   Jun13   0:49 /usr/lib/indicator-datetime/indicator-datetime-service
jjcojax   5470  0.0  0.0  91224  1576 ?        Sl   Jun13   0:00 /usr/lib/gnome-online-accounts/goa-daemon
jjcojax   5491  0.0  0.1  53744  3160 ?        Sl   Jun13   0:01 /usr/lib/evolution/3.2/evolution-alarm-notify
jjcojax   5492  0.0  0.0   2404   720 ?        S    11:59   0:00 gnome-pty-helper
jjcojax   5493  0.3  0.1   7544  3780 pts/0    Ss   11:59   0:00 bash
jjcojax   5513  0.2  0.1   7544  3724 pts/1    Ss+  11:59   0:00 bash
jjcojax   5529  0.0  0.2  82504  4660 ?        Sl   Jun13   0:04 /usr/bin/python /usr/lib/ubuntuone-client/ubuntuone-syncdaemon
jjcojax   5565  0.0  0.3 138620  7440 ?        Sl   Jun13   0:01 /usr/lib/notify-osd/notify-osd
jjcojax   5569  0.0  0.2  52352  4440 ?        Sl   Jun13   0:09 update-notifier
jjcojax   5603  0.0  0.0  34716  1256 ?        Sl   Jun13   0:00 /usr/lib/deja-dup/deja-dup/deja-dup-monitor
root      5650  0.0  0.0   3748  1380 ?        S    12:00   0:00 CRON
jjcojax   5651  0.0  0.0   2236   516 ?        Ss   12:00   0:00 /bin/sh -c /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1 # JOB_
jjcojax   5652  0.1  0.7  52856 15700 ?        Sl   12:00   0:00 /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1
jjcojax   5656  0.0  0.0   2236   280 ?        S    12:00   0:00 sh -c /bin/sh -s
jjcojax   5657  0.0  0.0   2236   528 ?        S    12:00   0:00 /bin/sh -s
jjcojax   5658  3.2  1.1  92348 23568 ?        Sl   12:00   0:05 vlc /home/jjcojax/Documents/pigeons/bruitage/Chouette_cheveche.mp3
mail      5761  0.0  0.0   3572  1024 ?        S    12:02   0:00 /usr/lib/nullmailer/smtp -d -s mail.
jjcojax   5766  0.0  0.0   4944  1128 pts/0    R+   12:02   0:00 ps auxw
jjcojax   5915  0.0  0.0  40492  1984 ?        Sl   Jun13   0:00 /usr/lib/gvfs/gvfsd-http --spawner :1.6 /org/gtk/gvfs/exec_spaw/2
jjcojax   9915  1.6  0.6 732668 12408 ?        Sl   Jun14  28:43 gnome-control-center sound
jjcojax  19991  0.2  0.2  58424  5544 ?        S    Jun14   2:25 SimpleAgenda
jjcojax  19996  0.0  0.0  36508  1996 ?        Ss   Jun14   0:00 /usr/bin/gdnc --auto --daemon
jjcojax  27883  0.0  0.5  55140 10088 ?        Sl   07:38   0:00 gedit /home/jjcojax/Téléchargements/csvedsetup.exe
www-data 28285  0.0  0.1  34092  3944 ?        S    07:51   0:00 /usr/sbin/apache2 -k start
www-data 28286  0.0  0.1  34092  3944 ?        S    07:51   0:00 /usr/sbin/apache2 -k start
www-data 28287  0.0  0.1  34092  3944 ?        S    07:51   0:00 /usr/sbin/apache2 -k start
www-data 28292  0.0  0.1  34092  3944 ?        S    07:51   0:00 /usr/sbin/apache2 -k start
www-data 28293  0.0  0.1  34092  3944 ?        S    07:51   0:00 /usr/sbin/apache2 -k start
lp       28328  0.0  0.0   6228  1368 ?        S    07:51   0:00 /usr/lib/cups/notifier/dbus dbus:// 
jjcojax  28757  0.0  0.0   2236   516 ?        S    08:13   0:00 /bin/sh /usr/bin/gnome-schedule
jjcojax  28759  0.5  1.4 170600 28668 ?        Sl   08:13   1:19 /usr/bin/python /usr/share/gnome-schedule/gnome-schedule.py
jjcojax  30214  0.0  1.2 170520 25108 ?        Sl   08:47   0:07 eog /home/jjcojax/Bureau/ma commande.png
jjcojax@UBUNTU12-04:~$ 

Merci de votre aide

Hors ligne

#4 Le 15/06/2014, à 21:50

tiramiseb

Re : Avec ma commande, gnome-schedule bouffe la mémoire.[RESOLU]

Ce "wrapper" de gnome-schedule est assez ennuyeux, ça ajoute une couche inutile...

Peux-tu créer directement des jobs dans crontab ?

Par ailleurs, l'utilisation de vlc est-elle obligatoire ?

Cette commande ouvre-t-elle une fenêtre graphique ?

Hors ligne

#5 Le 16/06/2014, à 12:17

jjcojax

Re : Avec ma commande, gnome-schedule bouffe la mémoire.[RESOLU]

Pour Peux-tu créer directement des jobs dans crontab ?

je peux essayer, mais quand je vois ce que crontab -l me retourne, j'abandonne …

jjcojax@UBUNTU12-04:~$ crontab -l
*/5 5-21 * * * cvlc /home/jjcojax/Documents/pigeons/bruitage/Chouette_cheveche.mp3 >/dev/null 2>&1 # JOB_ID_1

Cela ce retrouve dans gnome-schedule dans lequel je demande de lancer le mp3 toutes les 5 min entre 5h et 21h
(le  >/dev/null 2>&1 c'est mis tout seul si je sélectionne supprimer la sortie) (supprimer la sortie ne change rien)

image -> http://www.zimagez.com/zimage/capture-g … edule0.php
---
Pour l'utilisation de vlc est-elle obligatoire ?

Non, j'avais choisi d'ouvrir les fichiers mp3 avec VLC, je change par n'importe quel lecteur de fichier pour le son (le mp3 peut être converti en un fichier .wav si nécessaire)
---
Pour Cette commande ouvre-t-elle une fenêtre graphique ?

Dans ma demande actuelle, pas du tout !
Le plus, c'est que je vois la fenêtre et je peux arrêter ou modifier le niveau sonore.
Le moins, c'est que le nombre de fenêtres envahisse l'écran (donc inutilisable sans amélioration de la commande)
- - -
en résumé,
Si j'utilise gnome-schedule,  comment faire pour enlever ce qui est terminé (une sorte de close après l’exécution  )

Si une commande (cron ou crontab ou ???) peut faire ce que je cherche sans envahir la mémoire, j'ai besoin d'aide pour qu'elle soit au point.

Merci.

Pour info
Je suis utilisateur Windows depuis Windows 3.1,, je connais les commandes MS DOS, je me suis fait une partition Linux avec Ubuntu 7.10 que j'ai mi à jour jusqu’à 11.04  puis une autre partition ubuntu 12.04 où j'ai pu mettre l'affichage gnome classique à la place d'unity. (chacun a ses défauts)

Dernière modification par jjcojax (Le 16/06/2014, à 12:18)

Hors ligne

#6 Le 16/06/2014, à 12:29

tiramiseb

Re : Avec ma commande, gnome-schedule bouffe la mémoire.[RESOLU]

Il y a un truc que je ne comprends pas :

Je pensais que cron lançait un "wrapper" de gnome-schedule pour ensuite exécuter la commande (ce qui est une surcouche inutile), mais le retour de crontab -l dit que c'est directement ta commande "cvlc" qui est utilisée. Je ne vois donc pas du tout pourquoi il y a ces lignes qui contiennent « /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 1 » dans le retour de "ps"...
C'est pour ça que je proposais de configurer directement cron, mais bon voilà, là je ne comprends pas la présence de ce wrapper...


Si j'ai bien tout compris, ton problème est simplement que la fenêtre de vlc ne se ferme pas toute seule, ce qui est normal vu que tu lances vlc sans lui demander de s'arrêter;
Si tu veux conserver vlc, il faut trouver quelle option lui donner pour qu'il se ferme de lui-même après lecture du fichier indiqué ; c'est probablement faisable, mais bon je ne connais pas vlc (en général, les utilisateurs de vlc sont ceux qui avaient l'habitude de l'utiliser sous Windows - par défaut sur Ubuntu il y a largement ce qu'il faut en matière de lecteur multimédia wink ).

Pour ma part je te conseille d'utiliser une commande plus légère, sans interface graphique, pour lancer la lecture de sons. Par exemple mpg321.

Dans ce cas :

1/ installer le paquet "mpg321" (par la logithèque, synaptic, ou apt-get, à toi de choisir), par exemple en ligne de commande :

sudo apt-get install mpg321

2/ remplacer "cvlc" par "mpg321 -q" dans ton job
Ce qui donnerait :

mpg321 -q /home/jjcojax/Documents/pigeons/bruitage/Chouette_cheveche.mp3

L'option de suppression de la sortie devient inutile, car l'option -q de mpg321 lui dit de ne rien sortir (q = quiet)... sauf en cas d'erreur.
Et comme tout logiciel en ligne de commande, mpg321 s'arrête et rend la main dès qu'il a fini la lecture du fichier.

Hors ligne

#7 Le 16/06/2014, à 15:55

jjcojax

Re : Avec ma commande, gnome-schedule bouffe la mémoire.[RESOLU]

Merci, c'est ok

mpg321 était déjà présent sur ma machine !
(mais il faut deviner que la commande existe ou allez sur un bon forum !!! ) smile

J'ai donc mis la commande comme tu me l'as indiqué, et c'est parfait (utilise 1.7 Mb pendant la lecture, puis il les rend)

Comme tu m'as montré que ta commande pouvais se terminer proprement avec -q , j'ai recherché a arrêter VLC, et j'ai finalement trouvé !

Sur le site videolan  → https://wiki.videolan.org/Documentation:Command_line/

Sur ma machine → vlc –help

--play-and-exit  = Lire un seul élément puis quitter.

Pour mon exemple

cvlc  --play-and-exit /home/jjcojax/Documents/pigeons/bruitage/goeland.mp3

Comme ta commande mpg321 est la moins gourmande, je l'adopte

Encore merci

jjcojax

Hors ligne

#8 Le 16/06/2014, à 15:57

tiramiseb

Re : Avec ma commande, gnome-schedule bouffe la mémoire.[RESOLU]

Comme tu m'as montré que ta commande pouvais se terminer proprement avec -q

Attention, le "-q" ce n'est pas pour que la commande se termine proprement, c'est pour la commande n'affiche rien (quiet).
mpg321 se termine TOUJOURS proprement à la fin d'un morceau.

--play-and-exit  = Lire un seul élément puis quitter.

Bah voilà comment faire avec VLC alors smile

Comme ta commande mpg321 est la moins gourmande, je l'adopte

Elle est faite pour ça wink

Hors ligne