Re: Script to email details not working in cron

2015-01-03 Thread Manikandan M
Hi,

I couldn't find why the script is not working in cron. Just replaced the
crontab entry with the following and it worked

* 9 * * * /bin/bash /user/bin/email-script

Thanks everyone for your help.

Regards,
Mani



On Fri, Jan 2, 2015 at 9:13 PM, Don Armstrong  wrote:

> On Fri, 02 Jan 2015, Manikandan M wrote:
> > I have written a small script to email (using ssmpt) some details, and
> > scheduled it in crontab. The script is running as per time mentioned in
> the
> > cron but ssmtp is not sending the mail. please find the details below.
> >
> > user@host ~ $ cat bin/email-script
> > /home/user/bin/actual-script > ~/details-file
> > ssmtp usern...@gmail.com < ~/details-file
> > echo $? > ~/email-status
> >
> > The crontab entry is as below
> > 0 9 * * * /home/user/email-script
>
> If this is actually the script,
>
> 1) It's missing #!/bin/sh or #!/bin/bash
>
> 2) It's in /home/user/bin/email-script, not /home/user/email-script
>
> 3) It may not be executable.
>
> --
> Don Armstrong  http://www.donarmstrong.com
>
> life's not a paragraph
> And death i think is no parenthesis
>  -- e.e. cummings "Four VII" _is 5_
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive:
> https://lists.debian.org/20150102211336.gb29...@teltox.donarmstrong.com
>
>


Re: Script to email details not working in cron

2015-01-02 Thread Manikandan M
Thanks for the quick response Patrick. I have given the full path for all
the executables in the script. Still i'm not getting the email. The first
line of the script works which updates the details-file. The third line of
the script works which updates the status of the email operation. Both the
details-file and mail-status are getting the updated at the time mentioned
in the cron. i think this indicated that the script is being executed, but
not sure why ssmtp command is not working.

The script still works if i execute it manually.

On Fri, Jan 2, 2015 at 6:48 PM, Patrick Wiseman  wrote:

> On Fri, Jan 2, 2015 at 1:39 PM, Manikandan M  wrote:
> > Hi,
> >
> > I have written a small script to email (using ssmpt) some details, and
> > scheduled it in crontab. The script is running as per time mentioned in
> the
> > cron but ssmtp is not sending the mail. please find the details below.
> >
> > user@host ~ $ cat bin/email-script
> > /home/user/bin/actual-script > ~/details-file
> > ssmtp usern...@gmail.com < ~/details-file
> > echo $? > ~/email-status
> >
> > The crontab entry is as below
> > 0 9 * * * /home/user/email-script
> >
> > When i execute the script manually i'm getting the email from ssmtp. but
> > when the script is executed using cron i'm not getting the email. I
> checked
> > the status of the ssmtp and the status is 127.
> >
> > Please can anyone suggest what might be wrong in my setup.
>
> cron operates in a restricted environment, so what works in an
> ordinary user's environment will often not work in cron. Try giving
> the full path to your executable in the script.
>
> Patrick
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive:
> https://lists.debian.org/cajvvkso5brnij2sclpuos4fh_xdmptaanvryfb5sdjwrbhr...@mail.gmail.com
>
>


Script to email details not working in cron

2015-01-02 Thread Manikandan M
Hi,

I have written a small script to email (using ssmpt) some details, and
scheduled it in crontab. The script is running as per time mentioned in the
cron but ssmtp is not sending the mail. please find the details below.

user@host ~ $ cat bin/email-script
/home/user/bin/actual-script > ~/details-file
ssmtp usern...@gmail.com < ~/details-file
echo $? > ~/email-status

The crontab entry is as below
0 9 * * * /home/user/email-script

When i execute the script manually i'm getting the email from ssmtp. but
when the script is executed using cron i'm not getting the email. I checked
the status of the ssmtp and the status is 127.

Please can anyone suggest what might be wrong in my setup.

Regards,
Mani


Re: USB wireless network adaptor

2014-02-13 Thread Manikandan M
Thanks Selim. I'll try it and let you know.

On Tue, Feb 11, 2014 at 5:11 PM, Selim T. Erdogan <
se...@alumni.cs.utexas.edu> wrote:

> Manikandan M,  8.02.2014:
>  >
> > I'm having a HP laptop running wheezy. The built-in wireless adaptor
> wasn't
> > working fine. So bought a Asus usb-n10 wireless adaptor. installed the
> > drivers and it works fine.
> > But once i shutdown or restart my laptop, its not working. The lsusb
> > command shows the wireless adaptor, but the adaptor is not working (not
> > getting detected in network manager in gnome). only way to make it work
> is
> > to restart.
> > Has anyone faced a similar situation and is there any fix for this issue.
> > Thanks in advance.
>
> You could try removing and reloading the relevant kernel module, which
> might be r8712u, based on https://wiki.debian.org/rtl819x
> So, try "modprobe -r r8712u && modprobe r8712u" as root.
>
> I have to do this for a pci wifi adapter, when I start the laptop after
> hibernation.  Actually, that reminds me: I also have a usb adapter which
> occasionally has the problem you have, though caused by the built-in pci
> adapter.  It might be related to them both being part of the rt2x00
> driver family.  After waking up from hibernation, if the pci adapter
> --- using rt2500pci --- was in use before, I have to either reload or
> remove its module, to get the usb adapter --- using rt2800usb --- to work.
> But if I've removed the rt2500pci module, then the rt2800usb module
> will survive the hibernation.
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: http://lists.debian.org/20140211171116.ga13...@cs.utexas.edu
>
>


USB wireless network adaptor

2014-02-08 Thread Manikandan M
Hi,

I'm having a HP laptop running wheezy. The built-in wireless adaptor wasn't
working fine. So bought a Asus usb-n10 wireless adaptor. installed the
drivers and it works fine.
But once i shutdown or restart my laptop, its not working. The lsusb
command shows the wireless adaptor, but the adaptor is not working (not
getting detected in network manager in gnome). only way to make it work is
to restart.
Has anyone faced a similar situation and is there any fix for this issue.
Thanks in advance.

Regards,
Mani