[SOLVED]Cron job display progress on screen help

General support questions
Post Reply
Linuxneophite
Posts: 15
Joined: 2014/05/20 12:17:41

[SOLVED]Cron job display progress on screen help

Post by Linuxneophite » 2014/11/13 10:01:09

Hi all.

I am wondering if anyone can help me.
I am running a cron job which I can see in my logs etc.....
I have connected external drives and can physically see the files appearing through the gnome gui.

What I am trying to achieve is to get my cron job to be visable as it is working, like verbose. I want it to show me exactly what it is doing as it would if I ran the command through the command line.
Can anyone please assist?

My cron job is very simple, please see below

30 11 * * * rsync -a -v --delete /home/ /run/media/serveradmin/SG

Thanks
Last edited by Linuxneophite on 2014/11/14 07:51:34, edited 1 time in total.

User avatar
TrevorH
Forum Moderator
Posts: 29069
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cron job display progress on screen help

Post by TrevorH » 2014/11/13 10:59:43

Redirect the output from the command to a file and then you can tail -f the file.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Linuxneophite
Posts: 15
Joined: 2014/05/20 12:17:41

Re: Cron job display progress on screen help

Post by Linuxneophite » 2014/11/14 07:51:07

Thank you very much TrevorH!

Exactly what I needed, work perfectly.

Thanks again, much appreciated.

Post Reply

Return to “CentOS 7 - General Support”