|
|||
Running a command/script on boot
Greetings all,
due to my highly developed paranoia, I would like to run the /usr/sbin/syspatch upon boot. I have perused the FAQ for startup and if I understand it correctly, I can create a script /path/to/run_syspatch: Code:
#! /bin/sh /usr/sbin/syspatch if [ $? -ne 0 ] then { echo "Error, syspatch failed" } Code:
/path/to/run_syspatch Am I correct, or have I missed something? Kindest regards, M |
|
|||
Hi jiggimi,
thank you. I obviously do not yet understand the startup enough to realize that I can enter the script into the /etc/rc.local. Kindest regards, M |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
matts: a shell script to mail attachments from the command line | J65nko | Guides | 7 | 3rd August 2022 03:13 AM |
Running a command as a different user w/o starting the login shell | Carpetsmoker | General software and network | 4 | 1st July 2011 10:33 PM |
Running a command with input from a file. | bigb89 | Programming | 4 | 21st January 2009 06:36 PM |
Hanging on boot command syscons | caesius | FreeBSD General | 2 | 28th November 2008 09:07 AM |
How launch script or command from icewm? | aleunix | General software and network | 8 | 8th June 2008 09:12 PM |