Need Boot up Script


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Need Boot up Script
# 8  
Old 12-06-2007
HI,

In 'rc.local' file, just give executable file_name.

For eg., if you store 'hello.sh' script in /opt directory and you

want it to execute at boot time, then just write 'rc.local' file as:

sh /opt/hello.sh

Note: this is extra part, you can write only 'hello.sh', but your executable

script must be in '/usr/bin' or '/usr/sbin/' directory......you can read more

on this from the website 'http://linuxhomenetworking.com/'

I think you will enjoy it.

Have a nice day............


Regards,
JAGDISH
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Alsa Boot Script

Due to a bug in Debian Sid I'm currently having to run "alsactl init" at the command-line to start my sound card. This wasn't a big issue, but I though automating this simple task at boot would be more efficient. I made the following script in /etc/init.d/ and ran chmod +x on it: ... (5 Replies)
Discussion started by: Azrael
5 Replies

2. Shell Programming and Scripting

Boot/Shutdown script automation

Looking to automate some commands to run at boot and poweroff in a startup/shutdown script. How do I place it on the system so that it will be run automatically? I don't want to use cron, not quite specific enough, random times when I may boot or shutdown. ---------- Post updated at 10:47 PM... (8 Replies)
Discussion started by: 3therk1ll
8 Replies

3. Red Hat

Ethtool script not running on boot.

Hi, there is an incompatibility between my NIC and my Western Digital Powerline adapters which appears to cause autonegotiation to fail intermittently, most often following a reboot. Running the following Ethtool script will establish a connection immediately: #!/bin/sh # chkconfig: 345 85... (12 Replies)
Discussion started by: torley
12 Replies

4. Solaris

Solaris x86 installation using jumpstart does not local boot ( boot from hdd)

I am trying to install Solaris x86 using the Jumpstart server. I run the add_install_client command with appropriate options, and reboot my x86 Target box. The installation starts fine and unattended. After the installation completes and the target goes for a re-boot, it does not boot from the HDD... (9 Replies)
Discussion started by: hemalsid
9 Replies

5. Boot Loaders

Reboot and Select Proper Boot device or insert Boot media in select Boot device and press a key

Hello, I have kubuntu on my laptop and now I decided to switch to Windows 7. I made the bios settings properly (first choice is boot from cd\vd) but I see the error " reboot and select proper Boot device or insert Boot media in select Boot device and press a key " I have tried CD and... (0 Replies)
Discussion started by: rpf
0 Replies

6. Ubuntu

Boot script in 9.10

Hello, I'm writing a simple boot script that uses etc/init/script to run a called file from the .xinitrc file. So the script goes as such. { start on runlevel stop on runlevel exec xinit } then that executes the .xinitrc content which then reads. /usr/bin/python ... (2 Replies)
Discussion started by: hizzle
2 Replies

7. Solaris

boot up script in solaris 10

Hi I'd like to add a start up script to run at boot time.I think that pre solaris 10 you'd add it to /etc/init.d. But I'm using Solaris 10 now and it has this SMF config thing which I'm not sure whether I have to add a service to it or not. Does anyone know how add a script at boot time on... (2 Replies)
Discussion started by: fishman2001
2 Replies

8. UNIX for Dummies Questions & Answers

Script in boot sequence

Hi , I have some problems with my library when the sytem boot : When HPUX is booting, HPUX and STAPE claim the drive initially. HPUX assigns an instance number. The instance number is tied to the hardware path. Near the end of the boot, the ATDD driver claims the drive from STAPE based... (1 Reply)
Discussion started by: delphine
1 Replies

9. Solaris

solaris boot problem boot error loading interpreter(misc/krtld)

When I installed the SOLARIS 10 OS first time, the desktop would not start up, this was because of network setup. Reinstalled worked. After a week due to some problem I had to reinstall OS, installation went fine and but when i reboot I get this error. cannot find mis/krtld boot error loading... (0 Replies)
Discussion started by: johncy_j
0 Replies

10. UNIX for Advanced & Expert Users

Cannot boot - Boot : Panic : File size out of range (EWS-UX/V unix)

Hey ! I am running EWS-UX/V (Rel 4.2) on NEC EWS/4800/330 station and I am having problems rebooting my station : I am getting the following message on display : BOOT : PANIC : File size out of range. According to user guide, this error is occuring when a file exceeding the limit and/or... (2 Replies)
Discussion started by: fredo
2 Replies
Login or Register to Ask a Question
REPLAY(1)						User Contributed Perl Documentation						 REPLAY(1)

NAME
scriptreplay - play back typescripts, using timing information SYNOPSIS
scriptreplay timingfile [typescript [divisor]] DESCRIPTION
This program replays a typescript, using timing information to ensure that output happens at the same speed as it originally appeared when the script was recorded. The replay simply displays the information again; the programs that were run when the typescript was being recorded are not run again. Since the same information is simply being displayed, scriptreplay is only guaranteed to work properly if run on the same type of terminal the typescript was recorded on. Otherwise, any escape characters in the typescript may be interpreted differently by the terminal to which scriptreplay is sending its output. The timings information is what script(1) outputs to standard error if it is run with the -t parameter. By default, the typescript to display is assumed to be named "typescript", but other filenames may be specified, as the second parameter. If the third parameter is specified, it is used as a speed-up multiplier. For example, a speed-up of 2 makes scriptreplay go twice as fast and a speed-up of 0.1 makes it go ten times slower than the original session. EXAMPLE
% script -t 2> timingfile Script started, file is typescript % ls <etc, etc> % exit Script done, file is typescript % scriptreplay timingfile SEE ALSO
script(1) COPYRIGHT
Copyright (C) 2008 James Youngman Copyright (C) 2008 Karel Zak This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. Released under the GNU General Public License version 2 or later. AUTHOR
The original scriptreplay program was written by Joey Hess <joey@kitenet.net>. The program was re-written in C by James Youngman <jay@gnu.org> and Karel Zak <kzak@redhat.com>. AVAILABILITY
The scriptreplay command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. 3rd Berkeley Distribution perl v5.6.0 REPLAY(1)