Working script won't work in rc.local

Aaron Konstam akonstam at sbcglobal.net
Mon Feb 18 21:54:32 UTC 2008


On Mon, 2008-02-18 at 09:26 -0800, Barry Yu wrote:
> I even copied it into /bin and /usr/bin - 2 places, but still won't
> auto execute, but it works manually in terminal.
> 
> Dick Seabrook <dick.seabrook at gmail.com> wrote:
>         
>         2008/2/18 Barry Yu <barryyu-cts at sbcglobal.net>:
>                 
>                 
>                 
>                 Barry Yu <barryyu-cts at sbcglobal.net> wrote:
>                         
>                         
>                         Paul Lemmons <paul.lemmons at tmcaz.com> wrote:
>                                 ------- Original Message --------
>                                 Subject: Working script won't work in
>                                 rc.local
>                                 From: Barry Yu 
>                                 To: Fedora list 
>                                 Date: 02/18/2008 09:10 AM
>                                 > My working script won't work at
>                                 startup when I inserted it into 
>                                 > rc.local - It works perfectly in
>                                 terminal when I manually execute it 
>                                 > there. Am I putting my script in
>                                 wrong place and how can I auto 
>                                 > execute it when starting up F8?
>                                 > Thanks for helping
>                                 >
>                                 What is the first line of your script?
>                                 Is it "#!/bin/bash"? Is it marked 
>                                 as executable? Is there more
>                                 information you can give as to what
>                                 is 
>                                 happening?
>                                 -- 
>                                 fedora-list mailing list
>                                 fedora-list at redhat.com
>                                 To unsubscribe:
>                                 https://www.redhat.com/mailman/listinfo/fedora-list
>                         
>                         Here is my rc.local file, my script is the
>                         last line;
>                         
>                         #!/bin/sh
>                         #
>                         # This script will be executed *after* all the
>                         other init scripts.
>                         # You can put your own initialization stuff in
>                         here if you don't
>                         # want to do the full Sys V style init stuff.
>                         
>                         touch /var/lock/subsys/local
>                         /home/Scripts/./dumon
>                         -- 
>                         fedora-list mailing list
>                         fedora-list at redhat.com
>                         To unsubscribe:
>                         https://www.redhat.com/mailman/listinfo/fedora-list
>                 
>                 
>                 Below is the entire content of my script;
>                 
>                 xrandr --output VGA --auto --output TMDS-1 --auto
>                 --right-of VGA
>                 
>         I think it's not being found.  Did you intend
>            $HOME/Scripts/dumon
>         ??
>         Dick
Even $HOME is not good enough. He is not logged in. Is the script in his
home directory of in /root?
>         
>         ======================================================================= It got to the point where I had to get a haircut or both feet firmly planted in the air. ======================================================================= Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam at sbcglobal.net




More information about the fedora-list mailing list