LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Writing and executing a program (https://www.linuxquestions.org/questions/linux-software-2/writing-and-executing-a-program-209590/)

Russb 07-25-2004 06:27 PM

Writing and executing a program
 
Ok, i made a firewall and scripted the whole thing using iptables and the like. I named it rc.dantesgate which doesn't run when I sh it because it looks for 'dantesgate (start|stop|restart|status)' I tried to put it in the sbin but it says I, root, don't have permission to use it. Is there a way I am supposed to format this to run correctly? I would like to add it to the rc.local file to run automatically. I looked around but nothing comes up close to my problem. :confused: Thanks in advance!

:study:

Russb 07-25-2004 06:49 PM

Heh... Answred my own question. But for all that are interested in Shell programming, this is how you make it executable:

Code:

chmod +x filename
And that's it! Always the tedious stuff that gets me! ;)


All times are GMT -5. The time now is 10:04 PM.