Conexão fechada pelo host remoto após pressionar a guia para o AutoCompletar -- bash campo com ssh campo com putty camp askubuntu Relacionado O problema

Connection closed by remote host after pressing tab for autocomplete


3
vote

problema

português

Estou conectando a uma instalação da caixa virtual do Ubuntu 15.10 usando a Putty:

  Welcome to Ubuntu 15.10 (GNU/Linux 4.2.0-22-generic x86_64)    

Se fazer simplesmente cd folde [tab] uma janela abre

  "Connection closed by remote host"    

Eu não tenho absolutamente nenhuma ideia do que está errado e como consertar isso e de onde isso é de repente.

editar: novas informações: isso não parece acontecer como root.


O que eu tentei até agora:

  • ubuntu ubuntu
  • testado tanto Mobaxterm quanto simples putty
  • putty a qualquer outra máquina funciona bem
  • Não é devido à falta de memória: Memtotal: 9996524 KB, MEMFREE: 9422540 KB, Memavailable: 9830548 KB
  • Iniciando outro bash usando o Exec Bash fará com que o problema apareça com menos frequência.

  beginner@avalon:~$ sudo tail -100f /var/log/syslog [sudo] password for beginner: Dec 21 10:50:44 avalon whoopsie[574]: [10:50:44] online Dec 21 10:50:48 avalon NetworkManager[623]: <info>  WiFi hardware radio set enabled Dec 21 10:50:48 avalon NetworkManager[623]: <info>  WWAN hardware radio set enabled Dec 21 10:50:52 avalon ntpdate[865]: no server suitable for synchronization found Dec 21 10:51:02 avalon ntpdate[1035]: no server suitable for synchronization found Dec 21 10:52:08 avalon systemd[1]: dev-disk-byx2duuid-66341dbbx2d4e46x2d4bcdx2d89adx2d9b40aa873fe6.device: Job dev-disk-byx2duuid-66341dbbx2d4e46x2d4bcdx2d89adx2d9b40aa873fe6.device/start timed out. Dec 21 10:52:08 avalon systemd[1]: Timed out waiting for device dev-disk-byx2duuid-66341dbbx2d4e46x2d4bcdx2d89adx2d9b40aa873fe6.device. Dec 21 10:52:08 avalon systemd[1]: Dependency failed for /dev/disk/by-uuid/66341dbb-4e46-4bcd-89ad-9b40aa873fe6. Dec 21 10:52:08 avalon systemd[1]: dev-disk-byx2duuid-66341dbbx2d4e46x2d4bcdx2d89adx2d9b40aa873fe6.swap: Job dev-disk-byx2duuid-66341dbbx2d4e46x2d4bcdx2d89adx2d9b40aa873fe6.swap/start failed with result 'dependency'. Dec 21 10:52:08 avalon systemd[1]: Startup finished in 9.395s (kernel) + 3min 519ms (userspace) = 3min 9.914s. Dec 21 10:52:08 avalon systemd[1]: dev-disk-byx2duuid-66341dbbx2d4e46x2d4bcdx2d89adx2d9b40aa873fe6.device: Job dev-disk-byx2duuid-66341dbbx2d4e46x2d4bcdx2d89adx2d9b40aa873fe6.device/start failed with result 'timeout'. Dec 21 11:04:03 avalon systemd[1]: Starting Cleanup of Temporary Directories... Dec 21 11:04:03 avalon systemd-tmpfiles[1074]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring. Dec 21 11:04:03 avalon systemd[1]: Started Cleanup of Temporary Directories. Dec 21 11:08:14 avalon systemd[1]: Created slice user-1001.slice. Dec 21 11:08:14 avalon systemd[1]: Starting User Manager for UID 1001... Dec 21 11:08:14 avalon systemd[1]: Started Session 1 of user beginner. Dec 21 11:08:14 avalon systemd[1084]: Reached target Paths. Dec 21 11:08:14 avalon systemd[1084]: Reached target Timers. Dec 21 11:08:14 avalon systemd[1084]: Reached target Sockets. Dec 21 11:08:14 avalon systemd[1084]: Reached target Basic System. Dec 21 11:08:14 avalon systemd[1084]: Reached target Default. Dec 21 11:08:14 avalon systemd[1084]: Startup finished in 26ms. Dec 21 11:08:14 avalon systemd[1]: Started User Manager for UID 1001. Dec 21 11:08:14 avalon systemd[1]: Started Session 2 of user beginner. Dec 21 11:08:18 avalon systemd[1]: Stopping User Manager for UID 1001... Dec 21 11:08:18 avalon systemd[1084]: Reached target Shutdown. Dec 21 11:08:18 avalon systemd[1084]: Starting Exit the Session... Dec 21 11:08:18 avalon systemd[1084]: Stopped target Default. Dec 21 11:08:18 avalon systemd[1084]: Stopped target Basic System. Dec 21 11:08:18 avalon systemd[1084]: Stopped target Sockets. Dec 21 11:08:18 avalon systemd[1084]: Stopped target Timers. Dec 21 11:08:18 avalon systemd[1084]: Stopped target Paths. Dec 21 11:08:18 avalon systemd[1084]: Received SIGRTMIN+24 from PID 1215 (kill). Dec 21 11:08:18 avalon systemd[1]: Stopped User Manager for UID 1001. Dec 21 11:08:18 avalon systemd[1]: Removed slice user-1001.slice. Dec 21 11:08:19 avalon systemd[1]: Created slice user-1001.slice. Dec 21 11:08:19 avalon systemd[1]: Starting User Manager for UID 1001... Dec 21 11:08:19 avalon systemd[1]: Started Session 3 of user beginner. Dec 21 11:08:19 avalon systemd[1223]: Reached target Sockets. Dec 21 11:08:19 avalon systemd[1223]: Reached target Timers. Dec 21 11:08:19 avalon systemd[1223]: Reached target Paths. Dec 21 11:08:19 avalon systemd[1223]: Reached target Basic System. Dec 21 11:08:19 avalon systemd[1223]: Reached target Default. Dec 21 11:08:19 avalon systemd[1223]: Startup finished in 14ms. Dec 21 11:08:19 avalon systemd[1]: Started User Manager for UID 1001. Dec 21 11:08:20 avalon systemd[1]: Started Session 4 of user beginner. Dec 21 11:08:39 avalon systemd[1]: Stopping User Manager for UID 1001... Dec 21 11:08:39 avalon systemd[1223]: Reached target Shutdown. Dec 21 11:08:39 avalon systemd[1223]: Starting Exit the Session... Dec 21 11:08:39 avalon systemd[1223]: Stopped target Default. Dec 21 11:08:39 avalon systemd[1223]: Stopped target Basic System. Dec 21 11:08:39 avalon systemd[1223]: Stopped target Sockets. Dec 21 11:08:39 avalon systemd[1223]: Stopped target Timers. Dec 21 11:08:39 avalon systemd[1223]: Stopped target Paths. Dec 21 11:08:39 avalon systemd[1223]: Received SIGRTMIN+24 from PID 1308 (kill). Dec 21 11:08:39 avalon systemd[1]: Stopped User Manager for UID 1001. Dec 21 11:08:39 avalon systemd[1]: Removed slice user-1001.slice. Dec 21 11:08:46 avalon systemd[1]: Created slice user-1001.slice. Dec 21 11:08:46 avalon systemd[1]: Starting User Manager for UID 1001... Dec 21 11:08:46 avalon systemd[1]: Started Session 5 of user beginner. Dec 21 11:08:46 avalon systemd[1318]: Reached target Paths. Dec 21 11:08:46 avalon systemd[1318]: Reached target Sockets. Dec 21 11:08:46 avalon systemd[1318]: Reached target Timers. Dec 21 11:08:46 avalon systemd[1318]: Reached target Basic System. Dec 21 11:08:46 avalon systemd[1318]: Reached target Default. Dec 21 11:08:46 avalon systemd[1318]: Startup finished in 17ms. Dec 21 11:08:46 avalon systemd[1]: Started User Manager for UID 1001. Dec 21 11:08:46 avalon systemd[1]: Started Session 6 of user beginner. Dec 21 11:09:44 avalon systemd[1]: dev-disk-byx2duuid-66341dbbx2d4e46x2d4bcdx2d89adx2d9b40aa873fe6.device: Job dev-disk-byx2duuid-66341dbbx2d4e46x2d4bcdx2d89adx2d9b40aa873fe6.device/start timed out. Dec 21 11:09:44 avalon systemd[1]: Timed out waiting for device dev-disk-byx2duuid-66341dbbx2d4e46x2d4bcdx2d89adx2d9b40aa873fe6.device. Dec 21 11:09:44 avalon systemd[1]: Dependency failed for /dev/disk/by-uuid/66341dbb-4e46-4bcd-89ad-9b40aa873fe6. Dec 21 11:09:44 avalon systemd[1]: dev-disk-byx2duuid-66341dbbx2d4e46x2d4bcdx2d89adx2d9b40aa873fe6.swap: Job dev-disk-byx2duuid-66341dbbx2d4e46x2d4bcdx2d89adx2d9b40aa873fe6.swap/start failed with result 'dependency'. Dec 21 11:09:44 avalon systemd[1]: dev-disk-byx2duuid-66341dbbx2d4e46x2d4bcdx2d89adx2d9b40aa873fe6.device: Job dev-disk-byx2duuid-66341dbbx2d4e46x2d4bcdx2d89adx2d9b40aa873fe6.device/start failed with result 'timeout'. Dec 21 11:16:00 avalon systemd[1]: Started Session 7 of user beginner. Dec 21 11:16:00 avalon systemd[1]: Started Session 8 of user beginner. Dec 21 11:16:21 avalon systemd[1]: Started Session 9 of user beginner. Dec 21 11:16:21 avalon systemd[1]: Started Session 10 of user beginner. Dec 21 11:17:01 avalon CRON[2542]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly) Dec 21 11:17:54 avalon systemd[1]: Started Session 12 of user beginner. Dec 21 11:17:54 avalon systemd[1]: Started Session 13 of user beginner. Dec 21 11:19:42 avalon systemd[1]: Started Session 14 of user beginner. Dec 21 11:23:41 avalon systemd[1]: Started Session 15 of user beginner. Dec 21 11:24:27 avalon systemd[1]: Started Session 16 of user beginner. Dec 21 11:34:47 avalon systemd[1]: Started Session 17 of user beginner. Dec 21 11:34:47 avalon systemd[1]: Started Session 18 of user beginner. Dec 21 11:35:49 avalon systemd[1]: Started Session 19 of user beginner. Dec 21 11:35:49 avalon systemd[1]: Started Session 20 of user beginner. Dec 21 11:35:53 avalon systemd[1]: Started Session 21 of user beginner. Dec 21 11:35:53 avalon systemd[1]: Started Session 22 of user beginner. Dec 21 11:36:23 avalon systemd[1]: Started Session 23 of user beginner. Dec 21 11:36:23 avalon systemd[1]: Started Session 24 of user beginner. Dec 21 11:40:10 avalon systemd[1]: Started Session 25 of user beginner. Dec 21 11:40:10 avalon systemd[1]: Started Session 26 of user beginner. Dec 21 11:41:17 avalon systemd[1]: Started Session 27 of user beginner. Dec 21 11:41:17 avalon systemd[1]: Started Session 28 of user beginner. Dec 21 11:52:24 avalon systemd[1]: Started Session 29 of user beginner. Dec 21 11:52:24 avalon systemd[1]: Started Session 30 of user beginner. Dec 21 11:52:29 avalon systemd[1]: Started Session 31 of user beginner. Dec 21 11:52:29 avalon systemd[1]: Started Session 32 of user beginner.    
  $ sudo crontab -e [sudo] password for beginner: no crontab for root - using an empty one    

