in reply to Re: Re: Problem with @ARGV when called from crontab
in thread Problem with @ARGV when called from crontab

I think we need more info. Can you show us the snippet that creates the command line for the system call? I suspect you're doing something like this:

$cmdline = join( " ", @SOME_ARRAY ); # or some other way system( $cmdline );

I suspect your $cmdline is not being properly constructed and lookup is being stuffed into the variable twice.

-derby

Replies are listed 'Best First'.
Re: Re: Re: Re: Problem with @ARGV when called from crontab
by skamerman (Initiate) on Jan 02, 2003 at 21:52 UTC
    I can't seem to reproduce to problem except when I use an old script that I already deleted. :( Oh well, it's still going to piss me off, but whenever I try to simulate it, it works like a charm. I wonder if it had something to do with the shell I was using? I know I used /bin/bash for the test, but I might have used /bin/sh for the old one. Regardless, if I run into this problem again, I will document it well and repost. Thanks for all your help!