Your "cron" job on sparky
* /usr/bin/perl /export/home/rbrown/ftp_code/interface.pl
produced the following output:
sh: 4Missy: cannot execute
4Missy seems to be a file in my home directory that someone the perl script
is picking up not sure why, but anyone know why this is happening i'm using
the absolute path in the script /usr/bin/mailx I know perl has modules for
smtp but anyone know why this might be happening ?
"Paul Tazzyman" <ptaz...@yahoo.com> wrote in message
news:3ec868cf$0$18028$afc3...@news.optusnet.com.au...
Sorry - didn't mean to ask the too obvious !!
Try renaming "4missy" - something in the execution path must be trying
to execute it. What does "interface.pl" call - if you have some sort of
profiler ( not sure if there is one that works with perl - but try
http://www.perl.com/pub/a/2002/07/16/mod_perl.html ). This should at
least let you trace the execution. Reading more it seems perl has some
sort of profiling built in - see
http://search.cpan.org/author/ILYAZ/DProf-19990108/DProf.pm
Good luck !!
Is it the first file listed when you do "echo *" or "ls" in
your home directory?
> but anyone know why this is happening i'm using
> the absolute path in the script /usr/bin/mailx I know perl has modules for
> smtp but anyone know why this might be happening ?
Cron runs with a minimal environment set. Perhaps the perl script
uses something in yours that's not in cron's. A process of elimination
should reveal what that is.
-am © 2003
* Paul Tazzyman <ptaz...@yahoo.com> [2003-05-19 05:45]:
The corresponding line in your crontab seems garbled.
It looks like cron treats
"* /usr/bin/perl /export/home/rbrown/ftp_code/interface.pl"
as the command to execute. Your crontab line probably has too many
fields like this
0 * * * * * /something
so cron treats the last * as part of the command to execute.
Ronald
--
* Experience is what you get when you were expecting something else.