l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
November 4: Social gathering
Next Installfest:
TBD
Latest News:
Oct. 10: LUGOD Installfests coming again soon
Page last updated:
2004 Apr 10 21:30

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Problem running cronjob
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Problem running cronjob



On Fri, Apr 09, 2004 at 11:29:00PM -0700, Soumyadeep nandi wrote:
> Hi Everybody,
> 
> 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                      
>                                                       
>                                                
> 
> 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. 
> 
> <snip>
>                
> My cron file in /var/log/ has these updates:
> 
> <snip>
> 
> 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")
> 
> 
> <snip>
>
>  Could you please tell me where I am doing the
> mistake, and why it is not executing the commands.
> 
> Regards 
> Soumyadeep

I think everything is working fine. What might be confusing is that your
test script is being run by its own instance of a shell. Its
input/output is not connected to a terminal. Try running a script that
does something noticeable, like creating a file ("touch
/home/soumya/cron_test_file"). 

-Bryan
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!