LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-03-2003, 01:53 PM   #1
netmon
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
Angry snort rule update script


I am new to Linux and Snort. I have a really dumb question. Is there a certain way you have to save a file for Linux to run it as a script? I have a script I want to run and I just wanted to know if there are any good sites or links I can go to that will help me figure out how to run the script. Thanks.
 
Old 10-03-2003, 06:31 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Check the file permissions. In order to execute it the permissions need to allow read and execute to the user that is trying to execute it. Also, you usually need to specify the full path to the program if it's not in your PATH environment variable, so instead of this:
$ myscript
you would need to do this:
$ ./myscript
note that ./ constitutes the full path to the program if you're already in that directory.

You should be able to execute it even if it's not set to exectuteable if you do
$sh myscript
this assumes that the script was written for the bourne shell (sh).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with my snort rule set PixelCloud Linux - Security 1 07-17-2004 01:35 PM
W32/Sober-B worm snort rule????? netmon Linux - Security 1 12-18-2003 02:57 PM
snort fails at startup due to rule zuessh Linux - Security 2 12-06-2003 08:49 AM
Snort, test rule, ADV - Webpopup unSpawn Linux - Security 0 01-22-2003 07:00 PM
Snort, test rule, XST unSpawn Linux - Security 0 01-22-2003 06:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration