LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-14-2005, 09:38 AM   #1
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Automatically running script at shutdown


I have a backup script that I have setup to run on command, but I would rather that it ran automatically.

I could do this at startup or on a 'cron' or 'at' command, but I would rather run it at shutdown, after I have finished my days work.

Any ideas?

samac
 
Old 05-14-2005, 09:59 AM   #2
zord
Member
 
Registered: Feb 2005
Distribution: slack 10
Posts: 50

Rep: Reputation: 15
The script /etc/rc.d/rc.6 is executed, when you shut down.
You could execute your script from in there.

Or you write your own shutdown script, which first executes your script and runs shutdown -h afterwards.
 
Old 05-14-2005, 10:10 AM   #3
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Original Poster
Rep: Reputation: 139Reputation: 139
Many thanks, I will use the rc.6 option.

samac
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shutdown automatically if linux system is idle for sometime ahalya Linux - Software 1 03-30-2005 12:39 AM
slack doesnt shutdown automatically?? yenonn Slackware 6 01-02-2004 09:38 AM
writing a script running firestarter automatically with kppp without root priviliges melquiades Linux - Newbie 3 08-11-2003 06:50 AM
running a script automatically when Logging out? hamster Linux - General 2 06-03-2003 08:49 PM
how to automatically power off after shutdown in redhat7.3(kernel 2.4.20) prad Linux - General 8 12-18-2002 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration