34 users online (1 members and 33 guests)  


  Results 1 to 2 of 2

Related

  1. Problem with excel file writing using PERL    Forum: CGI Perl Forum
    Replies: 0
  2. Execute external program in perl/cgi    Forum: CGI Perl Forum
    Replies: 2
  3. How to check File is Valid or Not in PERL?    Forum: CGI Perl Forum
    Replies: 2
  4. Running a batch script file from Perl CGI    Forum: CGI Perl Forum
    Replies: 0
  1. #1
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    How can i execute a perl file within perl programming...

    i know about "include" for modules, but i need somthing that just executes a perl file, then leavs it.

    here is what the problem is:

    I have a page that gets info form an text file on the server, inbeded in that text file is a time stamp, when the page loads, it reads the time stamp and if a certain time expired, than it needs to execute the perl file that writes the file

    the perl file that writes the file that it links to is an IRC BOT (it gets the names out of an irc chat room) the bot is in a constant loop. every once in a while the bot gets shutdown, so it needs to be restarted.

    that should give you an idea of why i cant use "include" and what i need

    Thanks,
    -ALL

  2. #2
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: How can i execute a perl file within perl programming...

    again, i figured out a way, i just uppened a socket to the server's file and then closed the socket. I know it isn't the best way to do it, but it should only need to do it about once every 15 days or so (whenever the time stamp expires).



Tags for this Thread