LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-03-2003, 03:51 PM   #1
LAR12345
LQ Newbie
 
Registered: Jan 2003
Location: Memphis, TN
Posts: 14

Rep: Reputation: 0
iptables & httpd


Has anyone setup any type of perl script for web configuration of iptables. Everything I try errors out, I think its a permission thing but when I run the scripts by command line with the -c option it states the sintax is ok.

If anyone has any info it would be greatly appreciated.

Thanks
Larry
 
Old 03-03-2003, 04:17 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
What exactly are you wanting to do, or what doesn't work?
 
Old 03-03-2003, 04:41 PM   #3
LAR12345
LQ Newbie
 
Registered: Jan 2003
Location: Memphis, TN
Posts: 14

Original Poster
Rep: Reputation: 0
Exec

I was trying to execute a command from a perl script, like

system ("/sbin/iptables -F FORWARD)";

somthing like that. I would like to run a few other things but thats the main problem I'm having.

Thanks
Larry
 
Old 03-03-2003, 04:45 PM   #4
LAR12345
LQ Newbie
 
Registered: Jan 2003
Location: Memphis, TN
Posts: 14

Original Poster
Rep: Reputation: 0
Syntax

Sorry the command should be:

system ("/sbin/iptables -F FORWARD");

not

system ("/sbin/iptables -F FORWARD)";

Thanks
Larry
 
Old 03-03-2003, 04:53 PM   #5
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Shall I move this thread into the 'Programming' Forum where the Perl guys live?
 
Old 03-03-2003, 04:55 PM   #6
LAR12345
LQ Newbie
 
Registered: Jan 2003
Location: Memphis, TN
Posts: 14

Original Poster
Rep: Reputation: 0
Perl

Yes please,

Sorry I poseted it here!

Thanks
Larry
 
Old 03-03-2003, 04:59 PM   #7
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Don't worry,
just thought we would hit the boffins directly...

Moderator Note...
MOVED TO PROGRAMMING FORUM
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP5 & HTTPD (apache) on Fedora Core 4 fatum112 Linux - Software 4 12-02-2005 05:44 PM
HTTPD (Apache) & execve rblampain Programming 0 07-04-2005 08:23 AM
httpd & javascript rblampain Programming 5 07-01-2005 07:54 AM
Mysql & Httpd authentication landenm Linux - Software 3 06-17-2005 02:50 PM
How to uninstall httpd & PHP dhammika Linux - Software 4 04-27-2004 11:30 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:21 AM.

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
Open Source Consulting | Domain Registration