[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdepim-users
Subject:    Re: [kdepim-users] Re: kmail command line options
From:       Jan de Visser <jdevisser () digitalfairway ! com>
Date:       2004-07-17 1:49:01
Message-ID: 200407162149.01978.jdevisser () digitalfairway ! com
[Download RAW message or body]

On July 16, 2004 09:34 pm, Stuart Miller wrote:
> Looks like there is a small problem still
>
> the shell script has four lines
>
>   cd /home/web
>   perl report.pl
>   kmail -s testing -msg mailtome.txt stuart_miller@shaw.ca
>   dcop kmail kmail-composer#1 activateAction send_alternative
>
> when I click on the script in a window, it works properly
> when I call the script from a konsole session, it works fine
> when I call the script from a crontab entry, only the first line executes,
>       to update the report.
>
> I had other cron jobs working, but they all ran as root with     su web  
> as the first line.
> This is my first attempt at automated mailings
> I put the username web in the 'allow' file, and that must be ok because I
> get the first line performed.
>
> /var/log/cron/info shows the job has run.   errors and warnings are empty
>
> I tried the full path names   /usr/bin/kmail     and  /use/bin/dcop    but
> this did not help

When you have a hammer, everything looks like a nail. Or: wrong tool for the 
job. 

When running in cron, you don't have an X session available. KMail wants that. 
I would suggest looking into the 'mail' command. man mail. Real easy and 
probably does what you want.

>
>
> Any suggestions?
>
> Stuart

Hope this helps,

JdV!!

-- 
--------------------------------------------------------------
Jan de Visser                     jdevisser@digitalfairway.com

                Baruk Khazad! Khazad ai-menu!
--------------------------------------------------------------
_______________________________________________
KDE PIM users mailing list
kdepim-users@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic