Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #174703

Re: How to run a script before shutdown?

From rhkramer@gmail.com
Newsgroups linux.debian.user
Subject Re: How to run a script before shutdown?
Date 2016-11-14 18:10 +0100
Message-ID <sDsVz-1pb-27@gated-at.bofh.it> (permalink)
References <sD8Nb-4Dx-9@gated-at.bofh.it> <sDoIi-709-17@gated-at.bofh.it> <sDrmN-hO-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Good point--thanks for the correction!

On Monday, November 14, 2016 10:26:04 AM Jude DaShiell wrote:
> After a script starts, each command in that script runs until the script
> ends.  I noticed when doing something different with wget and wanting to
> have wget do one command then wait until a download had completed that
> without a read command somewhere in the script the next wget command
> fires off as soon as the first one runs.
> 
> On Mon, 14 Nov 2016, rhkramer@gmail.com wrote:
> > Date: Mon, 14 Nov 2016 07:33:19
> > From: rhkramer@gmail.com
> > To: debian-user@lists.debian.org
> > Subject: Re: How to run a script before shutdown?
> > Resent-Date: Mon, 14 Nov 2016 12:33:40 +0000 (UTC)
> > Resent-From: debian-user@lists.debian.org
> > 
> > On Sunday, November 13, 2016 08:29:46 PM David Christensen wrote:
> >> On 11/13/2016 11:34 AM, Robert Latest wrote:
> >>> I want to automatically start a data backup script (to USB or network
> >>> drive) at each shutdown of my computer.
> >> 
> >> Rather than having the system call my backup/ archive scripts, I have my
> >> backup/ archive scripts call 'shutdown' when they're done.
> > 
> > I'm not the OP, but, wonderful idea!  And, of course, I can pass a
> > parameter to my backup script--one case to shutdown after the backup,
> > and one not to shutdown!

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to run a script before shutdown? Robert Latest <boblatest@gmail.com> - 2016-11-13 20:40 +0100
  Re: How to run a script before shutdown? Sven Joachim <svenjoac@gmx.de> - 2016-11-13 21:30 +0100
    Re: How to run a script before shutdown? Robert Latest <boblatest@gmail.com> - 2016-11-14 18:50 +0100
  Re: How to run a script before shutdown? David Christensen <dpchrist@holgerdanske.com> - 2016-11-14 02:40 +0100
    Re: How to run a script before shutdown? rhkramer@gmail.com - 2016-11-14 13:40 +0100
      Re: How to run a script before shutdown? Jude DaShiell <jdashiel@panix.com> - 2016-11-14 16:30 +0100
        Re: How to run a script before shutdown? rhkramer@gmail.com - 2016-11-14 18:10 +0100
        Re: A_Message_Regarding_Your_DEBT_Situation. vs78 Jude DaShiell <jdashiel@panix.com> - 2016-11-14 22:30 +0100
          Re: A_Message_Regarding_Your_DEBT_Situation. vs78 Lisi Reisz <lisi.reisz@gmail.com> - 2016-11-14 23:20 +0100
            Re: A_Message_Regarding_Your_DEBT_Situation. vs78 Jude DaShiell <jdashiel@panix.com> - 2016-11-16 12:50 +0100
              Re: A_Message_Regarding_Your_DEBT_Situation. vs78 Tony van der Hoff <tony@vanderhoff.org> - 2016-11-16 13:00 +0100
  Re: How to run a script before shutdown? Michael Lange <klappnase@freenet.de> - 2016-11-14 11:30 +0100
    Re: How to run a script before shutdown? Hans <hans.ullrich@loop.de> - 2016-11-14 11:50 +0100

csiph-web