in reply to Calling functions

You may want to post the code to your script. If sub split_logfile{} doesnt do much, then it may be run without you even noticing. Unless you're printing something during that sub.

Try something like this... (In case you havent already):

sub split_logfile(){ print "In sub split_logfile\n"; } sub gen_stats(){ print "In sub gen_stats\n"; } sub compress_logs(){ print "In sub compress_logs\n"; } sub clean_up(){ print "In sub clean_up\n"; }
You get the idea. Granted, like the others have said, if you're calling external programs, they may be running in the background....

_14k4 - webmaster@860.org (www.poorheart.com)

Replies are listed 'Best First'.
Re: Re: Calling functions
by brendonc (Novice) on Mar 23, 2001 at 02:43 UTC
    Right. I put
    print("DONE\n");
    At the end of split_logfile() and
    print("Starting gen_stats\n");
    at the beginning of gen_stats(). It printed the messages out in correct order:
    DONE Starting gen_stats ...
    So it appears that the functions are getting called in the correct order.