Verificar arquivo / etc / crontab:

  ffmpeg -i video.avi -f psp -s 320x240 -vb 500k -ac 2 -ab 128k video.mp4 0   

#

arquivos em cron.daily e cron.hourly

  ffmpeg -i video.avi -f psp -s 320x240 -vb 500k -ac 2 -ab 128k video.mp4 1   

Diskspace parece bem:

  ffmpeg -i video.avi -f psp -s 320x240 -vb 500k -ac 2 -ab 128k video.mp4 2   
english

I am connecting to a virtual box installation of Ubuntu 15.10 using putty:

Welcome to Ubuntu 15.10 (GNU/Linux 4.2.0-22-generic x86_64) 

If do simply cd folde [tab] a window opens

"Connection closed by remote host" 

I have absolutely no idea what is wrong and how to fix this and where this is suddenly coming from.

Edit: new info: this does not seem to happen as root.


What I have tried so far:

  • Ugraded ubuntu
  • Tested both mobaxterm and simple putty
  • Putty to any other machine works fine
  • It is not due to lack of memory: MemTotal: 9996524 kB, MemFree: 9422540 kB, MemAvailable: 9830548 kB
  • Starting another bash using exec bash will make the problem appear less frequently.

beginner@avalon:~$ sudo tail -100f /var/log/syslog [sudo] password for beginner: Dec 21 10:50:44 avalon whoopsie[574]: [10:50:44] online Dec 21 10:50:48 avalon NetworkManager[623]: <info>  WiFi hardware radio set enabled Dec 21 10:50:48 avalon NetworkManager[623]: <info>  WWAN hardware radio set enabled Dec 21 10:50:52 avalon ntpdate[865]: no server suitable for synchronization found Dec 21 10:51:02 avalon ntpdate[1035]: no server suitable for synchronization found Dec 21 10:52:08 avalon systemd[1]: dev-disk-by\x2duuid-66341dbb\x2d4e46\x2d4bcd\x2d89ad\x2d9b40aa873fe6.device: Job dev-disk-by\x2duuid-66341dbb\x2d4e46\x2d4bcd\x2d89ad\x2d9b40aa873fe6.device/start timed out. Dec 21 10:52:08 avalon systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-66341dbb\x2d4e46\x2d4bcd\x2d89ad\x2d9b40aa873fe6.device. Dec 21 10:52:08 avalon systemd[1]: Dependency failed for /dev/disk/by-uuid/66341dbb-4e46-4bcd-89ad-9b40aa873fe6. Dec 21 10:52:08 avalon systemd[1]: dev-disk-by\x2duuid-66341dbb\x2d4e46\x2d4bcd\x2d89ad\x2d9b40aa873fe6.swap: Job dev-disk-by\x2duuid-66341dbb\x2d4e46\x2d4bcd\x2d89ad\x2d9b40aa873fe6.swap/start failed with result 'dependency'. Dec 21 10:52:08 avalon systemd[1]: Startup finished in 9.395s (kernel) + 3min 519ms (userspace) = 3min 9.914s. Dec 21 10:52:08 avalon systemd[1]: dev-disk-by\x2duuid-66341dbb\x2d4e46\x2d4bcd\x2d89ad\x2d9b40aa873fe6.device: Job dev-disk-by\x2duuid-66341dbb\x2d4e46\x2d4bcd\x2d89ad\x2d9b40aa873fe6.device/start failed with result 'timeout'. Dec 21 11:04:03 avalon systemd[1]: Starting Cleanup of Temporary Directories... Dec 21 11:04:03 avalon systemd-tmpfiles[1074]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring. Dec 21 11:04:03 avalon systemd[1]: Started Cleanup of Temporary Directories. Dec 21 11:08:14 avalon systemd[1]: Created slice user-1001.slice. Dec 21 11:08:14 avalon systemd[1]: Starting User Manager for UID 1001... Dec 21 11:08:14 avalon systemd[1]: Started Session 1 of user beginner. Dec 21 11:08:14 avalon systemd[1084]: Reached target Paths. Dec 21 11:08:14 avalon systemd[1084]: Reached target Timers. Dec 21 11:08:14 avalon systemd[1084]: Reached target Sockets. Dec 21 11:08:14 avalon systemd[1084]: Reached target Basic System. Dec 21 11:08:14 avalon systemd[1084]: Reached target Default. Dec 21 11:08:14 avalon systemd[1084]: Startup finished in 26ms. Dec 21 11:08:14 avalon systemd[1]: Started User Manager for UID 1001. Dec 21 11:08:14 avalon systemd[1]: Started Session 2 of user beginner. Dec 21 11:08:18 avalon systemd[1]: Stopping User Manager for UID 1001... Dec 21 11:08:18 avalon systemd[1084]: Reached target Shutdown. Dec 21 11:08:18 avalon systemd[1084]: Starting Exit the Session... Dec 21 11:08:18 avalon systemd[1084]: Stopped target Default. Dec 21 11:08:18 avalon systemd[1084]: Stopped target Basic System. Dec 21 11:08:18 avalon systemd[1084]: Stopped target Sockets. Dec 21 11:08:18 avalon systemd[1084]: Stopped target Timers. Dec 21 11:08:18 avalon systemd[1084]: Stopped target Paths. Dec 21 11:08:18 avalon systemd[1084]: Received SIGRTMIN+24 from PID 1215 (kill). Dec 21 11:08:18 avalon systemd[1]: Stopped User Manager for UID 1001. Dec 21 11:08:18 avalon systemd[1]: Removed slice user-1001.slice. Dec 21 11:08:19 avalon systemd[1]: Created slice user-1001.slice. Dec 21 11:08:19 avalon systemd[1]: Starting User Manager for UID 1001... Dec 21 11:08:19 avalon systemd[1]: Started Session 3 of user beginner. Dec 21 11:08:19 avalon systemd[1223]: Reached target Sockets. Dec 21 11:08:19 avalon systemd[1223]: Reached target Timers. Dec 21 11:08:19 avalon systemd[1223]: Reached target Paths. Dec 21 11:08:19 avalon systemd[1223]: Reached target Basic System. Dec 21 11:08:19 avalon systemd[1223]: Reached target Default. Dec 21 11:08:19 avalon systemd[1223]: Startup finished in 14ms. Dec 21 11:08:19 avalon systemd[1]: Started User Manager for UID 1001. Dec 21 11:08:20 avalon systemd[1]: Started Session 4 of user beginner. Dec 21 11:08:39 avalon systemd[1]: Stopping User Manager for UID 1001... Dec 21 11:08:39 avalon systemd[1223]: Reached target Shutdown. Dec 21 11:08:39 avalon systemd[1223]: Starting Exit the Session... Dec 21 11:08:39 avalon systemd[1223]: Stopped target Default. Dec 21 11:08:39 avalon systemd[1223]: Stopped target Basic System. Dec 21 11:08:39 avalon systemd[1223]: Stopped target Sockets. Dec 21 11:08:39 avalon systemd[1223]: Stopped target Timers. Dec 21 11:08:39 avalon systemd[1223]: Stopped target Paths. Dec 21 11:08:39 avalon systemd[1223]: Received SIGRTMIN+24 from PID 1308 (kill). Dec 21 11:08:39 avalon systemd[1]: Stopped User Manager for UID 1001. Dec 21 11:08:39 avalon systemd[1]: Removed slice user-1001.slice. Dec 21 11:08:46 avalon systemd[1]: Created slice user-1001.slice. Dec 21 11:08:46 avalon systemd[1]: Starting User Manager for UID 1001... Dec 21 11:08:46 avalon systemd[1]: Started Session 5 of user beginner. Dec 21 11:08:46 avalon systemd[1318]: Reached target Paths. Dec 21 11:08:46 avalon systemd[1318]: Reached target Sockets. Dec 21 11:08:46 avalon systemd[1318]: Reached target Timers. Dec 21 11:08:46 avalon systemd[1318]: Reached target Basic System. Dec 21 11:08:46 avalon systemd[1318]: Reached target Default. Dec 21 11:08:46 avalon systemd[1318]: Startup finished in 17ms. Dec 21 11:08:46 avalon systemd[1]: Started User Manager for UID 1001. Dec 21 11:08:46 avalon systemd[1]: Started Session 6 of user beginner. Dec 21 11:09:44 avalon systemd[1]: dev-disk-by\x2duuid-66341dbb\x2d4e46\x2d4bcd\x2d89ad\x2d9b40aa873fe6.device: Job dev-disk-by\x2duuid-66341dbb\x2d4e46\x2d4bcd\x2d89ad\x2d9b40aa873fe6.device/start timed out. Dec 21 11:09:44 avalon systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-66341dbb\x2d4e46\x2d4bcd\x2d89ad\x2d9b40aa873fe6.device. Dec 21 11:09:44 avalon systemd[1]: Dependency failed for /dev/disk/by-uuid/66341dbb-4e46-4bcd-89ad-9b40aa873fe6. Dec 21 11:09:44 avalon systemd[1]: dev-disk-by\x2duuid-66341dbb\x2d4e46\x2d4bcd\x2d89ad\x2d9b40aa873fe6.swap: Job dev-disk-by\x2duuid-66341dbb\x2d4e46\x2d4bcd\x2d89ad\x2d9b40aa873fe6.swap/start failed with result 'dependency'. Dec 21 11:09:44 avalon systemd[1]: dev-disk-by\x2duuid-66341dbb\x2d4e46\x2d4bcd\x2d89ad\x2d9b40aa873fe6.device: Job dev-disk-by\x2duuid-66341dbb\x2d4e46\x2d4bcd\x2d89ad\x2d9b40aa873fe6.device/start failed with result 'timeout'. Dec 21 11:16:00 avalon systemd[1]: Started Session 7 of user beginner. Dec 21 11:16:00 avalon systemd[1]: Started Session 8 of user beginner. Dec 21 11:16:21 avalon systemd[1]: Started Session 9 of user beginner. Dec 21 11:16:21 avalon systemd[1]: Started Session 10 of user beginner. Dec 21 11:17:01 avalon CRON[2542]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly) Dec 21 11:17:54 avalon systemd[1]: Started Session 12 of user beginner. Dec 21 11:17:54 avalon systemd[1]: Started Session 13 of user beginner. Dec 21 11:19:42 avalon systemd[1]: Started Session 14 of user beginner. Dec 21 11:23:41 avalon systemd[1]: Started Session 15 of user beginner. Dec 21 11:24:27 avalon systemd[1]: Started Session 16 of user beginner. Dec 21 11:34:47 avalon systemd[1]: Started Session 17 of user beginner. Dec 21 11:34:47 avalon systemd[1]: Started Session 18 of user beginner. Dec 21 11:35:49 avalon systemd[1]: Started Session 19 of user beginner. Dec 21 11:35:49 avalon systemd[1]: Started Session 20 of user beginner. Dec 21 11:35:53 avalon systemd[1]: Started Session 21 of user beginner. Dec 21 11:35:53 avalon systemd[1]: Started Session 22 of user beginner. Dec 21 11:36:23 avalon systemd[1]: Started Session 23 of user beginner. Dec 21 11:36:23 avalon systemd[1]: Started Session 24 of user beginner. Dec 21 11:40:10 avalon systemd[1]: Started Session 25 of user beginner. Dec 21 11:40:10 avalon systemd[1]: Started Session 26 of user beginner. Dec 21 11:41:17 avalon systemd[1]: Started Session 27 of user beginner. Dec 21 11:41:17 avalon systemd[1]: Started Session 28 of user beginner. Dec 21 11:52:24 avalon systemd[1]: Started Session 29 of user beginner. Dec 21 11:52:24 avalon systemd[1]: Started Session 30 of user beginner. Dec 21 11:52:29 avalon systemd[1]: Started Session 31 of user beginner. Dec 21 11:52:29 avalon systemd[1]: Started Session 32 of user beginner. 

$ sudo crontab -e [sudo] password for beginner: no crontab for root - using an empty one 

Check file /etc/crontab:

$ sudo less /etc/contab # /etc/crontab: system-wide crontab  # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron.d. These files also have username fields, # that none of the other crontabs do.  SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin  # m h dom mon dow user  command 17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly 25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) 

#

Files in cron.daily and cron.hourly

raphael@frankfurt:~$ ls /etc/cron* /etc/crontab  /etc/cron.d: anacron  /etc/cron.daily: 0anacron  bsdmainutils      logrotate  passwd                  upstart apport    cracklib-runtime  man-db     popularity-contest apt       dpkg              mlocate    update-notifier-common  /etc/cron.hourly: 

Diskspace seems fine:

Filesystem      Size  Used Avail Use% Mounted on udev            4.8G     0  4.8G   0% /dev tmpfs           977M  9.0M  968M   1% /run /dev/sda1        40G   11G   28G  28% / tmpfs           4.8G  4.0K  4.8G   1% /dev/shm tmpfs           5.0M     0  5.0M   0% /run/lock tmpfs           4.8G     0  4.8G   0% /sys/fs/cgroup cgmfs           100K     0  100K   0% /run/cgmanager/fs tmpfs           977M  4.0K  977M   1% /run/user/1001 
        
       
       

