Current location: Hot Scripts Forums » Programming Languages » Perl » Perl script


Perl script

Reply
  #1 (permalink)  
Old 04-13-08, 04:11 AM
NationVoice NationVoice is offline
Newbie Coder
 
Join Date: Apr 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Perl script

I need some help on creating a looping perl script that will allow connections on a port from a certain IP. Based on the command sent the perl script would execute a shell script and then the perl script would return the value to the calling host.

for example

I send a udp connection to with a variable processes, the perl script would execute ps -ef | grep -c "" and return back tot he udp connection.

I'm not very good with perl but have seen this done before in the past.

Any help would be great.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 04-13-08, 11:43 PM
curbview.com's Avatar
curbview.com curbview.com is offline
Junior Code Guru
 
Join Date: May 2006
Posts: 555
Thanks: 0
Thanked 0 Times in 0 Posts
Out of curiosity, which hosting provider allows this type of activity?
__________________
Whatever you decide, you should make sure best security methods are used and practiced. Should you really need more help, PM me.
Reply With Quote
  #3 (permalink)  
Old 04-14-08, 03:04 AM
NationVoice NationVoice is offline
Newbie Coder
 
Join Date: Apr 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
I'm looking at creating this for myself, it will function as an API. I've also thought of creating this in C rather than Perl.

Which do you think would be more stable/secure?
Reply With Quote
  #4 (permalink)  
Old 05-08-08, 01:44 PM
milandred milandred is offline
New Member
 
Join Date: May 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by curbview.com View Post
Out of curiosity, which hosting provider allows this type of activity?
I guess any hosting provider...

I'm not this is for one of my servers. ... damn! sorry wrong quota

Last edited by milandred; 05-08-08 at 01:57 PM.
Reply With Quote
  #5 (permalink)  
Old 05-08-08, 01:46 PM
milandred milandred is offline
New Member
 
Join Date: May 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by NationVoice View Post
I'm looking at creating this for myself, it will function as an API. I've also thought of creating this in C rather than Perl.

Which do you think would be more stable/secure?

In my own opinion I prefer perl.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
crontab not executing a perl script abtimoteo Perl 5 05-27-08 11:42 AM
Conversion of Java script to Java, PHP, PERL etc. biosoft sports Job Offers & Assistance 1 02-01-06 03:08 PM
Mod rewrite help with perl script Gastongr Perl 1 10-11-05 08:55 AM
Execute a perl script from another perl script. jkarimi Perl 3 09-06-05 11:42 PM
PHP script problem (please help) osmanmumtaz PHP 0 05-24-05 07:29 AM


All times are GMT -5. The time now is 04:50 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.