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

List:       kdepim-users
Subject:    [kdepim-users] Re: kmail command line options
From:       Stuart Miller <stuart_miller () shaw ! ca>
Date:       2004-07-17 1:34:57
Message-ID: 015001c46b9e$45086780$3d00a8c0 () miller
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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


Any suggestions?

Stuart


[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Looks like there is a small problem still<BR><BR>the shell script has four 
lines<BR><BR>&nbsp; cd /home/web<BR>&nbsp; perl report.pl<BR>&nbsp; kmail -s 
testing -msg mailtome.txt <A 
href="mailto:stuart_miller@shaw.ca">stuart_miller@shaw.ca</A><BR>&nbsp; dcop 
kmail kmail-composer#1 activateAction send_alternative<BR><BR>when I click on 
the script in a window, it works properly<BR>when I call the script from a 
konsole session, it works fine<BR>when I call the script from a crontab entry, 
only the first line executes,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to update the 
report.<BR><BR>I had other cron jobs working, but they all ran as root 
with&nbsp;&nbsp;&nbsp;&nbsp; su web&nbsp;&nbsp; as<BR>the first line.<BR>This is 
my first attempt at automated mailings<BR>I put the username web in the 'allow' 
file, and that must be ok because I<BR>get the first line 
performed.<BR><BR>/var/log/cron/info shows the job has run.&nbsp;&nbsp; errors 
and warnings are empty<BR><BR>I tried the full path names&nbsp;&nbsp; 
/usr/bin/kmail&nbsp;&nbsp;&nbsp;&nbsp; and&nbsp; /use/bin/dcop&nbsp;&nbsp;&nbsp; 
but<BR>this did not help<BR><BR><BR>Any suggestions?<BR><BR>Stuart<BR></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 \
2px solid; MARGIN-RIGHT: 0px"><FONT   face=Arial \
size=2></FONT>&nbsp;</BLOCKQUOTE></BODY></HTML>



_______________________________________________
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