Lista de respostas

7
 
vote

O problema foi o seguinte:

Eu estou fornecendo alguns scripts para configurar meu ambiente. Um deles contém

  for file in *.avi; do        ffmpeg -i "$file" -b:v 120k -strict -2 -s 400x240 -vcodec mpeg4 -ab 64k -ar 24000 -acodec aac "$file.psp.mp4" done 4   

Tudo o que faz com que um erro pare a execução do bash.

lições aprendidas: nunca for file in *.avi; do ffmpeg -i "$file" -b:v 120k -strict -2 -s 400x240 -vcodec mpeg4 -ab 64k -ar 24000 -acodec aac "$file.psp.mp4" done 5 em .bashrc.


editar: Como Nicominsk apontou, é possível definir - no final do Bashrc sem quaisquer problemas.

 

The problem was the following:

I am sourcing some scripts to setup my environment. One of them contains

set -e 

Everything that causes an error will stop the execution of the bash.

Lessons learned: never set -e in .bashrc.


Edit: As NicoMinsk pointed out, it is possible to set -e at the very end of bashrc without any problems.

 
 
 
 

Perguntas relacionadas

0  XForwarding do Ubuntu para o Windows 7 é exibir programas no Ubuntu em vez de encaminhar  ( Xforwarding from ubuntu to windows 7 is displaying programs on ubuntu instead of ) 
Hoje fui ao SSH no meu servidor Ubuntu 18.04 da minha máquina do Windows 7 para alguma manutenção de rotina para descobrir que o XForward não está funcionando...

