win32sux |
02-21-2009 10:43 AM |
Quote:
Originally Posted by dan83
(Post 3452315)
i have not understood... must i create a file with that script? how i can create it? and how execute it?
|
Yes, you could create a file for it if you want. You'd just need to edit the /etc/example.txt part in it to match whatever file you actually have the IPs stored in. You create it just like you would any other text file: Select the code I posted, right-click on it, select "Copy", open your favorite text editor, start a new file, right-click in it, select "Paste", edit the path/filename I just told you about, select "Save", type in the file name and path you wish to save the script as.
To make the file executable you right-click on the file, select "Properties" (or whatever), and tweak the permissions accordingly. You could also just use the chmod command on it like:
Code:
chmod 755 /etc/example.sh
To execute the file you just do a: BTW, I'm moving this thread to Newbie for better exposure.
|