Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Elderian's scratchpad

by Elderian (Sexton)
on Jun 30, 2004 at 11:57 UTC ( #370740=scratchpad: print w/replies, xml ) Need Help??

I wrote a wrapper script for a standalone application which relies on some configuration files. These are created by the perl script right befor the application is called.

The application produced wrong results, because some of the configuration files were empty. The log showed that they were written correctly.

Now i found the reason: The file seems to take its sweet time until it makes the newly created config files publicly available. If the application is called before that time period, it opens the config files, which are empty.... if i put a unless (-e $config_file_name) before the creation of the configuration file and wrap it up in a loop, it works.

Have you experienced this phenomenon?
Log In?

What's my password?
Create A New User
[shmem]: please open a SoPW. At what point is the perl-DBD-mysql installation failing?
[shmem]: do you have the mysqlclient libs on that device, for instance?
[shmem]: and btw, your original questian is an XY Problem classic ;-)
[Spenser]: yes, I have mysql client libs installed.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2018-03-17 12:50 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (224 votes). Check out past polls.