1  Instalando o MySQL no Ubuntu com Putty  ( Installing mysql in ubuntu with putty ) 
Então ... estou tentando instalar o MySQL Server no Ubuntu 10.04 (eu não quero outra versão do Ubuntu) e não funciona ... Eu tentei: sudo apt-get install m...

0  Como posso configurar o Ubuntu (e as configurações da minha rede doméstica) para que eu possa ssh para a janela do console do Linux?  ( How can i setup ubuntu and my home network router settings so i can ssh to lin ) 
Eu instalei o Ubuntu versão 11 não há muito tempo. Agora tenho esse computador em execução na minha rede doméstica e tem seu próprio endereço IP interno na mi...

1  Alternativa para xshell  ( Alternative for xshell ) 
Alguém sabe uma alternativa para o xshell? Eu verifiquei e as alternativas mencionadas são putty, openssh etc. mas eu preciso dele principalmente para encamin...

145  Movendo a pasta e a subpasta para outro caminho  ( Moving folder and subfolder to another path ) 
Eu preciso mover minha pasta com muitas subpastas para outro caminho. Eu estou usando o PUTTY E isso é o que eu tentei: MV -r fromflderpath tofolderpath ...

23  Copiar pasta não está funcionando no Ubuntu Putty  ( Copy paste not working on ubuntu putty ) 
Eu tenho usado Putty para se conectar a um do meu servidor do cliente, aqui o problema é que a cópia e a pasta não funcionam. Quando eu estava no Windows, cos...

