-
Run a shell script after booting
-
Senior Member
registered user
Re: Run a shell script after booting

Originally Posted by
mpweber77
I am creating a text-mode (init level 3) Knoppix system and I want to execute a shell script automatically when the CD boots. What I have tried is an init script, but since the shell script doesn't ever exit, the inits never finish.
Have you tried adding your script to /etc/inittab? For example, to have "/usr/bin/top" running on virtual console 1 in runlevel 3, remove this single line from /etc/inittab:
Code:
1:12345:respawn:/bin/bash -login >/dev/tty1 2>&1 </dev/tty1
and replace it with these two:
Code:
1:1245:respawn:/bin/bash -login >/dev/tty1 2>&1 </dev/tty1
1a:3:respawn:/usr/bin/top >/dev/tty1 2>&1 </dev/tty1
Replace your script for "/usr/bin/top" and it should work.
Let us know how things go.
Regards,
- Robert
http://www.cwelug.org/
Similar Threads
-
By ecliu in forum General Support
Replies: 0
Last Post: 02-20-2009, 11:14 AM
-
By migs_sison in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 02-24-2006, 01:21 AM
-
By splittik in forum General Support
Replies: 1
Last Post: 03-22-2005, 07:38 AM
-
By niXnoob in forum General Support
Replies: 3
Last Post: 10-06-2004, 04:56 AM
-
By ktheking in forum General Support
Replies: 4
Last Post: 06-29-2003, 12:34 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Vintage DEC Digital Equipment Flip-Chip Module Lot Parts
$59.99

Vintage Digital VR241-A color CRT monitor, powers on, DEC Rainbow or terminal
$150.00

Vintage DEC Digital XMI-A1 5017293-01A1 LWPR BE3-0 VAX Circuit Board T2012
$74.99

Vintage DEC Digital T1043 DWMBB/B VAXBI XMI Adapter 5018232-01 C1 VAX Board
$109.99

DEC Digital DECmate III PC238 PDP-8 6120 RX50 Dual Floppy Vintage Computer
$649.95

Vintage DEC Digital Equipment DELNI 8-Port Ethernet Local Network Hub VAXstation
$79.95

Vintage DEC VT100 Series Terminal (Powers On)
$499.99

Vintage DEC Digital VR319-DA 19" High Resolution Monochrome CRT Monitor - Tested
$180.00

Vintage DEC Digital Starion 200 Desktop PC Powers On Boots To BIOS NO HDD - DW
$269.99

Vintage DEC/Mostek memory systems MK 8015 AA-00 6805-08015 1100 REV C(B7)
$279.99