Enviado em 08/08/2024 - 04:54h
Fala galera, blz?vlc /home/usuario/Gestao_A_Vista/video.mp4 -f --repeat --quiet
sudo mkdir /diretorio sudo nano /diretorio/meu-script.sh sudo chmod +x /diretorio/meu-script.sh sudo /diretorio/meu-script.sh sudo nano /lib/systemd/system/meu-script.service
[Unit] Description=Meu script [Service] ExecStart=/bin/bash /diretorio/meu-script.sh [Install] WantedBy=multi-user.target
sudo systemctl daemon-reload sudo systemctl enable meu-script sudo systemctl start meu-script sudo shutdownn -r now
#!/bin/bash cd /home/usuario/Gestao_A_Vista diretorio=$(pwd) echo $diretorio video=$(cd $diretorio && ls | grep *.mp4) echo $video #vlc /home/usuario/Gestao_A_Vista/$video -f --repeat --quiet vlc $diretorio/$video -f --repeat --quiet
sudo systemctl status ini_gestao ● ini_gestao.service - Meu script para teste Loaded: loaded (/lib/systemd/system/ini_gestao.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2024-08-08 04:35:10 -03; 12min ago Main PID: 5869 (code=exited, status=1/FAILURE) ago 08 04:35:05 hostname ini_gestao.sh[5869]: Air.mp4 ago 08 04:35:05 hostname ini_gestao.sh[5907]: mkdir: cannot create directory '/run/user/0': P> ago 08 04:35:05 hostname ini_gestao.sh[5928]: realpath: '': No such file or directory ago 08 04:35:05 hostname ini_gestao.sh[5932]: realpath: '': No such file or directory ago 08 04:35:05 hostname ini_gestao.sh[5934]: realpath: '': No such file or directory ago 08 04:35:05 hostname ini_gestao.sh[5936]: realpath: '': No such file or directory ago 08 04:35:05 hostname ini_gestao.sh[5940]: realpath: '': No such file or directory ago 08 04:35:05 hostname ini_gestao.sh[5942]: realpath: '': No such file or directory ago 08 04:35:10 hostname systemd[1]: ini_gestao.service: Main process exited, code=exited, st> ago 08 04:35:10 hostname systemd[1]: ini_gestao.service: Failed with result 'exit-code'.
Enviado em 08/08/2024 - 10:34h
@reboot sleep 5 && vlc /home/usuario/Gestao_A_Vista/video.mp4 -f --repeat --quiet
------------------------------------------------------| Linux User #621728 |------------------------------------------------------ " Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )" ------------------------------------------------------| Linux User #621728 |------------------------------------------------------
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Descritores de Arquivos e Swappiness
Fez porcaria no teu repositório Git? Aprenda a restaurar uma versão anterior do seu código!
Restaurando Fontes de Download do Hydra no Linux
Atualizando "na marra" o YT-DLP quando começa a dar erro de downloads
Como instalar o WPS com interface e corretor ortográfico em PT-BR no Arch Linux
Controle do PS5 no Linux Mint funciona? [RESOLVIDO] (5)
Bluetooth CSR 4.0 Dongle (Alternativo) (0)
Atualização do Linux para 21 "Vanessa... (3)