Kapil Sethi wrote:

Hi Yash,

Yashpal Nagar wrote:

> [EMAIL PROTECTED] manishsharma]# cd $HOME; cat .procmailrc
> PATH=/bin:/usr/bin:/usr/bin
> :0:
> * ^Subject:.*5.0.0 .*Build Successful
> | $HOME/getlatest-500.sh
>

I think the problem is because
1. procmail is piping the mail to your "getlatest-500.sh" script
2. your script is not accepting the mail contents from the pipe.

Right kapil, what i found was wget with ambersand was not putting it into backgroup, so when i put wget with '-b' as the option and put return $1;
after wget it worked. So my final getlatest-500.sh is


#!bin/bash
cd $HOME/500
PATH=/usr/bin:/bin;
/bin/mv manual-install.zip manual-install.zip.`date '+%b%d-%H-%M-%S-%Y'`
/usr/bin/wget -b http://enterprise/cruise2/artifacts/5.0.0/latest-success/manual-install.zip ;
return $1;
exit;


Woking fine!

Thanks Manprit & kapil!

Regards,
Yash


_______________________________________________ ilugd mailinglist -- [email protected] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[email protected]/

Reply via email to