[vox-tech] Problem running cronjob
Ken Bloom
vox-tech@lists.lugod.org
Sat, 10 Apr 2004 21:29:06 -0700
--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; Format=Flowed; DelSp=Yes; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
The output of cronjobs is mailed to you.
Turn off the cron job quickly (so you don't waste disk space) and check =20
your mail with the mail command (several other commands, like mutt, may =20
also work if you haven't reconfigured them for your real email)
On 2004.04.09 23:29, Soumyadeep nandi wrote:
> Hi Everybody,
>=20
> I want to set some task on the cronjob. As such I
> edited the crontab file as bellow:
> */1 * * * * echo "Hello"
> */1 * * * * /home/soumya/test.sh
>=20
>=20
>=20
> Here I want to print Hello in every minute and my test
> shell script should execute every minute.
> But it is not executing neither the Hello nor the
> shell script.
>=20
> If I run the crontab -l command I can see the commands
> are there in the cronjob as bellow:
> # DO NOT EDIT THIS FILE - edit the master and
> reinstall.
> # (/tmp/crontab.16950 installed on Sat Apr 10 22:34:22
> 2004)
> # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17
> 03:20:37 vixie Exp $)
> */1 * * * * echo "Hello"
> */1 * * * * /home/soumya/test.sh
>=20
>=20
>=20
> My cron file in /var/log/ has these updates:
> Apr 10 22:34:13 bic_server2 crontab[16950]: (soumya)
> BEGIN EDIT (soumya)
> Apr 10 22:34:22 bic_server2 crontab[16950]: (soumya)
> REPLACE (soumya)
> Apr 10 22:34:22 bic_server2 crontab[16950]: (soumya)
> END EDIT (soumya)
> Apr 10 22:34:56 bic_server2 crontab[16952]: (soumya)
> LIST (soumya)
> Apr 10 22:35:00 bic_server2 crond[794]: (soumya)
> RELOAD (cron/soumya)
> Apr 10 22:35:00 bic_server2 CROND[16954]: (root) CMD
> (/usr/bin/mrtg /etc/mrtg/mrtg.cfg)
> Apr 10 22:35:00 bic_server2 CROND[16956]: (mailman)
> CMD (/usr/bin/python -S /var/mailman/cron/gate_news)
> Apr 10 22:35:00 bic_server2 CROND[16958]: (soumya) CMD
> (/home/soumya/test.sh)
> Apr 10 22:35:00 bic_server2 CROND[16962]: (soumya) CMD
> (echo "Hello")
> Apr 10 22:36:00 bic_server2 CROND[16969]: (soumya) CMD
> (/home/soumya/test.sh)
> Apr 10 22:36:00 bic_server2 CROND[16971]: (soumya) CMD
> (echo "Hello")
>=20
> I have bash shell set in my environment.
> I have tried changing the shell to sh, but still no
> success.
> I am using redhat 9.
> I have changed the mode of the file to
> 755(-rwxr-xr-x).
> I can run test.sh file as ./test.sh.
>=20
> Could you please tell me where I am doing the
> mistake, and why it is not executing the commands.
>=20
> Regards
> Soumyadeep
>=20
> __________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online by April 15th
> http://taxes.yahoo.com/filing.html
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
>
--=20
I usually have a GPG digital signature included as an attachment.
See http://www.gnupg.org/ for info about these digital signatures.
My key was last signed 10/14/2003. If you use GPG *please* see me about
signing the key. ***** My computer can't give you viruses by email. ***
--Dxnq1zWXvFF0Q93v
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQBAeMmSlHapveKyytERAnDnAKCkC+0u0so+24IAsuF75NmZWOpMAQCcDxJC
mqhYIqY4oh805SEwQInfxE8=
=Epdh
-----END PGP SIGNATURE-----
--Dxnq1zWXvFF0Q93v--