07-14-2009
Please read the link I submitted. You are wrong, Six. rc.local is executed before anything else
More proof:
http://www.fedorafaq.org/basics/
Q: How do I run something when the computer starts?
A: You have two choices, either you can run something before anybody logs in, or you can run something immediately after you log in.
To run a command right after you boot, before anybody logs in, add the command to the file /etc/rc.local:
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there ,
Can someone tell me whether ksh is available in rc3.d,ie will it work if i add an korn shell script in rc3.d when the system starts up ? (1 Reply)
Discussion started by: JayNick
1 Replies
2. Shell Programming and Scripting
Hi, I have googled for quite some time and couldn't able to get what exactly I am looking for.. My query is "how to stop a shell script which is running inside a remote server, using a script"??? can any one give some suggestions to sort this out. (1 Reply)
Discussion started by: mannepalli
1 Replies
3. Linux
Hello all,
I have a script callled 'ABCstartup' setup under /etc/rc.d/init.d
Softlink 'S91ABCstartup' pointing to above script has been created under /etc/rc.d/rc3.d
The script is not being executed when the server restarts.
The script runs successfully via manual execution:... (5 Replies)
Discussion started by: hemangjani
5 Replies
4. Shell Programming and Scripting
Trying to figure out why this works:
printpwd.pl
#!/usr/bin/perl
use CGI::Carp qw( fatalsToBrowser );
print "Content-type: text/html\n\n";
$A = system("pwd");
$A = `pwd`;
print "$A\n";
^^actually that works/breaks if that makes any sense.. i get the working directory twice but when... (5 Replies)
Discussion started by: phpfreak
5 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a script which can be called from any path on the machine. It kind of acts like a global script. How do I achive this? :confused:
The path from which I call it is different from the path where it exists.
(where <script name> )
Thanks and Regards,
Preetham R. (1 Reply)
Discussion started by: preethgideon
1 Replies
6. Shell Programming and Scripting
I am unable to run the below script against a remote server due to syntax error (then unexpected), but i am able to run it locally. Am i executing it correctly or is there any other way to execute it.
ssh username@servernname ksh -s < scriptname
#!/bin/ksh
function record
{
((end =... (5 Replies)
Discussion started by: NarayanaPrakash
5 Replies
7. Shell Programming and Scripting
I need to run a local shell script on a remote machine. I am able to achieve that by executing the command
> ssh -qtt user@host < test.sh
However, when I try to pass arguments to test.sh it fails.
Any pointers would be appreciated. (7 Replies)
Discussion started by: Sree10
7 Replies
8. Shell Programming and Scripting
Hello,
I know for SSH'ing and running a local script is...
ssh -t user@servername < /path/to/localscript.sh
and with SSH'ing and SUDO'ing is...
ssh -t user@servername "sudo -u username ls -l /home/username"
My inquiry is how can I combine both, by SSH'ing and SUDO'ing but running... (4 Replies)
Discussion started by: WPGPoseidon
4 Replies
9. Shell Programming and Scripting
local script:
cat > first.sh
cd /tmp
echo $PWD
echo `whoami`
cd /tmp/123
tar -cvf 789.tar 456
sleep 10
except script:
cat > first
#!/usr/bin/expect
set ip 10.5.15.20
set user "xyz123"
set password "123456"
set script first.sh
spawn sh -c "ssh $user@$ip bash < $script" (1 Reply)
Discussion started by: Aditya Avanth
1 Replies
LEARN ABOUT MOJAVE
ospf6d
OSPF6D(8) Version 0.97.3 OSPF6D(8)
NAME
ospf6d - an OSPFv3 routing engine for use with Quagga routing software.
SYNOPSIS
ospf6d [ -dhv ] [ -f config-file ] [ -i pid-file ] [ -P port-number ] [ -A vty-address ] [ -u user ] [ -g group ]
DESCRIPTION
ospf6d is a routing component that works with the Quagga routing engine.
OPTIONS
Options available for the ospf6d command:
OPTIONS
-d, --daemon
Runs in daemon mode, forking and exiting from tty.
-f, --config-file config-file
Specifies the config file to use for startup. If not specified this option will likely default to /usr/local/etc/ospf6d.conf.
-g, --group group
Specify the group to run as. Default is quagga.
-h, --help
A brief message.
-i, --pid_file pid-file
When ospf6d starts its process identifier is written to pid-file. The init system uses the recorded PID to stop or restart ospf6d.
The likely default is /var/run/ospf6d.pid.
-P, --vty_port port-number
Specify the port that the ospf6d VTY will listen on. This defaults to 2606, as specified in /etc/services.
-A, --vty_addr vty-address
Specify the address that the ospf6d VTY will listen on. Default is all interfaces.
-u, --user user
Specify the user to run as. Default is quagga.
-v, --version
Print the version and exit.
FILES
/usr/local/sbin/ospf6d
The default location of the ospf6d binary.
/usr/local/etc/ospf6d.conf
The default location of the ospf6d config file.
$(PWD)/ospf6d.log
If the ospf6d process is config'd to output logs to a file, then you will find this file in the directory where you started ospf6d.
WARNING
This man page is intended to be a quick reference for command line options. The definitive document is the Info file Quagga.
DIAGNOSTICS
The ospf6d process may log to standard output, to a VTY, to a log file, or through syslog to the system logs. ospf6d supports many debug-
ging options, see the Info file, or the source for details.
SEE ALSO
bgpd(8), ripd(8), ripngd(8), ospfd(8), isisd(8), zebra(8), vtysh(1)
BUGS
ospf6d eats bugs for breakfast. If you have food for the maintainers try http://bugzilla.quagga.net
AUTHORS
See http://www.zebra.org and http://www.quagga.net or the Info file for an accurate list of authors.
Quagga OSPFv3 daemon 25 November 2004 OSPF6D(8)