freelanceprogrammers.org Forum Index » Perl
Running Perl from crontab
Joined: 08 Jul 2004
Posts: 2
Running Perl from crontab
I am trying to run a perl sciprt from crontab, but the sciprt will
not run for whatever reason. Here is my crontab entry.
* * * *
* /apps/PERL/bin/perl /usr/local/apache2/htdocs/sims/monitor/simscoun
t.pl
any ideas?
Thanks,
Joined: 20 May 2004
Posts: 2
Running Perl from crontab
crom runs the program as root user see if root has permission to execute the
program
There is 1 message in this issue.
Topics in this digest:
1. Running Perl from crontab
From: nfspeed105@...
________________________________________________________________________
________________________________________________________________________
Message: 1
Date: Thu, 08 Jul 2004 05:30:39 -0000
From: nfspeed105@...
Subject: Running Perl from crontab
I am trying to run a perl sciprt from crontab, but the sciprt will
not run for whatever reason. Here is my crontab entry.
* * * *
* /apps/PERL/bin/perl /usr/local/apache2/htdocs/sims/monitor/simscoun
t.pl
any ideas?
Thanks,
________________________________________________________________________
________________________________________________________________________
------------------------------------------------------------------------
Yahoo! Groups Links
------------------------------------------------------------------------
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
[Non-text portions of this message have been removed]
Joined: 08 Jul 2004
Posts: 1
Running Perl from crontab
Hey Pal:
Maybe mohamed is right... here´s how I create entries in the crontab for a
specific user (youruser), and how I also create a log for the script output and
the error output:
* * * * * ( USER=youruser; export USER; /apps/PERL/bin/perl
/usr/local/apache2/htdocs/sims/monitor/simscount.pl >>
/home/youruser/program.log 2>> /home/youruser/program.err )
Good luck,
Luis
parvez mohamed <parvez80@...> wrote:
crom runs the program as root user see if root has permission to execute the
program
There is 1 message in this issue.
Topics in this digest:
1. Running Perl from crontab
From: nfspeed105@...
________________________________________________________________________
________________________________________________________________________
Message: 1
Date: Thu, 08 Jul 2004 05:30:39 -0000
From: nfspeed105@...
Subject: Running Perl from crontab
I am trying to run a perl sciprt from crontab, but the sciprt will
not run for whatever reason. Here is my crontab entry.
* * * *
* /apps/PERL/bin/perl /usr/local/apache2/htdocs/sims/monitor/simscoun
t.pl
any ideas?
Thanks,
________________________________________________________________________
________________________________________________________________________
------------------------------------------------------------------------
Yahoo! Groups Links
------------------------------------------------------------------------
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
[Non-text portions of this message have been removed]
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/perl_official/
To unsubscribe from this group, send an email to:
perl_official-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--------------------------------------------------
Luis José Carraud
100mb gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
¡Tenelo ya!
[Non-text portions of this message have been removed]
Joined: 21 May 2004
Posts: 44
Running Perl from crontab
>>>>> "nfspeed105" == nfspeed105 <nfspeed105@...> writes:
nfspeed105> I am trying to run a perl sciprt from crontab, but the sciprt will
nfspeed105> not run for whatever reason. Here is my crontab entry.
nfspeed105> * * * *
nfspeed105> * /apps/PERL/bin/perl
/usr/local/apache2/htdocs/sims/monitor/simscoun
nfspeed105> t.pl
nfspeed105> any ideas?
Do other things run from your crontab?
Do you get any error messages?
Do you get error messages from *other* crontab things when they fail?
Have you included tests in your script for some parts failing
(every open followed by "or die")
Short of more information, we`d have to be psychic to proceed.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Joined: 08 Jul 2004
Posts: 2
Running Perl from crontab
Thanks for the help, turns out the problem I was having is that I
did not provied the full path to my output file. The script was
acutally looking just dumping it into the root directory. Thanks for
the help though guys.
Pope
--- In perl_official@yahoogroups.com, nfspeed105@e... wrote:
> I am trying to run a perl sciprt from crontab, but the sciprt will
> not run for whatever reason. Here is my crontab entry.
>
> * * * *
>
* /apps/PERL/bin/perl /usr/local/apache2/htdocs/sims/monitor/simscoun
> t.pl
>
> any ideas?
>
> Thanks,
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







