Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

168
Visualizações
starting a linux script in deamon mode and terminating when requried

I need to start a linux script in a background in deamon mode and then kill it when requried. To that end I try the following

script.sh -daemon -p zpid

What I'm confused about the above is,

  • What is the -daemon flag, I assume this says to start the process as a daemon. Is this the same as using -d ?
  • What does the -p zpid part do ? I assume it assigns the processID to the zpid variable ?
  • How do I kill the process?
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

The -d represent the daemon and the -p is for naming the process id then you can use that name to find the process and stop it with this command ps aux | grep -i zipid

But I think its better to use screen or tmux as you can also see the output as well.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda