
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'.
LazyDocker – Interface de Usuário em Tempo Real para o Docker
Instalando COSMIC no Linux Mint
Turbinando o Linux Mint: o poder das Nemo Actions
Inteligência Artificial no desenvolvimento de software: quando começar a usar?
[Resolvido] Algo deu errado ao abrir seu perfil
Usando o VNSTAT para medir o seu consumo de internet
Habilitando clipboard manager no ambiente COSMIC
Quando vocês pararam de testar distros? (5)
A fórmula da coca-cola foi decompilada e agora é opensource! (4)









