[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How Can I Schedule A Perl Script?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You can run a perl script from a cron job just like any other program.  As the
user whose home directory the file is in:

crontab -e

and in the file put
0,30 * * * * ~/doc/id.pl

Note that the /home/user part can be replaced with ~ just like in the shell
since the configuration is in that user's crontab.  You actually could even take
the ~/ out altogether, since cron starts in the home directory of the user whose
crontab it runs.

Lorenzo

- -- 
- -----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d- s:+ a- C+++ UL++++ P+ L+++ E- W++ N o K- w---
O M V- PS+++ PE Y+ PGP++ t++ 5+ X+ R tv-- b++ DI-- D+
G e* h---- r+++ y+++
- ------END GEEK CODE BLOCK------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC3GVEG9IpekrhBfIRAgYvAJ9AIDVtGAJwR2fPbzYPoSWl4nW4DgCfe5i6
rt+mBoEhBjowAsQkhAuOg0c=
=72Yf
-----END PGP SIGNATURE-----



Reply to: