in reply to Re: Re: Passing arguments to a background process...
in thread Passing arguments to a background process...

Thanks very much for your replies. 

I will look into the options in more detail and work on it.

I like the option of using a file or table and let only 
one instance of the program running. 

I might have said it wrong when I said that I want to run 
a CGI program in batch. It is just a perl program. 

I tried using the @ARGV and STDIN, but I was not 
successful in transfering the data. I was able to pass the 
file name, but not a variable with data or data itself. 
Can you give a sample code or how to use these to pass 
parameters (data or variable) to other program than the 
file names.  

Thanks very much for you help!
  • Comment on Re: Re: Re: Passing arguments to a background process...

Replies are listed 'Best First'.
Re: Re: Re: Re: Passing arguments to a background process...
by chanio (Priest) on Dec 06, 2003 at 06:21 UTC
    As said before, put this at the begining of your script (after the SheBang...

    use <a href="http://search.cpan.org/search?mode=module&query=Getopt%3A +%3ALong">Getopt::Long </a>;

    And you'll manage all kinds of inputs.

    You might have to read the perldoc...

    >perldoc -m Getopt::Long

    It does magic at CLI like CGI does at a WWW server.

    If you cannot get it, it's not you, it is that you might need some reading. Perl is quite easy once you know all the basic syntax.