0  Servidor respondeu o pacote de erro de protocolo muito longo 1349676920  ( Server responded protocol error packet too long 1349676920 ) 
Qual é a solução para um erro acima mencionado. Recebi esse problema ao conectar-se das ferramentas Shell Seguradas Putty / Tectia. Eu instalei o Ubuntu Serve...

0  Não é possível instalar a GUI no Ubuntu  ( Unable to install gui on ubuntu ) 
Acabei de comprar um VPS e tenho em funcionamento usando massa. Agora quero instalar a GUI no Ubuntu, mas não consigo fazer isso. Eu segui muitos tutoriais, m...

3  Putty Login Erro através do SSH (Erro de Rede: Tempo Limite de Connenco) [Duplicado]  ( Putty login error through ssh network error connenction timeout ) 
. Esta pergunta já tem respostas aqui : erro de rede: conexão recusou Putty ...

0  Usando a porta serial como uma interface terminal com o VMware?  ( Using serial port as a terminal interface with vmware ) 
Eu tenho a seguinte configuração de configuração: Ubuntu 12.10 OS Uma máquina virtual usando o VMware. Host OS é o Windows 8.1 O programa terminal é putty ...




© 2022 pergunte.org All Rights Reserved. Casa de perguntas e respostas todos os direitos reservados


Licensed under cc by-sa 3.0 with attribution required.